1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 18:21:12 +03:00
Commit Graph

1197 Commits

Author SHA1 Message Date
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
Chris Houseknecht
0127680805 AC-657 Fixed order of operations for prompting user to approve delete, starting spinner, sending request to API, stoping spinner and refreshing page. The key is starting the spinner using the modal.on.hidden.bs.modal to start the spinner and then not stopping it until inside postrefresh event. Applied the fix to all controllers and tested. 2013-11-20 06:06:26 +00: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
Chris Church
b73e792b23 Example code for capturing current user from rest framework. 2013-11-20 00:25:09 -05:00
Chris Church
e4851c6e18 AC-654 Add API support for token auth using X-Auth-Token header in addition to AUthorization header, fixes issue where API requests from the UI are picking up the basic auth from an API session. 2013-11-19 23:37:19 -05:00
Chris Church
52c0a93293 Fix error views to use base REST framework template instead of admin, since admin is disabled. 2013-11-19 23:37:19 -05:00
Chris Houseknecht
ebd6973f6b AC-550 When user views inventory update status (by clicking on the status link) an alert at the top of the dialog will show when the error is caused by a license violation. 2013-11-20 03:45:42 +00: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
Chris Church
f7081074d0 AC-629 Fix password field used to respond to ansible-playbooks prompts. 2013-11-19 16:21:48 -05:00
Chris Houseknecht
666d721bda AC-668 'parse as' value now works correctly. 2013-11-19 21:03:55 +00:00
Chris Houseknecht
d340de970f AC-654 Added 'X-Auth-Token' as a header in all requests. This will give the API a way to distinguish requests between UI an API Browser and invoke correct RBAC rules. Without this we run into a collision of sorts when user logs into UI and API Browser at the same time from the same browser. 2013-11-19 20:48:09 +00: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
Chris Houseknecht
94bbab566b Only allow user with super_user access to see activity stream button. Fixed collision between is_superuser rootscope variable and credential.is_superuser on credential detail page. Added AS to user/n/permissions page. 2013-11-19 20:39:43 +00:00
Chris Church
e2e8a7e346 Fix broken tests after removing session authentication. 2013-11-19 15:25:47 -05:00
Chris Church
a25a162229 AC-170 Disable REST session auth and Django admin by default. 2013-11-19 14:45:42 -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
Chris Houseknecht
4661a9e97a Added AS to /inventories/hosts/N and /inventories/groups/N as well has /home/[groups, hosts]. Fixed CSS container sizing issue, so widget will not overlap footer. 2013-11-19 18:52:32 +00:00
Chris Church
d681d0972a Fix RBAC for project updates. 2013-11-19 13:26:34 -05:00
Chris Church
216ab5cf41 AC-672 Fixed responding to passphrase prompts for project updates, re-added tests removed in earlier update. 2013-11-19 13:18:38 -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
Chris Houseknecht
925016d556 Host enabled flag is now a checkbox rather than a radio button on the Hosts add/dit dialog. 2013-11-19 09:27:39 +00:00
Chris Houseknecht
e2209ce3bd Ac-630 cloud_credential_name value is now set after data loaded for Job Template edit page. 2013-11-19 09:06:25 +00:00
Chris Houseknecht
6b418d4a5c Added activity stream to all tabs and to the tab detail page. Enabled working breadcrumbs on the activity stream widget. Added round corners to th stream containers so it at least looks OK when the bottom occassionally overllapses footer. Adjusted the stream widget's default url to include detail object's primary key, limiting rows to the object being viewed. 2013-11-19 08:17:21 +00:00
Chris Church
11d2f76546 AC-537 Add remaining API/field validation for credentials and other objects using credentials.
AC-630 Added validation of cloud_credential kind on job template and job, set environment variables based on cloud credential.
AC-610 Require a credential for a cloud inventory source.
AC-457 Do not set password when using hg over ssh.
2013-11-19 02:36:36 -05:00
Chris Houseknecht
735da6bff6 Related search now works with new search features. Only searches after user stops typing. Disables the input field while search is executing. Moved refresh button to the right side of list page. Fixed bugs: was using contains rather than icontains. Not sure that old refresh button worked. It does now. 2013-11-19 04:35:35 +00:00
Chris Church
e092639eb8 Removed leftover print from debugging. 2013-11-18 22:56:53 -05:00
Chris Church
b8edfab481 Fixed unit test error caused by extra definition of ActivityStream model. Rearranged imports of signal handlers. 2013-11-18 22:54:52 -05:00
Chris Houseknecht
3377927c00 Activity stream- completed modification to Rest lib. Fixed searches on activity stream allow search by object type and object name. Improved detail modal so that more of the changes box is visible. Moved search reset button to the right. There is now only one reset button per list, not one per filter widget. 2013-11-19 02:26:23 +00:00
Chris Church
3d11f604a9 AC-647 Move django.db.models.Model import to (hopefully) prevent traceback. 2013-11-18 17:16:12 -05:00
Chris Houseknecht
1b224f64ac Added support for many (unlimited) search widgets on a page. Activity widget now has 2 object search widgets. Adding a setHeader function to Rest.js library. 2013-11-18 20:03:32 +00:00
Matthew Jones
24d60ff073 add emacs backup files to gitignore 2013-11-18 06:44:28 -05:00
Chris Church
5e5288e2d4 Fix active field in the admin. 2013-11-18 11:06:19 -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
Chris Houseknecht
c720e5d51c 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. 2013-11-18 08:16:51 +00:00
Chris Houseknecht
7952cb560b AC-640 Added additional help text explaining why an organization is required on a project. 2013-11-17 06:58:11 +00:00
Chris Houseknecht
ce7688d252 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. 2013-11-17 06:37:34 +00:00
Chris Church
ccd90ffb78 AC-637 Credential now requires scm_key_unlock when saving encrypted ssh_key_data. 2013-11-16 21:25:41 -05:00
Chris Church
621cbb9f66 AC-626 Removed support for prompting for password and ssh_key_unlock for scm/cloud credentials. 2013-11-16 17:59:51 -05:00
Chris Church
f254f8bc92 AC-613 Change rackspace to rax for inventory source field value. 2013-11-16 16:48:27 -05:00
Chris Church
902c7c2d72 AC-613 Change rackspace to rax for inventory source field value. 2013-11-16 16:47:32 -05:00
Chris Church
29a7e2c75d AC-624 Fix options docs for project update view. 2013-11-16 16:20:54 -05:00