Commit Graph
83 Commits
Author SHA1 Message Date
Matthew Jones 2935824b7a Add ami packaging support and update Makefile 2014-01-07 11:53:30 -05:00
Matthew Jones a098ef4381 Fix AC-758 where we weren't considering whether the license was expired when deciding to allow creating more hosts 2014-01-05 16:56:41 -05:00
Matthew Jones e16e5a0dfa Put the utf8 encoding in the right place for the cipher 2013-12-20 07:32:19 -05:00
Matthew Jones 4eb323caa4 Apply patch from jlaska. Adds support for .yaml file extensions on playbooks. Implements AC-890 2013-12-20 07:12:03 -05:00
Matthew Jones ca35419dee Fix AC-699 by using the spawnu interface on pexpect3 and making sure we use the right encoding on passwords passed to the cipher 2013-12-20 07:01:01 -05:00
Matthew Jones 447043eae5 Add more of the expected details to activity stream related component lists 2013-12-16 06:32:37 -05:00
Matthew Jones 70fe75603e Improve rbac query performance for activity stream 2013-12-16 05:05:25 -05:00
Matthew Jones 0b159e0ab4 Fix the project related activity_stream which was mistakenly called activity_list 2013-12-11 12:12:52 -05:00
Matthew Jones 61059fa1a4 Work to complete AC-673, mass refactoring of the activity stream. Some work towards AC-664/662 but will complete on those issues. This also fixes issue AC-743 (Adding help text for OPTIONS requests) and AC-675 (updates where active changes to False will now be treated as deletes) 2013-12-10 16:08:35 -05:00
Matthew Jones ca87fa714f Fix issue AC-761, issue with the activity stream middleware could throw exception during authentication 2013-12-10 10:55:12 -05:00
Matthew Jones 3ceb9d84cb Mention the 1.4.0 release in the README 2013-12-04 10:54:08 -05:00
Matthew Jones 485b113ae6 Fix AC-660, race condition was frequently causing us to not be able to populate the user. This removes some unnecessary checks that were vestigal from an old implementation. Also adds a unit test for verifying user association with an activity stream object 2013-12-03 13:34:58 -05:00
Matthew Jones 3d7385bd18 Pluralize teams... fixes AC-738 2013-12-02 16:48:02 -05:00
Matthew Jones dc4b7d0960 Remove spurious job output files before the gitignore was in place 2013-11-25 13:47:33 -05:00
Matthew Jones e299a67b91 Make sure we ignore job_status files via gitignore 2013-11-25 13:44:52 -05:00
Matthew Jones 9038784bb6 Fix issue AC=731, make sure we initialize some of the Activity Stream information in the middleware __init__ since process_request may not be called during the request phase 2013-11-25 09:36:47 -05:00
Matthew Jones 8df402d21e Add external source inventory count to inventories dashboard 2013-11-22 14:02:46 -05:00
Matthew Jones 27eb4f48b3 Make sure we cleanup task output files when delete() is called on CommonTask models 2013-11-22 11:51:38 -05:00
Matthew Jones 2f0615d8c1 JOBOUTPUT_ROOT is still needed in defaults 2013-11-21 17:36:23 -05:00
Matthew Jones b77ec07581 Include a sane default location for the job root in the production config 2013-11-21 17:08:16 -05:00
Matthew Jones a0fd9c5f18 Make sure we set up the JOBOUTPUT_ROOT directory for running unit tests 2013-11-21 15:47:19 -05:00
Matthew Jones aafa020c47 Merge branch 'job_stdout_filesystem'
* job_stdout_filesystem:
  Adding the migration and other smaller fixes so the serializer can read the right stdout property
  Switch from using a interstitial serializer to defining a read property on the CommonTask model
  Initial task status to file implementation
2013-11-21 14:59:46 -05:00
Matthew Jones 5c077e4370 Adding the migration and other smaller fixes so the serializer can read the right stdout property 2013-11-21 14:59:14 -05:00
Matthew Jones 9444c1185b Switch from using a interstitial serializer to defining a read property on the CommonTask model 2013-11-21 14:21:00 -05:00
Matthew Jones bf07c55273 Initial task status to file implementation 2013-11-21 13:53:59 -05:00
Matthew Jones 9a46426957 Fix issue AC-708, rework the 'group' structure to report the correct fail counts 2013-11-20 23:56:18 -05:00
Matthew Jones c039fc4a1f Remove JobHostSummary and JobEvent actions from the activity stream registry 2013-11-20 21:19:26 -05:00
Matthew Jones 98cb95b510 Add organizations counts to the api dashboard view 2013-11-20 15:56:31 -05:00
Matthew Jones 7929cfedd8 Remove SortedDict, add user, team, credential, and job_template counts as top level dictionaries. Refinement for AC-649 2013-11-20 15:19:53 -05:00
Matthew Jones 83950be7ea Don't try to preserve an instance between pre- and post- middleware processing and fail sanely if we lose the activity stream instance 2013-11-20 14:02:03 -05:00
Matthew Jones 7fa9e3289b Fix RelatedManager exception issue on the dashboard 2013-11-20 13:35:03 -05:00
Matthew Jones d6cbcde0b4 Wrap up AC-649, provide an api for the dashboard view 2013-11-20 11:37:38 -05:00
Matthew Jones 5a9bf7054c Add the dashboard api view, with a few fields still needing to be filled 2013-11-20 10:54:31 -05:00
Matthew Jones 6f652d801a We need to check for AnonymousUser here sine that's what Django Request Framework will return when no authentication is provided 2013-11-20 01:29:52 -05:00
Matthew Jones 4bc15a4392 More for AC-694, use the new rest framework materialized user 2013-11-20 00:43:27 -05:00
Matthew Jones d564d73622 Fix for AC-694, we weren't saving the instance if using the cached user 2013-11-20 00:27:05 -05:00
Matthew Jones 059047ab77 Fix AC-660, resolve auth token authentication properly. Implement user instance caching so we don't constantly attempt to look up the user for multiple model operations yielding activity stream events 2013-11-19 21:39:10 -05:00
Matthew Jones 1388ad4cc0 Fix issue AC-677, field is referenced incorrectly causing exception 2013-11-19 19:50:11 -05:00
Matthew Jones 66d6e2fe43 Add more verification when deserializing json changes field on activity stream 2013-11-19 10:48:05 -05:00
Matthew Jones 7fda453720 Fix AC-648... make sure the changes field is not represented using nested json 2013-11-19 10:45:13 -05:00
Matthew Jones ccbef21c42 Close AC-671... cleanup/purge activity stream tables 2013-11-19 09:37:58 -05:00
Matthew Jones 14ac51861e Prevent non-superusers from querying the activity stream 2013-11-19 09:10:14 -05:00
Matthew Jones ee44f1ea76 Fix issue AC-650... hide sensitive fields from change record in activity stream 2013-11-19 08:03:43 -05:00
Matthew Jones be43447903 Removing some unneeded comments from activity stream queryset 2013-11-19 08:03:43 -05:00
Matthew Jones 812aafdfef Implement basic RBAC for the activity stream list, temporarily remove a failing unit test due to sqlite not supporting the distinct query 2013-11-19 10:05:59 -05:00
Matthew Jones 24d60ff073 add emacs backup files to gitignore 2013-11-18 06:44:28 -05:00
Matthew Jones adf9f40c2e Make sure we check the instance list in the activity stream middleware so we aren't causing a storm of update events trying to attach the request user 2013-11-18 11:02:23 -05:00
Matthew Jones 002341468d Merge branch 'auditlog'
* auditlog: (38 commits)
  Move auditlog migration to 0028 for main branch merge
  Search.js now supports up to 3 search filters on a page. First search widget can be regular or an object selector, which is used on the activity stream widget. Activity stream now has 2 filter widgets allowing a search to combine object and responsible user in a single query.
  AC-640 Added additional help text explaining why an organization is required on a project.
  Added 'working' spinner to all save/delete/select actions. This is to compensate for places where activity log is slowing down the API. AC-646 changes Rackspace credentials to show API Key in place of password. Fixed a bug on machine credential that caused username to not be passed to the API when adding and editing.
  AC-611 Latest activity widget features. Tweaked current filter, but still does not include an object type. Added activty stream to Organization tab.
  Add a field to the activity stream model that more closely identifies the api object type for aid in api querying
  Add some initial activity stream tests
  Improve loading time for some module calls by reducing the number of queries against the activity stream table
  Implement AC-634 - Additional bits
  First attempt at accessing /activity_stream. Modified /list/Stream.js to match the API and to start providing some of the translation we'll need.
  Add job to the list of models that are filtered if a user didn't directly interface with it
  Make sure we are handling multiple activitystream instances from the middleware
  Fix a bug passing args to object 2 of the activitystream serializer
  Found and fixed another bug on the Credentials form. Changing the ssh password value was causing a hidden password field to become invalid. Form definition for ssh password cleared the incorrect associated confirmation field.
  Add activitystream table migration
  AC-625 while looking into issue surrounding non-running updates, discoverd that creating credentials from the Users and Teams tabs was not allowing the user to click Save. The Save button refused to become enabled. Turns out that when a user or team is preelected (using route params) form initialization routine needs to run and it was not.
  Make sure we show relative object information in the api
  Integrate a simple api list and detail display
  Use process_response to attach user information later in the middleware request processing
  Fix up some bugs with signal handling related to association/disassociation
  ...
2013-11-18 09:22:38 -05:00
Matthew Jones 6764b5857a Move auditlog migration to 0028 for main branch merge 2013-11-18 09:21:40 -05:00
Matthew Jones ba1a113ec3 Merge remote-tracking branch 'origin/master' into auditlog
* origin/master:
  AC-637 Credential now requires scm_key_unlock when saving encrypted ssh_key_data.
  AC-626 Removed support for prompting for password and ssh_key_unlock for scm/cloud credentials.
  AC-613 Change rackspace to rax for inventory source field value.
  AC-613 Change rackspace to rax for inventory source field value.
  AC-624 Fix options docs for project update view.
  AC-632 Fix escaping for ansible-playbook command line when also using ssh-agent.
  Update CONTRIBUTING.md
  AC-630 Expose cloud_credentials field for job template and job.
  AC-641 Added pattern to respond to key unlock prompt for project update.
  Updated all vendored third-party packages.
  AC-636 Fix existing projects with scm_type=null to always use empty string. Update validation and tests to ensure None gets automatically coerced to an empty string on saving a project.
  AC-633 js error fixed.
  AC-633 fixed a sort of unrelated js error. The capitalize filter directive attempted to act on a 'null' input error. Added a test to ignore empty/null input.
  AC-633 Fixed 'hast' typo.
  AC-617 changed callback generation icon to a magic wand, which will hopefully satiate jlaska.
  AC-627 Fixed password/ssh_password collision in Credentials.js form. This was also fixed in auditlog branch.
  AC-628 applied credential changes made in add controller to edit controller so that credential/cloud_credential lookups display context-aware  credential lists.
  Moved credentials in tab order. It now follows teams and precedes projects. Based on a suggestion from jlaska.
  AC-609 Fixed issue with help button not displaying correctly on 'select' pages where user can pick an existing object (i.e. users, credentials, etc) to add to a parent object.

Conflicts:
	awx/api/serializers.py
	awx/main/migrations/0025_v14_changes.py
2013-11-18 09:18:37 -05:00
Matthew Jones 8448c5b4d5 Add a field to the activity stream model that more closely identifies the api object type for aid in api querying 2013-11-14 23:24:00 -05:00
Matthew Jones 639b87d55a Add some initial activity stream tests 2013-11-14 16:50:21 -05:00
Matthew Jones 9e8459b96a Improve loading time for some module calls by reducing the number of queries against the activity stream table 2013-11-14 13:28:49 -05:00
Matthew Jones 6d86ca4b6f Implement AC-634 - Additional bits 2013-11-14 13:28:49 -05:00
Matthew Jones bd942e540a Add job to the list of models that are filtered if a user didn't directly interface with it 2013-11-13 14:43:16 -05:00
Matthew Jones 78bdc7ae8b Make sure we are handling multiple activitystream instances from the middleware 2013-11-13 13:35:57 -05:00
Matthew Jones e2b657c72c Fix a bug passing args to object 2 of the activitystream serializer 2013-11-13 13:35:57 -05:00
Matthew Jones b521d3f350 Merge branch 'auditlog' of github.com:ansible/ansible-commander into auditlog
* 'auditlog' of github.com:ansible/ansible-commander:
  AC-625 while looking into issue surrounding non-running updates, discoverd that creating credentials from the Users and Teams tabs was not allowing the user to click Save. The Save button refused to become enabled. Turns out that when a user or team is preelected (using route params) form initialization routine needs to run and it was not.
2013-11-13 09:56:52 -05:00
Matthew Jones f2fca22e19 Add activitystream table migration 2013-11-13 09:56:45 -05:00
Matthew Jones 640bc69402 Merge branch 'auditlog' of github.com:ansible/ansible-commander into auditlog
* 'auditlog' of github.com:ansible/ansible-commander:
  Make sure we show relative object information in the api
  Integrate a simple api list and detail display
  Use process_response to attach user information later in the middleware request processing
  Fix up some bugs with signal handling related to association/disassociation
  Fix up some issues with supporting schema migration
  Move ActivityStream to it's own model file
  Fix an issue with the Activity Stream where we weren't performing the right type conversion to track object types
  Catch some errors that pop up during ActivityStream testing
  Fix some inconsistencies after the merge
  Initial backend implementation for AC-25, activity stream/audit love
  Initial backend implementation for AC-25, activity stream/audit love
2013-11-12 17:01:56 -05:00
Matthew Jones 1a27c75de4 Make sure we show relative object information in the api 2013-11-12 17:01:16 -05:00
Matthew Jones 50fee99580 Integrate a simple api list and detail display 2013-11-12 17:01:16 -05:00
Matthew Jones e1e70b37a5 Use process_response to attach user information later in the middleware request processing 2013-11-12 17:01:15 -05:00
Matthew Jones f1de300fd7 Fix up some bugs with signal handling related to association/disassociation 2013-11-12 17:01:15 -05:00
Matthew Jones 49a2502043 Fix up some issues with supporting schema migration 2013-11-12 17:01:15 -05:00
Matthew Jones a1edfe0dc2 Move ActivityStream to it's own model file 2013-11-12 17:01:15 -05:00
Matthew Jones 710b01c333 Fix an issue with the Activity Stream where we weren't performing the right type conversion to track object types 2013-11-12 17:01:15 -05:00
Matthew Jones b7b22fa7f8 Catch some errors that pop up during ActivityStream testing 2013-11-12 17:01:15 -05:00
Matthew Jones 2ab4cab495 Fix some inconsistencies after the merge 2013-11-12 17:01:15 -05:00
Matthew Jones 2a16ab38a5 Initial backend implementation for AC-25, activity stream/audit love 2013-11-12 17:01:15 -05:00
Matthew Jones 3a02c17d2a Initial backend implementation for AC-25, activity stream/audit love 2013-11-12 17:01:15 -05:00
Matthew Jones bb6f8c1f04 Make sure we show relative object information in the api 2013-11-12 14:30:01 -05:00
Matthew Jones aac489eea4 Integrate a simple api list and detail display 2013-11-11 16:37:36 -05:00
Matthew Jones 64d258322c Use process_response to attach user information later in the middleware request processing 2013-11-11 14:05:51 -05:00
Matthew Jones c48e4745bf Fix up some bugs with signal handling related to association/disassociation 2013-11-08 13:08:48 -05:00
Matthew Jones f4e3613244 Fix up some issues with supporting schema migration 2013-11-08 11:36:36 -05:00
Matthew Jones 5989250471 Move ActivityStream to it's own model file 2013-11-08 11:16:04 -05:00
Matthew Jones 5986a48036 Fix an issue with the Activity Stream where we weren't performing the right type conversion to track object types 2013-11-08 11:08:11 -05:00
Matthew Jones f3d2b0b5bc Catch some errors that pop up during ActivityStream testing 2013-11-08 10:21:30 -05:00
Matthew Jones be28a298eb Fix some inconsistencies after the merge 2013-11-08 10:04:12 -05:00
Matthew Jones a523c40635 Merge branch 'auditlog' of github.com:ansible/ansible-commander into
auditlog

Resolve some conflicts between the master branch model refactoring and
my auditlog work.

* 'auditlog' of github.com:ansible/ansible-commander:
  Initial backend implementation for AC-25, activity stream/audit love

Conflicts:
	awx/main/models/__init__.py
2013-11-08 09:53:42 -05:00
Matthew Jones cdccfee93a Initial backend implementation for AC-25, activity stream/audit love 2013-11-08 09:51:02 -05:00
Matthew Jones 25704af172 Initial backend implementation for AC-25, activity stream/audit love 2013-11-08 04:39:53 -05:00