Marcelo Moreira de Mello
3803763c53
Exposes the User.created attribute via API
...
Signed-off-by: Marcelo Moreira de Mello <tchello.mello@gmail.com >
2020-07-17 15:47:17 -04:00
Ryan Petrello
78229f5871
replace certain terms with more inclusive language
...
see: https://www.redhat.com/en/blog/making-open-source-more-inclusive-eradicating-problematic-language
2020-06-30 10:49:19 -04:00
Ryan Petrello
256404ba03
fix a bug that causes __search filters to not properly call .distinct()
2020-01-23 13:40:22 -05:00
AlanCoding
b0722311e8
dDo not apply distinct for series of only static fields
2020-01-16 14:36:38 -05:00
Jeff Bradberry
e672e68a02
Allow the job event list views to take a no_truncate GET param
2019-10-11 17:18:36 -04:00
Ryan Petrello
c0d9600b66
WIP: optimize dashboard performance for larger UnifiedJob counts
2019-09-11 20:37:27 -04:00
Ryan Petrello
6da445f7c0
remove /api/v1 and deprecated credential fields
2019-06-06 12:23:00 -04:00
AlanCoding
f4c18843a3
Resolve default ordering warnings from tests
2019-05-20 10:58:36 -04:00
AlanCoding
7d692d08f9
include playbook as a default search field
2019-05-01 16:15:00 -04:00
Ryan Petrello
f223df303f
convert py2 -> py3
2019-01-15 14:09:01 -05:00
AlanCoding
4428dbf1ff
Allow use of role_level filter in UJT list
2018-11-07 13:22:39 -05:00
Yunfan Zhang
b191f6cfc3
Add AND filter to related search.
...
Signed-off-by: Yunfan Zhang <yz322@duke.edu >
2018-08-01 19:43:57 -07:00
adamscmRH
4197a9fd35
granularly prevent filtering oauth secrets
2018-04-30 11:54:23 -04:00
AlanCoding
6306ac2825
use field validation in both filter classes
2018-04-26 07:23:20 -04:00
Ryan Petrello
a61187e132
restrict API filtering on oauth-related fields
...
related: https://github.com/ansible/awx/issues/1354
2018-03-12 09:16:37 -04:00
Bill Nottingham
9c722cba22
Remove some obsolete code.
2018-02-26 14:55:13 -05:00
AlanCoding
91e59ebd29
alias filters by credential to credentials
2018-02-21 14:57:26 -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
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
03e58523b2
tweak of error message for ForeignKey filters
2017-10-10 14:47:37 -04:00
Aaron Tan
358ef76529
Remove search term separators
...
Relates #7656 in ansible-tower.
We have been using comma `,` and space ` ` to separate search terms in
query string `<field_name>__search=<search terms>`, however in general
we can always use `&` to achieve separation like
`<field_name>__search=<search term 1>&<field_name>__search=<search term
2>&...`. Using specific delimiters makes it impossible for search terms
to contain those delimiters, so they are better off being removed.
Signed-off-by: Aaron Tan <jangsutsr@gmail.com >
2017-10-10 14:38:47 -04:00
Matthew Jones
c7a85d9738
Mass rename from ansible_(awx|tower) -> (awx|tower)
2017-07-26 13:33:26 -04:00
Ryan Petrello
0b6c43dac0
allow access to insights credentials in /api/v1/
...
see: #6978
2017-07-17 10:14:29 -04:00
Ryan Petrello
28f44c3ab0
filter Insights credentials from /api/v1/credentials/
...
see: #6978
see: #6088
2017-07-11 13:55:43 -04:00
Ryan Petrello
f3591b81a7
more multicredential JobTemplate changes
...
* allow for filtering Jobs and JobTemplates by v1 `cloud_credential` and
`network_credential` fields
* properly validate uniqueness of `extra_credentials` types
see: #5807
2017-05-04 16:18:48 -04:00
Ryan Petrello
a1fa9243bc
split machine CredentialType into two distinct (ssh and vault) kinds
2017-05-02 10:26:37 -04:00
Ryan Petrello
83dc4f6757
for /api/v1/ requests, filter out v2 (custom) credentials
...
see: #5877
2017-04-24 15:21:30 -04:00
Ryan Petrello
ba259e0ad4
Introduce a new CredentialTemplate model
...
Credentials now have a required CredentialType, which defines inputs
(i.e., username, password) and injectors (i.e., assign the username to
SOME_ENV_VARIABLE at job runtime)
This commit only implements the model changes necessary to support the
new inputs model, and includes code for the credential serializer that
allows backwards-compatible support for /api/v1/credentials/; tasks.py
still needs to be updated to actually respect CredentialType injectors.
This change *will* break the UI for credentials (because it needs to be
updated to use the new v2 endpoint).
see: #5877
see: #5876
see: #5805
2017-04-21 15:42:26 -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
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
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
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
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
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
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
AlanCoding
a57d8fe9fd
treat GFJ and FJ and M2M all the same for type in querystring
2017-02-20 17:11:08 -05:00
AlanCoding
d8d874d964
treat m2m fields as FK in filter python coercion
2017-02-17 11:06:29 -05:00
Wayne Witzel III
0562e4baad
Rewrite type to polymorphic_ctype__model for certain filter requests
2017-02-09 09:55:25 -05:00
Chris Church
f735c86d2b
Merge pull request #4425 from cchurch/related-search-fields
...
Related search fields
2016-12-15 15:01:24 -05:00
Chris Church
b9aab38185
Handle TypeError when lookup is not valid for a given field.
2016-12-14 13:20:19 -05:00
Chris Church
ea10ff8b93
Initial pass at related search fields.
2016-12-13 21:44:09 -05:00