-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow OR filters #3914
Comments
Attaching #2480 for completeness. |
adding
|
|
Given this commit references consistency with AWX which also uses django... we implement these filters here: https://github.com/ansible/awx/blob/devel/awx/api/filters.py |
Is your feature request related to a problem? Please describe.
We would like to include more advanced filtering options in the Automation Hub UI that allow for users to filter API results using OR lookups, for example I should be able to filter results using expressions such as
name__icontains=foo OR name__icontains=bar
.Describe the solution you'd like
There are a number of possible options to consider for this:
?name=foo&name=bar
). This would break backwards compatibility with the ruby and python bindings, as the open api spec type field would change to a list type.?name=foo,bar
,?name=foo|bar
).|
may make more sense, as,
are used for list values in other parts of the API.__in
to the list of default lookup expressions (eg?name__in=foo,bar
). This may not work with more complex lookups likename__icontains__in=
.Additional context
The AAP team is work on unifying the UI experience across the ansible platform, and this is one capability supported by the other platform components (such as ansible controller), but is currently missing in Automation Hub
The text was updated successfully, but these errors were encountered: