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

16946 return empty queryset if filterset is not valid #17015

Merged
merged 7 commits into from
Aug 27, 2024

Conversation

arthanson
Copy link
Collaborator

Fixes: #16946

@arthanson arthanson changed the title DRAFT: 16946 raise error if filterset is not valid 16946 raise error if filterset is not valid Jul 29, 2024
@arthanson arthanson marked this pull request as ready for review July 29, 2024 14:58
@arthanson arthanson requested a review from jeremystretch July 29, 2024 14:58
Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a test for this fix to GraphQLTestCase?

@arthanson arthanson changed the title 16946 raise error if filterset is not valid 16946 return empty queryset if filterset is not valid Aug 26, 2024
netbox/netbox/graphql/filter_mixins.py Outdated Show resolved Hide resolved
netbox/netbox/tests/test_graphql.py Outdated Show resolved Hide resolved
@jeremystretch jeremystretch merged commit 3fee28c into develop Aug 27, 2024
6 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2024
@jeremystretch jeremystretch deleted the 16946-graphql-filter-error branch December 3, 2024 14:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GraphQL API returns all object if given filter is invalid
2 participants