Commit Graph
100 Commits
Author SHA1 Message Date
Matthew Jones 2a88d3cb07 Close issue AC-905... refactor RBAC to handle inactive and deleted items 2014-02-07 09:37:59 -05:00
Matthew Jones fb1bff54ca Fix an issue where we were checking object existence
In the new to_native methods on serializers
2014-02-07 05:56:26 -05:00
Matthew Jones 57030390c0 Fix AC-975... filter inactive permissions in some of the access code. 2014-02-06 08:47:00 -05:00
Matthew Jones 00156a5518 Updating AC-984... only conditionally recompute inventory fields in group delete if it isn't a part of an inventory delete 2014-02-04 09:55:55 -05:00
Matthew Jones e911bdc3da Updating AC-984... delay field computation until after the group has been removed 2014-02-04 09:29:28 -05:00
Matthew Jones 9b67b575f1 Fix issue AC-1002, make sure we return a count of the number of inventories with active failed jobs 2014-02-03 06:11:51 -05:00
Matthew Jones a21332a2d4 Fix AC-969, Convert variables element in changes dictionary from json representation 2014-01-31 10:59:06 -05:00
Matthew Jones 77e77d905a Fix AC-1004, Instead of using serializers.Field() which will force a repr() of the object... use serializers.PrimaryKeyField() which will use the expected field type for the response 2014-01-31 10:34:02 -05:00
Matthew Jones 867c22c36c Fix AC-981, mark last_job* fields as read only on the host serializer so activity stream will ignore them when processing events 2014-01-31 09:04:07 -05:00
Matthew Jones bb0a2887d5 Fix AC-998, Don't set created_by on the object when updating the object (only when creating). activity stream will save modifications and who made them 2014-01-31 07:00:21 -05:00
Matthew Jones 380f6c6d6f Fix AC-1001, hide BROKER_URL from the job_env section of task api data 2014-01-31 05:17:26 -05:00
Matthew Jones bc6ec06d8f Rollback and retry the task update status. Disable default idle timeouts on certain tasks 2014-01-30 15:09:49 -05:00
Matthew Jones b226737ec5 Handle database errors and retry 2014-01-30 14:00:49 -05:00
Matthew Jones a85e109da7 Merge remote-tracking branch 'origin/celery-refactor'
* origin/celery-refactor: (33 commits)
  Fix spelling mistake
  Jobs begin in the waiting state
  Don't raise an exception at the end of a task if we are running unit tests
  Enable canceling on certain levels.... fix up some unit tests
  Check for invalid tasks and mark created tasks as failed when constructing task chains
  Fix merge spacing from conflicted merge
  Fix some bugs and show more error detail on a current task when a previous task fails
  Leave another TODO on the job runner, fix a misspelling on the project update hook
  Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks
  Remove 'awx-' prefix when reporting version
  Explicitly include the egg-info in rpm packaging
  Fixing store references to point to http://www.ansible.com/ansible-pricing
  Update make develop command, version check after package rename.
  AC-992 Fix inventory import tests.
  AC-967 Fixed job name in the host status fly-out. Text now wraps rather than extending beyond boundaries of pop-over. Removed status label- just show red/green dot. Clicking on ID or red/green dot shows the status dialog. When dialog closes the window.resize() watcher is restored.
  AC-976 now using custom javascript to apply ellipsis to long group and host names. Fixed indes.html title.
  Fix ansible-tower deb build
  Rename package awx to ansible-tower
  AC-976 add job template name to activity stream
  AC-979 using activity stream object arrays correctly. AC-980 fixed Action label on detail dialog.
  ...
2014-01-30 11:59:17 -05:00
Matthew Jones 28359e16a1 Fix spelling mistake 2014-01-30 11:41:06 -05:00
Matthew Jones 32220405de Jobs begin in the waiting state 2014-01-30 11:40:20 -05:00
Matthew Jones bf8c4b289a Don't raise an exception at the end of a task if we are running unit tests 2014-01-30 11:36:54 -05:00
Matthew Jones 280527f993 Enable canceling on certain levels.... fix up some unit tests 2014-01-30 10:54:54 -05:00
Matthew Jones 6afc584a4f Check for invalid tasks and mark created tasks as failed when constructing task chains 2014-01-30 01:19:49 -05:00
Matthew Jones 6ff98d87e9 Fix merge spacing from conflicted merge 2014-01-30 01:04:17 -05:00
Matthew Jones 82b692be9c Merge remote-tracking branch 'origin/master' into celery-refactor
* origin/master: (28 commits)
  AC-995 fixed typo and added extra error handling in case we actually cannot parse inventory variables. If that does happen, we now alert the user and keep the application stable and running.
  Use supervisorctl when restarting celeryd on Ubuntu
  Revert custom supervisor initscript
  fix for the small viewport issue (https://www.dropbox.com/s/dmf4aixfv7k67cm/Screenshot%202014-01-29%2015.19.52.png) where group name div gets pushed to a new line.
  Fixed AS widget breadcrumb links
  AC-977 Fixed raw html showing up in Action field on detail dialog. Added a subtitle on the AS widget. On inventory groups/host page the subtitle explains what activities are being displayed, and only activities realted to the selected group (on the inventory page) are displayed. If All Hosts selected, then all activities for all groups related to the current inventory are displayed. Also, brought back activity stream button for inventory hosts.
  During AMI boot, use custom initscript name
  Update tower-setup filename used in AMI build
  AC-578 - Add custom supervisor initscript on ubuntu
  Remove 'awx-' prefix when reporting version
  Explicitly include the egg-info in rpm packaging
  Fixing store references to point to http://www.ansible.com/ansible-pricing
  Update make develop command, version check after package rename.
  AC-992 Fix inventory import tests.
  AC-967 Fixed job name in the host status fly-out. Text now wraps rather than extending beyond boundaries of pop-over. Removed status label- just show red/green dot. Clicking on ID or red/green dot shows the status dialog. When dialog closes the window.resize() watcher is restored.
  AC-976 now using custom javascript to apply ellipsis to long group and host names. Fixed indes.html title.
  Fix ansible-tower deb build
  Rename package awx to ansible-tower
  AC-976 add job template name to activity stream
  AC-979 using activity stream object arrays correctly. AC-980 fixed Action label on detail dialog.
  ...

Conflicts:
	awx/ui/static/js/controllers/Inventories.js
	awx/ui/static/js/lists/InventoryHosts.js
	awx/ui/static/js/widgets/Stream.js
2014-01-30 01:00:00 -05:00
Matthew Jones 6c81d497de Fix some bugs and show more error detail on a current task when a previous task fails 2014-01-29 15:11:55 -05:00
Matthew Jones db14daf5e5 Leave another TODO on the job runner, fix a misspelling on the project update hook 2014-01-29 14:23:57 -05:00
Matthew Jones 5c076529c0 Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks 2014-01-29 14:23:57 -05:00
Matthew Jones 47950f28a7 Complete the new task job dependency system and add post-run error handler 2014-01-29 14:04:07 -05:00
Matthew Jones 2514a3dd9a Merge branch 'celery-refactor' of github.com:ansible/ansible-commander into celery-refactor
* 'celery-refactor' of github.com:ansible/ansible-commander:
  Leave another TODO on the job runner, fix a misspelling on the project update hook
  Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks
2014-01-27 12:21:26 -05:00
Matthew Jones 654a7e6d07 Leave another TODO on the job runner, fix a misspelling on the project update hook 2014-01-27 12:20:40 -05:00
Matthew Jones 4a598d7c0a Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks 2014-01-27 12:20:40 -05:00
Matthew Jones 6f069f6ff0 Leave another TODO on the job runner, fix a misspelling on the project update hook 2014-01-27 12:20:21 -05:00
Matthew Jones d4426d88c4 Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks 2014-01-27 11:37:18 -05:00
Matthew Jones 3d228b2955 Fix a bug where we would treat the new model value like the old one when comparing activity stream changes 2014-01-23 20:49:50 -05:00
Matthew Jones bb6c34f4a4 Implement AC-911, use the proper type relative to json serialization for the stored changes dict on an activity stream object 2014-01-23 16:19:14 -05:00
Matthew Jones 2712643c62 Implement AC-667... user serializer to determine read-only fields and use those to decide what to populate in activity stream create instances AND when to create active stream update instances 2014-01-23 15:44:36 -05:00
Matthew Jones 9bbeeb90a8 Fix AC-955, disable task prefetching by celery. 2014-01-22 16:05:26 -05:00
Matthew Jones b9cde9cc42 Fix issue AC-935... make sure we exclude certain regions by default. cn-north-1 was added to our dependency 'boto' here: https://github.com/boto/boto/pull/1939/files but is inaccessible from outside of China 2014-01-17 16:11:50 -05:00
Matthew Jones a0affa90d4 Change label on recent jobs for host to use 'status' 2014-01-16 12:24:09 -05:00
Matthew Jones 79f9953e56 Add ids to summary fields and actor for AC-673 2014-01-16 10:17:56 -05:00
Matthew Jones 6840626c24 Implement AC-929... add recent jobs to host detail 2014-01-15 11:14:37 -05:00
Matthew Jones 57c0145f4f Update all release url references to point to releases.ansible.com/awx 2014-01-07 15:42:40 -05:00
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