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

Support multiword negated filters #90

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

stevelacey
Copy link
Contributor

@stevelacey stevelacey commented Jan 14, 2022

Negated filters are already supported but they hit a NamingThingsError in camel_to_snake whenever the key is > 1 word.

E.g. ?name!=Din worked fine, but ?firstName!=Din would fail, this fixes that and updates the test case.

Where should the reviewer start?

/api/v2/staff/freelancers/?isStaffApproved!=false

Checklist

  • This PR increases test coverage

@stevelacey stevelacey force-pushed the bugfix/support-multiword-negated-filters branch from 637bc38 to 37ce372 Compare January 14, 2022 06:56
@stevelacey stevelacey merged commit 128be65 into master Jan 14, 2022
@stevelacey stevelacey deleted the bugfix/support-multiword-negated-filters branch January 14, 2022 06:59
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.

1 participant