-
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-4961)!: remove command result from commit and abort transaction APIs #3784
Conversation
Needs test fixes from #3783, Otherwise ready for review. |
I put fixes to the tests in this PR, they assert void return values for |
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.
There's a testing note in the ticket:
- Regression test
Do we have any tests that confirm these APIs return void
(type or integration)?
Description
What is changing?
Is there new documentation needed for these changes?
The typescript has been updated.
What is the motivation for this change?
See notes
Release Highlight
session.commitTransaction()
andsession.abortTransaction()
return voidEach of these methods erroneously returned server command results that can be different depending on server version or type the driver is connected to. These methods return a promise that if resolved means the command (aborting or commiting) sucessfully completed and rejects otherwise. Viewing command responses is possible through the command monitoring APIs on the MongoClient.
Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript