Skip to content
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

Only override non declared filters #1108

Closed
wants to merge 3 commits into from

Conversation

DonQueso89
Copy link

As the docstring of replace_csv_filters already states, declared filters should not be converted to InFilter/RangeFilter since it is possible that these are intentionally customised. This function is now actually also converting declared filters

tcleonard pushed a commit to loft-orbital/graphene-django that referenced this pull request Feb 13, 2021
…or not)

- Fix type of various filters (used to default to String)
- Fix bug with contains introduced in previous PR
- Fix bug with declared filters being overridden (see PR graphql-python#1108)
- Fix support for ArrayField and add documentation
tcleonard pushed a commit to loft-orbital/graphene-django that referenced this pull request Feb 16, 2021
…or not)

- Fix type of various filters (used to default to String)
- Fix bug with contains introduced in previous PR
- Fix bug with declared filters being overridden (see PR graphql-python#1108)
- Fix support for ArrayField and add documentation
tcleonard pushed a commit to loft-orbital/graphene-django that referenced this pull request Feb 16, 2021
…or not)

- Fix type of various filters (used to default to String)
- Fix bug with contains introduced in previous PR
- Fix bug with declared filters being overridden (see PR graphql-python#1108)
- Fix support for ArrayField and add documentation
zbyte64 pushed a commit that referenced this pull request Feb 23, 2021
* - Add filtering support for choice fields converted to graphql Enum (or not)
- Fix type of various filters (used to default to String)
- Fix bug with contains introduced in previous PR
- Fix bug with declared filters being overridden (see PR #1108)
- Fix support for ArrayField and add documentation

* Fix for v3

Co-authored-by: Thomas Leonard <thomas@loftorbital.com>
zbyte64 pushed a commit that referenced this pull request Feb 23, 2021
* - Add filtering support for choice fields converted to graphql Enum (or not)
- Fix type of various filters (used to default to String)
- Fix bug with contains introduced in previous PR
- Fix bug with declared filters being overridden (see PR #1108)
- Fix support for ArrayField and add documentation

* Fix tests

Co-authored-by: Thomas Leonard <thomas@loftorbital.com>
@zbyte64
Copy link
Collaborator

zbyte64 commented Feb 23, 2021

I believe this got fixed up with the recent merge of #1119 which restored the in lookup behavior. Let us know if that is not the case.

@zbyte64 zbyte64 closed this Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants