-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add namespace type support to ChangeStreamDocument. #1736
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
base: main
Are you sure you want to change the base?
Conversation
/** | ||
* Not a prose spec test. However, it is additional test case for better coverage. | ||
*/ | ||
@Test |
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.
Unified tests validate the raw BsonDocument
returned from a MongoCursor
, while these prose tests add additional integration coverage for working with ChangeStreamDocument
.
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
this.destinationNamespaceDocument = destinationNamespaceDocument; | ||
this.fullDocumentBeforeChange = fullDocumentBeforeChange; | ||
this.documentKey = documentKey; | ||
this.fullDocument = fullDocument; | ||
this.clusterTime = clusterTime; | ||
this.operationTypeString = operationTypeString; | ||
this.operationTypeString = operationType; |
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.
(minor) Should the field be renamed?
@@ -95,9 +97,9 @@ public String getValue() { | |||
* Returns the ChangeStreamOperationType from the string value. | |||
* | |||
* @param operationTypeName the string value. | |||
* @return the read concern | |||
* @return the operation type. |
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.
👍
JAVA-5769