-
Notifications
You must be signed in to change notification settings - Fork 409
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
Allow query to be type null in distinct
command
#2658
Conversation
distinct
commanddistinct
command
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2658 +/- ##
==========================================
+ Coverage 63.04% 63.06% +0.02%
==========================================
Files 441 441
Lines 22619 22633 +14
==========================================
+ Hits 14260 14274 +14
Misses 7434 7434
Partials 925 925
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Nice catch. Let's add more tests!
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 missed an important logic first round, please take a look. 🤗
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.
Hmm, this solution is not what we discussed. Do you think it's possible to try our original approach? With checking if null
is possible for other optional params too and changing the common logic, not only distinct
logic.
@b1ron this pull request has merge conflicts. |
# Conflicts: # integration/distinct_test.go # integration/findandmodify_test.go # integration/insert_command_compat_test.go # internal/handlers/common/params.go
As discussed on DS, I suggest merging this PR with the solution for the |
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.
Just small comment 🤗
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 agree with Chi's comments, I don't have new questions.
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.
Looks reasonable to me as a temporary solution!
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.
Makes sense for now!
Description
Closes #2236.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Labels, Project and project's Sprint fields.