Add checks (or other enforcement) to prevent model conflicts with rest_filters #395
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
ready to work
Item is ready to be worked on
Followup from:
#384 (comment)
It is possibly to incorrectly configure rest_filters. The specific scenario described there is that you have
MyModel.type
field defined. This will not be filterable becausetype
is a reserved word. So the obviously check is to crawl the model meta information and see if any field names are in the rest_filters reserved list. Simple enough.Related AWX issue
We have a related subject that, as a tech-debt item, we should set ignored fields specific to AWX in the setting
ANSIBLE_BASE_REST_FILTERS_RESERVED_NAMES
in the AWX settings, or in the AWX view. Then these should be moved out of the default setting value.The text was updated successfully, but these errors were encountered: