Commit Graph

112 Commits

Author SHA1 Message Date
Ryan Petrello
ac7c5f8648 clean up API markdown docs 2018-02-06 10:12:57 -05:00
Ryan Petrello
57c22c20b2 add support for building swagger/OpenAPI JSON
to build, run `make swagger`; a file named `swagger.json` will be
written to the current working directory
2018-02-06 10:12:57 -05:00
AlanCoding
e3a731bb9e apply listview optimizations to detail view 2017-12-13 16:09:37 -05:00
Matthew Jones
9dbcc5934e Merge remote-tracking branch 'tower/release_3.2.2' into devel 2017-12-13 12:25:47 -05:00
Ryan Petrello
ce94ba4c83 change how we detect the current user to avoid a nuanced recursion error
see: https://github.com/ansible/ansible-tower/issues/7802
2017-12-08 15:35:47 -05:00
Ryan Petrello
28ce9b700e replace all Job/JT relations with a single M2M credentials relation
Includes backwards compatibility for now-deprecated .credential,
.vault_credential, and .extra_credentials

This is a building block for multi-vault implementation and Alan's saved
launch configurations (both coming soon)

see: https://github.com/ansible/awx/issues/352
see: https://github.com/ansible/awx/issues/169
2017-11-14 12:49:12 -05:00
Wayne Witzel III
96904968d8 Fix migration issues, tests, and templates 2017-11-09 17:29:48 -05:00
AlanCoding
d2e0b26287 allow deleting hosts and groups from inv src sublists 2017-10-10 14:38:47 -04:00
AlanCoding
9ee18d02c8 new method of performance logging 2017-10-10 14:38:45 -04:00
AlanCoding
aa14d12f42 show just id field for API browser POST box 2017-07-25 15:49:16 -04:00
AlanCoding
4bb9bd5a2b correct search terms for reverse FK fields 2017-07-21 14:16:14 -04:00
AlanCoding
dfa892aae1 provide id field in attaching sublists 2017-07-21 13:50:27 -04:00
Ryan Petrello
b98d384671 filter CredentialType OPTIONS *and* help text for kind requirements
see: #7115
see: #6959
2017-07-18 17:51:07 -04:00
Ryan Petrello
7d12427497 add a new configurable, PROXY_IP_WHITELIST
implement a whitelist setting that - if populated - will only allow
specific IPs/hostnames to provide custom REMOTE_HOST_HEADERS header
values (i.e., `HTTP_X_FORWARDED_FOR`)

see: #6538
2017-07-10 10:31:45 -04:00
AlanCoding
fc59a97e44 cache view parent obj & add prefetch to sublists 2017-06-24 20:13:31 -04:00
Ryan Petrello
39525316ac prefix all /api/v1/ view descriptions with a deprecation message
additionally, fix a bug in /api/v1/credentials/ view descriptions that
causes v2 fields to display (see: #6116)
2017-06-21 16:27:07 -04:00
Aaron Tan
bef009659d Add value type validation to sublist (un)attach 2017-06-15 12:24:15 -04:00
Aaron Tan
f25391fe86 Implement named URL feature. 2017-05-31 12:09:54 -04:00
Wayne Witzel III
bac1e8b4fe Extend SmartFilter to expand search and related search fields 2017-05-19 16:05:24 -04:00
AlanCoding
14b5ab984b new view to allow associations but no creations 2017-05-11 13:11:11 -04:00
Ryan Petrello
7e64a6fd60 add "added_in_api_version" metadata to OPTIONS requests 2017-04-21 15:42:27 -04:00
Ryan Petrello
95ea370e5e add API versioning for /api/v2/ 2017-03-30 15:11:12 -04:00
AlanCoding
84e2f4d626 avoid duplicated related search fields 2017-02-24 16:49:54 -05:00
Matthew Jones
b43a354bca Merge branch 'improve_ujt_filter_aliases' into release_3.1.0
* improve_ujt_filter_aliases:
  Alias unified job template search fields for presentation
2017-02-22 16:59:56 -05:00
Matthew Jones
b14336bdff Alias unified job template search fields for presentation
The polymorphic accessors have a name that is different than our
normal presentation name for these types. This aliases them for the
presentation layer and then handles processing them when they are
given as filters.
2017-02-22 15:33:47 -05:00
AlanCoding
a69a4de51e prohibit additional items from related_search_fields 2017-02-22 13:32:05 -05:00
Ryan Petrello
fe053dca83 Merge pull request #5495 from ryanpetrello/blacklist_sensitive_search_keys
blacklist certain sensitive fields and relations as search arguments
2017-02-22 10:28:03 -05:00
Ryan Petrello
d24fb32358 blacklist certain sensitive fields and relations as search arguments
see: #5465
see: #5478
2017-02-21 16:18:02 -05:00
Chris Meyers
31a79c331d move logger logic to formatter 2017-02-20 14:30:17 -05:00
Chris Meyers
0dada82b4b more general name for performance logger 2017-02-18 09:28:38 -05:00
Chris Meyers
af9975c6af add a new logger, awx.analytics.performance.api
* Used to log API timing information
2017-02-17 15:35:03 -05:00
AlanCoding
c3eff539d0 fixes for unified_jobs related m2m search listing 2017-02-14 08:59:02 -05:00
AlanCoding
31098d1b5d surface labels related search for job templates 2017-02-13 14:34:40 -05:00
AlanCoding
d6196f26f6 include m2m fields in related search options 2017-01-30 16:22:18 -05:00
Alan Rominger
54980d09e3 Merge pull request #4578 from AlanCoding/access_list_perm
Use ParentMixin for access_list permissions check
2017-01-05 14:53:47 -05:00
Matthew Jones
f9d9196270 Adding deprecation warnings
Also updating New in/Added in text
2017-01-04 14:23:43 -05:00
AlanCoding
bd82ab9fb0 use ParentMixin machinery to check access_list parent obj permissions 2017-01-04 13:39:14 -05:00
Chris Church
ea10ff8b93 Initial pass at related search fields. 2016-12-13 21:44:09 -05:00
Chris Church
36dc0d7059 Add workflows as a licensed feature, add mixin for workflow and activity stream license enforcement on views, update mixins to consistently come before base classes. 2016-12-02 16:54:24 -05:00
Aaron Tan
2d1a5425d1 Fix flake8 E302 errors second round. 2016-11-16 09:56:07 -05:00
Aaron Tan
9e4655419e Fix flake8 E302 errors. 2016-11-15 20:59:39 -05:00
Aaron Tan
473ed016de Fix flake8 E305 errors. 2016-11-15 16:32:27 -05:00
Matthew Jones
88a8810815 Merge pull request #3729 from sundeep-co-in/STAGE
enable django i18n
2016-11-04 15:52:33 -04:00
Aaron Tan
7472cf0dc9 Refactor for better performance. 2016-11-01 15:25:50 -04:00
Aaron Tan
02cccf35d3 Delete created resource when it fails the relationship verification. 2016-11-01 15:25:50 -04:00
Aaron Tan
88025d0733 Basic verification architecture added. 2016-11-01 15:25:50 -04:00
sundeep-co-in
d7b3b90f4d update strings 2016-10-25 16:12:41 +05:30
Matthew Jones
2a844b9c42 Add api node request servicer to response headers 2016-10-07 11:40:44 -04:00
Chris Church
6ebe45b1bd Configure Tower in Tower:
* Add separate Django app for configuration: awx.conf.
* Migrate from existing main.TowerSettings model to conf.Setting.
* Add settings wrapper to allow get/set/del via django.conf.settings.
* Update existing references to tower_settings to use django.conf.settings.
* Add a settings registry to allow for each Django app to register configurable settings.
* Support setting validation and conversion using Django REST Framework fields.
* Add /api/v1/settings/ to display a list of setting categories.
* Add /api/v1/settings/<slug>/ to display all settings in a category as a single object.
* Allow PUT/PATCH to update setting singleton, DELETE to reset to defaults.
* Add "all" category to display all settings across categories.
* Add "changed" category to display only settings configured in the database.
* Support per-user settings via "user" category (/api/v1/settings/user/).
* Support defaults for user settings via "user-defaults" category (/api/v1/settings/user-defaults/).
* Update serializer metadata to support category, category_slug and placeholder on OPTIONS responses.
* Update serializer metadata to handle child fields of a list/dict.
* Hide raw data form in browsable API for OPTIONS and DELETE.
* Combine existing licensing code into single "TaskEnhancer" class.
* Move license helper functions from awx.api.license into awx.conf.license.
* Update /api/v1/config/ to read/verify/update license using TaskEnhancer and settings wrapper.
* Add support for caching settings accessed via settings wrapper.
* Invalidate cached settings when Setting model changes or is deleted.
* Preload all database settings into cache on first access via settings wrapper.
* Add support for read-only settings than can update their value depending on other settings.
* Use setting_changed signal whenever a setting changes.
* Register configurable authentication, jobs, system and ui settings.
* Register configurable LDAP, RADIUS and social auth settings.
* Add custom fields and validators for URL, LDAP, RADIUS and social auth settings.
* Rewrite existing validator for Credential ssh_private_key to support validating private keys, certs or combinations of both.
* Get all unit/functional tests working with above changes.
* Add "migrate_to_database_settings" command to determine settings to be migrated into the database and comment them out when set in Python settings files.
* Add support for migrating license key from file to database.
* Remove database-configuable settings from local_settings.py example files.
* Update setup role to no longer install files for database-configurable settings.

f 94ff6ee More settings work.
f af4c4e0 Even more db settings stuff.
f 96ea9c0 More settings, attempt at singleton serializer for settings.
f 937c760 More work on singleton/category views in API, add code to comment out settings in Python files, work on command to migrate settings to database.
f 425b0d3 Minor fixes for sprint demo.
f ea402a4 Add support for read-only settings, cleanup license engine, get license support working with DB settings.
f ec289e4 Rename migration, minor fixmes, update setup role.
f 603640b Rewrite key/cert validator, finish adding social auth fields, hook up signals for setting_changed, use None to imply a setting is not set.
f 67d1b5a Get functional/unit tests passing.
f 2919b62 Flake8 fixes.
f e62f421 Add redbaron to requirements, get file to database migration working (except for license).
f c564508 Add support for migrating license file.
f 982f767 Add support for regex in social map fields.
2016-09-26 22:14:47 -04:00
AlanCoding
0406431337 refactor step 2, move cacher to utils, generics ListView 2016-09-01 17:20:58 -04:00