8000 Add checks (or other enforcement) to prevent model conflicts with rest_filters · Issue #395 · ansible/django-ansible-base · GitHub
[go: up one dir, main page]

Skip to content

Add checks (or other enforcement) to prevent model conflicts with rest_filters #395

Open

Description

@AlanCoding

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 because type 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0