104 Commits

Author SHA1 Message Date
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
AlanCoding
07bea4c8b0 Revert "Merge pull request #2444 from AlanCoding/2364_access_list_restriction"
This reverts commit b71307bf91d1f1a9337071e04ecced012826584b, reversing
changes made to 1be12482954b680ba7a55746594a7e29df9b178d.
2016-07-01 10:10:00 -04:00
Chris Meyers
ecaf2b86b0 flake8 fix 2016-06-30 15:34:48 -04:00
Chris Meyers
84e02a5dd2 fix unit tests and make delete last unattach more generic 2016-06-30 14:13:19 -04:00
Chris Meyers
a57dca9786 fix delete last label disassociate
* Inherit from mixin first in order to overwrite next inherited class
method, unattach.
* Also, fix up test and add test to ensure correct inheritance
2016-06-29 17:19:08 -04:00
Wayne Witzel III
ce3ce8d930 enforce read access for team/child roles 2016-06-27 11:02:07 -04:00
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