-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(NODE-3699): add support for comment
field
#3167
Conversation
ec05837
to
dfcf905
Compare
comment
fieldcomment
field
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.
whoops, didn't start a review before commenting, sorry for all the pings
9b105e8
to
0224de0
Compare
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.
Leaving feedback on everything except the 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 still need to review the builder and the falsy values test, but here's feedback on the rest of the 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.
LGTM
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 a couple of minor but important notes
comment
fieldcomment
field
Description
What is changing?
This PR adds support for the
comment
field. It includes changes from three drivers tickets:Is there new documentation needed for these changes?
No.
Notes
Not modified:
$comment
field of type string. The new comment field is supported in MongoDB 4.4+ and our legacy count command only runs for server versions <=3.2.CommandOperation.executeCommand
to attach acomment
to a command when executing the command if the comment is of type string. All the new operations in the drivers spec attach thecomment
field to the command prior to callingsuper.executeOperation
, so the logic inCommandOperation.executeCommand
does not need to be updated. I also decided to leave it as-it-is (instead of making the change to accept non-string comments in this location specifically) because I didn't want to change the behavior for commands which only support string comments.Double check the following
npm run check:lint
script<type>(NODE-xxxx)<!>: <description>