-
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
Fix findAndModify
for $exists
query operator
#2385
Fix findAndModify
for $exists
query operator
#2385
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2385 +/- ##
==========================================
+ Coverage 63.99% 64.34% +0.34%
==========================================
Files 391 392 +1
Lines 19144 19233 +89
==========================================
+ Hits 12252 12376 +124
+ Misses 5984 5955 -29
+ Partials 908 902 -6
... and 2 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
findAndModify
supports $exists
operatorfindAndModify
for _id
$exists
operator
findAndModify
for _id
$exists
operatorfindAndModify
for $exists
operator on _id
findAndModify
for $exists
operator on _id
findAndModify
for $exists
query operator
…row/FerretDB into issue-2241-upsert-exists-operator
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 like that we cover more cases, and I like the idea of refactoring findAndModify
.
However, I find some structuring/naming a bit confusing.
Let's decide if we want to have a quick fix for this particular bug and a proper refactoring later, or if a proper refactoring is a part of this issue.
Also, as agreed, I created a separate issue to cover the rest of $exists
cases for findAndModify
- #2400.
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.
As agreed, in the scope of this PR we fix a particular bug (actually, three bugs)!
I like the test cases and I like how we started moving the logic to common!
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.
👍
Description
Closes #2241.
Closes #1243.
Closes #1098.
In this PR, duplicated logic and codes were added to common package instead of duplicating them in pg and tigris handlers.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Assignee, Labels, Project and project's Sprint fields.