-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
add isNull
condition for payload filtering
#1617
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
82d9f56
add minimal working is_null filter
ibrahim-akrab 75decc4
add is_null condition to grpc api (backward compatible)
ibrahim-akrab d988d55
add unit tests is_null and is_empty conditions
ibrahim-akrab aafb6ef
add is_null to points.proto file
ibrahim-akrab de40037
add some failing OpenAPI tests
ibrahim-akrab c09a621
fix a failing test due to change in collection data
ibrahim-akrab 47837c5
refactor MultiValue's check for is_null
ibrahim-akrab ce3feb8
fix is_empty condition not picking up "key":[]
ibrahim-akrab 7ecbd64
remove duplicate OpenAPI integration test
ibrahim-akrab 6c4baae
reuse same variable in condition checker tests
ibrahim-akrab ed0f3e9
update grpc docs
ibrahim-akrab 19977b4
fix is_null cardinality estimation to match is_empty
ibrahim-akrab 48b303e
update openapi specs
ibrahim-akrab 2a6a828
remove unused debug statements
ibrahim-akrab 4eef537
add new test points to original test_collection
ibrahim-akrab 974ceb2
fix failing tests according to newly added points
ibrahim-akrab 3bcac3b
add the `"key":[null]` test_case
ibrahim-akrab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add unit tests is_null and is_empty conditions
- Loading branch information
commit d988d555a5802a5c33e89674c1b1401de9a4014c
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to add a test for a field that is
[null]
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is the filtering supposed to behave in that case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess
[null]
is equivalent to an empty array, so not null.WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the current implementation, it will not be matched with neither
is_empty
noris_null
.If you want it to be matched with
is_empty
that's fine. However, what about[null, [null]]
, is that even a valid payload? if so, should it be equivalent to empty as well?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another concern , wouldn't it be confusing for
"key":[null]
to get matched as empty and not as null with the word "null" in it? I don't see it making sense in the documentation 😕There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forget about my comment, I don't think it is necessary to test this.
Sorry for derailing your research.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's alright, I added it anyway to test for any future changes regarding this case.