Alan Rominger
14a03d2cb5
Merge pull request #6029 from AlanCoding/group_v1
...
Group serializer special v1 functionality
2017-04-17 11:37:26 -04:00
AlanCoding
7223177684
Group serializer special v1 functionality
...
Returns a related `inventory_source` and related link for groups
if accessed from /api/v1/, but not for API v2.
Also inserts corresponding fields to inventory source serializer.
Keep migrated manual sources and auto-create in API v1.
2017-04-17 10:30:07 -04:00
Chris Meyers
bd1f8b088f
400 on invalid host filter query instead of 500
2017-04-13 09:40:11 -04:00
Wayne Witzel III
91f3e665cb
group -> deprecated_group, added migrations, added/removed tests
2017-04-11 14:09:04 -04:00
Wayne Witzel III
7458788562
More updates for InventorySource changes
2017-04-11 14:04:25 -04:00
Wayne Witzel III
c784c96449
Initial removal of InventorySource.group
2017-04-11 14:04:25 -04:00
Chris Meyers
ee09bca558
change facts_recent to facts_latest
2017-04-05 16:50:38 -04:00
Chris Meyers
f7fb541fe2
add facts recent endpoints
...
* Hang most recent listing of facts per-host off of /hosts/n/
2017-04-04 17:54:02 -04:00
Chris Meyers
a8213661fd
basic fact search grammar
...
* Establish a base grammar for handling json path specification and
value matching. With boolean logic support and parenthesis grouping
i.e. (a.b.c="value") and ((a.b="foo") or (a="bar"))
* generate Q() results for passing to Host.objects.filter()
* Hooked up via /api/v1/hosts?host_filter=...
* DynamicFilterField added to store host filter as string with grammar
parser attached as static methods for later use by DynamicInventory &
continued use by host_filter=...
2017-04-03 15:32:21 -04:00
Ryan Petrello
95ea370e5e
add API versioning for /api/v2/
2017-03-30 15:11:12 -04:00
AlanCoding
99fc0e8264
Use consistent error message when vars are not parsed correctly
2017-03-22 16:37:20 -04:00
Alan Rominger
83bc654b15
Merge pull request #5812 from AlanCoding/no_loops_for_hackers
...
Block loops in querystring filters
2017-03-21 10:50:35 -04:00
Ryan Petrello
a69dfced74
Merge remote-tracking branch 'origin/release_3.1.2' into devel
2017-03-21 10:39:16 -04:00
AlanCoding
925712e3ec
block users from making looping filters which can DoS Tower
2017-03-21 10:16:49 -04:00
Ryan Petrello
ba0e9ab775
copy extra_vars when relaunching ad-hoc commands
...
see: #1744
2017-03-21 09:45:30 -04:00
Aaron Tan
2edd4b338d
Add functional test to gurarantee consistent behavior of provisioning callback with jt launch.
2017-03-17 15:40:55 -04:00
Aaron Tan
6083e9482e
Refactor job template callback post to mimic the behavior of normal jt launch.
2017-03-17 13:04:45 -04:00
Wayne Witzel III
ea1c4ee1d5
correct unintentional stripping of - from order by fields
2017-03-13 18:13:55 -04:00
Ryan Petrello
bad9670a0b
Merge remote-tracking branch 'origin/release_3.1.2' into devel
2017-03-10 10:57:03 -05:00
Ryan Petrello
f4d4c43d94
prohibit order_by= for sensitive fields
...
see: #5526
2017-03-10 08:49:59 -05:00
Ryan Petrello
8c1de7f109
add an API endpoint for testing external log aggregrator connectivity
...
see: #5164
2017-03-09 13:19:56 -05:00
Wayne Witzel III
27fc64eb56
value_to_python should encode lookup fields as ascii
2017-03-08 12:30:30 -05:00
Aaron Tan
b105e2b9b6
Remove unicode marker from filter error message.
2017-03-07 16:48:51 -05:00
Chris Meyers
1fc40d38c7
jobs/<id>/job_events?search= searches stdout field
2017-03-07 16:48:48 -05:00
Ryan Petrello
d97ff57cda
prohibit API payloads that represent something other than a JSON object
...
The JSON serializer for our API uses ``json.loads``, which permits *any*
valid JSON (including bare integers, boolean values, etc). Lots of our
code, however, assumes that inbound JSON content will be a dict.
see: #4756
2017-02-28 13:23:03 -05:00
Matthew Jones
1fefa4cfdd
Merge branch 'stable' into devel
...
* stable: (275 commits)
Install correct rpm-sign package in RPM builder
Updating changelog for 3.1 release
Switch job_type to check from sync when detecting delete_on_update
use Unicode apostrophes - not single quotes - for French i18n strings
pin appdirs==1.4.2
only cancel deps if we can cancel the inv update
fixing module_name check and adding support for the debug module
cancel jobs dependent on inv update
update tests
CSS tweaks to workflow results panels
like inventory updates, check if project update deps already processed
Revert "Merge pull request #5553 from chrismeyersfsu/fix-waiting_blocked"
Add awx/ui/client/languages to .gitignore
Delete awx/ui/client/languages/*.json
refactor based on review
Add missing permission check.
Make current_groups a set to easily avoid duplicates, update asgi-amqp requirement
avoid duplicated related search fields
Fix workflow audit items
fixing module name, json blob, and stdout-for-yum-module on host event
...
2017-02-28 11:37:05 -05:00
Wayne Witzel III
c919f1ef30
Merge pull request #5487 from wwitzel3/issue-5341
...
explicit ordering in workflow_nodes views
2017-02-27 10:06:58 -05:00
Aaron Tan
fe3605ccdd
Merge pull request #5534 from jangsutsr/3551_restore_original_behavior_of_group_children_unattach
...
Restore original behavior of group children unattach
2017-02-27 10:05:15 -05:00
Wayne Witzel III
a04411817f
refactor based on review
2017-02-24 17:12:40 -05:00
Aaron Tan
f11a220e64
Add missing permission check.
2017-02-24 17:06:57 -05:00
Aaron Tan
7415880f20
Merge pull request #5515 from jangsutsr/3254_update_host_detail_put_option
...
Update host detail put option rework
2017-02-24 16:58:09 -05:00
AlanCoding
84e2f4d626
avoid duplicated related search fields
2017-02-24 16:49:54 -05:00
Aaron Tan
2c4a16369d
Restore original behavior of group children unattach.
2017-02-23 16:53:16 -05:00
Ryan Petrello
5dfdef6e6b
retain the default interstitial value for TOWER_URL_BASE
...
to support #5470 , check for the presence of this special interstitial
value and replace it with the request hostname for settings OPTIONS
requests
2017-02-23 16:38:16 -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
Alan Rominger
1f0b3876cc
Merge pull request #5506 from AlanCoding/no_bad_names
...
More gutting of related_search_fields in 3.1 scope
2017-02-22 16:52:56 -05:00
jangsutsr
5af389949e
update ACTIONS field of metadata.
2017-02-22 15:45:43 -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
f11e9076cf
Merge pull request #5505 from ryanpetrello/fix-5470
...
set the default in OPTIONS for TOWER_URL_BASE to the request hostname
2017-02-22 12:29:53 -05:00
Ryan Petrello
94ad12ab0d
set the default in OPTIONS for TOWER_URL_BASE to the request hostname
...
see: #5470
2017-02-22 11:16:08 -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
Matthew Jones
9e2e119022
Make polymorphic_ctype aliasing work in filters
...
Previousy this would fall through and get caught by the type checker
2017-02-21 21:32:33 -05:00
Ryan Petrello
73a5a1e61e
mark i18n strings for denied API search parameters
2017-02-21 16:18:06 -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
3e122733c5
Merge pull request #5438 from chrismeyersfsu/private-performance_logging
...
add a new type of logger, performance.api
2017-02-21 14:35:11 -05:00
Matthew Jones
46605eb591
Fix an issue filtering with non ints against foreign keys
...
I feel like this probably worked at one time but no longer does. It
makes me wonder if ForeignObjectRel was meant to be the catchall but
no longer is.
2017-02-21 12:33:15 -05:00
Wayne Witzel III
87e0c9020f
explicit ordering in workflow_nodes views
2017-02-21 02:33:45 -05:00
Alan Rominger
95e1caed56
Merge pull request #5443 from AlanCoding/vars_disp
...
Prevent server error in /variables/ endpoint
2017-02-20 22:29:08 -05:00
Alan Rominger
7d49d048e7
Merge pull request #5429 from AlanCoding/m2m_types
...
Integer (or generic ForeignKey) coercion for m2m filters
2017-02-20 22:25:57 -05:00