-
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 $set
operator setting _id
#2507
Fix findAndModify
for $set
operator setting _id
#2507
Conversation
findAndModify
returns error on $set
_idfindAndModify
returns error on $set
operator setting _id
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2507 +/- ##
==========================================
+ Coverage 25.41% 26.78% +1.36%
==========================================
Files 391 403 +12
Lines 18867 19976 +1109
==========================================
+ Hits 4795 5350 +555
- Misses 13536 14061 +525
- Partials 536 565 +29
... and 18 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
So test script #2460 still does not pass. Even though task testjs using above PR's test.js script
After running test script, checking the payload response body shows that error is testjs request payload
testjs response payload
testjs diff payload
But when running the same query on
mongosh request payload
mongosh response payload
The message in diff is the only difference which is expected. mongosh diff payload
I conclude the driver under the hood or legacy mongosh or something is changing |
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.
Wow, that's unexpected results with that shell! I'd say if the compat test pass we are ok.
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.
LGTM!
findAndModify
returns error on $set
operator setting _id
findAndModify
for $set
operator setting _id
Description
Closes #2461.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Labels, Project and project's Sprint fields.