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

fix: model api fields filterable by null if they are not nullable fields #1136

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

adaam2
Copy link
Contributor

@adaam2 adaam2 commented Aug 24, 2023

What

WhereConditions in the ModelAPI should only allow the null comparison on a field if that field is defined as nullable

@adaam2 adaam2 requested a review from a team August 24, 2023 14:43
@davenewza
Copy link
Contributor

WhereConditions should still be nullable for fields which are optional, because we'd still want the option to query by null for them.

node/codegen_test.go Show resolved Hide resolved
@adaam2 adaam2 changed the title fix: dont allow where conditions to be nullable [DO NOT MERGE] fix: dont allow where conditions to be nullable Aug 25, 2023
@tomfrew tomfrew marked this pull request as draft October 24, 2023 10:41
@davenewza davenewza force-pushed the fix/where-conditions branch from 6e8d979 to 69204b7 Compare October 30, 2023 12:00
@davenewza davenewza changed the title [DO NOT MERGE] fix: dont allow where conditions to be nullable fix: model api fields filterable by null if they are not nullable fields Oct 30, 2023
@davenewza davenewza marked this pull request as ready for review October 30, 2023 12:02
@davenewza davenewza merged commit 0577edb into main Oct 30, 2023
9 checks passed
@davenewza davenewza deleted the fix/where-conditions branch October 30, 2023 12:16
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.

3 participants