57 Commits

Author SHA1 Message Date
Chris Church
cf7102bc49 Move validation of credential creation to the serializer. Use SubListCreateAPIView for creating a credential under another object, and remove fields from serializer and API docs that aren't valid when creating a credential under another object. 2016-06-17 09:56:27 -04:00
AlanCoding
54fa11cf25 restrict queryset for access_list to visable users 2016-06-16 11:05:57 -04:00
Matthew Jones
3e8aaa4b5e Fix an issue showing attach/detach docs
There's a condition in sub_list_create_api_view.md template that
controls whether or not the attach/detach documentation is shown for
sublist elements that support it.   Looks like it's been this way for a
while.  This updates that condition to work anywhere it's needed
2016-06-09 09:56:44 -04:00
Akita Noek
06eb13a104 Fixed duplicate users in access_list
Uhg.
2016-05-16 10:52:41 -04:00
Wayne Witzel III
a710f2d2cd Ensure access_list returns a 404 when object is not found 2016-05-03 15:01:23 -04:00
Chris Meyers
1925742da1 delete orphaned labels when jt or j deleted 2016-04-27 09:46:34 -04:00
Chris Meyers
2f18a9f2c1 delete label on last disassociate 2016-04-25 17:20:07 -04:00
Akita Noek
302774e85d Fixed up access_list functionality 2016-04-15 16:47:12 -04:00
Akita Noek
460a14705a Updated the org users and org admins api list endpoints to use new member_role.members 2016-03-16 10:29:12 -04:00
Akita Noek
ba833d683e Active flag removal: switched from using mark_inactive to delete calls 2016-03-15 09:29:28 -04:00
Akita Noek
1989012fd5 Moved access_list url to <whatever>/id/access_list
Eg: organizations/1/access_list will now return a list of all users who
have access to that organization.

This replaces our initial implementation which was resources/id/access_list
2016-03-09 11:41:42 -05:00
Akita Noek
ea2cabe4d4 Merge branch 'devel' of github.com:ansible/ansible-tower into merge-devel 2016-03-01 15:09:58 -05:00
Chris Meyers
356b9c99b3 Merge branch 'mongoectomy_implementation' into devel 2016-03-01 08:22:40 -05:00
Akita Noek
e18592fa87 Merge branch 'devel' into rbac 2016-02-24 16:14:32 -05:00
Chris Meyers
7ffe46fc74 add postgres Fact model, update views, tests
* awx.main.models Fact added
* view host fact and timeline updated to use new Postgres Fact model instead of Mongo
* Removed license set start Mongo logic
* added View tests
* added Model tests
* Removed mongo fact unit tests
* point at modified jsonbfield that supports sqlite storage driver
* postgresify fact cache receiver
* test OPTIONS endpoint
* Note: single fact view not implemented yet.
2016-02-24 14:38:54 -05:00
Akita Noek
0ff94e424d SubList views can now resolve deep relationships using dot notation for relationship specification
Made it so you can specify a relationship like 'parent.somelist'
2016-02-22 11:07:32 -05:00
Chris Church
99150b5a05 Flake8 fixes. 2016-02-16 20:02:52 -05:00
Chris Church
4873e2413f * Populate browsable API raw data form with submitted request data in response to an update.
* Remove fields from browsable API raw data that are set implicitly based on URL / parent object.
* Fix issue where a group/host could be assigned to a different inventory.
* Update validation to load values from existing instance if not present in new data; allows PATCH requests to succeed.
* Remove job_args, job_cwd, job_env, result_stdout and result_traceback fields from job listings.
2016-02-16 17:49:34 -05:00
Chris Church
60224cdbe4 Update Django to 1.8 and DRF to 3.3, add new Django migrations, update serializers/pagination/metadata, update browsable API styling. 2016-02-02 17:48:04 -05:00
Matthew Jones
ae12be9afa Fixing up settings reset issue
This is done by not assigning the ActivityStream foreign key.  Which is
almost superflous at this point
2016-01-05 14:34:40 -05:00
Matthew Jones
f53f3d805d View and some validation logic for database config
* Fixing some bugs in the manifest definition
* Database model and schema migration for tower settings
* Initial View and Serializer implementation using a strategy of merging
  model instances and named tuples
2015-12-11 16:57:11 -05:00
Chris Church
2ba5e06e2c Add support for single-sign on using python-social-auth (with Google/Github OAuth2 and SAML support). Add support for RADIUS as another authentication backend. 2015-10-02 14:57:27 -04:00
Matthew Jones
c231601b76 Fix merge issues on stdout branch
The act of committing a PR that including part of these changes and then
reverting it meant that some of the changes from the original branch
didn't land in this new PR.   This commit adds the missing bits.

Lesson learned:  Create a new branch when submitting a PR on a
previously reverted PR
2015-08-04 09:57:39 -04:00
Matthew Jones
5df23b95f6 Revert "Improve stdout behavior by implementing a downloadable stdout." 2015-07-24 14:54:13 -04:00
Matthew Jones
3041fce503 Allow settings access from api templates 2015-07-23 12:07:34 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Matthew Jones
b3da3b34a3 Changing some legal headers for python source files 2015-05-29 12:10:39 -04:00
Chris Church
e017270201 Update serializers to remove empty choices, provide default values for fields, and better indicate the field type when possible for OPTIONS requests and browsable API docs. 2015-05-11 18:25:30 -04:00
Matthew Jones
e784595119 Initial implementation of fact api endpoints 2015-05-05 14:47:58 -04:00
Chris Church
d1ea8708ad Make sure credential can only be assigned to a user OR team, but never both. Fixes https://trello.com/c/yzlAEfAN 2015-04-27 12:43:02 -04:00
Chris Church
f7b8d510dc Implement support for ad hoc commands. 2015-03-30 13:04:19 -04:00
Matthew Jones
888ae53027 Fix up flake8 runtime configuration, do a bit of flake8 work as it
relates to pyflakes)
2015-02-05 10:40:47 -05:00
Matthew Jones
6e6a709165 Fixing up some pep8 issues 2015-02-03 13:46:58 -05:00
Matthew Jones
90c8f18f76 Make error messages less alarming and include ip address in them 2015-01-30 15:55:32 -05:00
Luke Sneeringer
c3b962ced5 /api/v1/ping/ was added in 2.1.0 2014-12-02 10:39:54 -06:00
Chris Church
4f74afdf19 Add response headers for timing API requests, improve inventory script view performance. 2014-05-14 13:52:46 -04:00
Matthew Jones
79ef9e5ed5 Implement smart recursive deleting on certain inventory resources 2014-05-08 16:56:55 -04:00
Chris Church
e70df9bf0f Updated version to 2.0.0. 2014-04-09 00:12:33 -04:00
Matthew Jones
e197bfeb01 Add a specific tower warnings file in the tower home directory.
Configure the api viewer to emit warnings for 4XX and 5XX status codes
into that file.  Configure it for use on a production system.  Closes AC-685
2014-04-04 16:48:56 -04:00
Chris Church
118ddf97f6 Get created_by and modified_by updating automatically. 2014-04-01 21:27:32 -04:00
Chris Church
d632aa0af9 Only show editable fields in the browsable API raw data form on a detail view. 2014-04-01 21:10:16 -04:00
Chris Church
658581cce0 AC-1116 Support for deleting project/inventory updates. 2014-04-01 17:15:41 -04:00
Chris Church
5f2356a4fd AC-1040 Change type to job_type when unified_job_template is included in summary_fields. 2014-04-01 16:49:50 -04:00
Chris Church
2eeecb01a7 AC-1040 Updated type choice names for unified job subclasses. 2014-03-31 11:34:12 -04:00
Chris Church
fe5d154d76 AC-1040 Exposed list of choices for type field. 2014-03-29 14:34:22 -04:00
Chris Church
52ab418abb AC-1040 Unified job template and unified job views. 2014-03-28 01:25:25 -04:00
Chris Church
8e841d8c16 AC-1040 Update view properties to indicate version when they were added. 2014-03-25 14:57:11 -04:00
Chris Church
b631f24e5b AC-1040 Add 'type' attribute as serializer field, add 'types' attribute to options response. 2014-03-24 16:49:30 -04: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
Chris Church
27fb54b2a7 AC-984 Prevent signal handlers from being run unnecessarily when deleting inventory, remove unnecessary extra queries, use update_fields when possible. 2014-01-27 18:37:51 -05:00