Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vbabanin
Copy link
Member

Comment on lines +361 to +364
/**
* Not a prose spec test. However, it is additional test case for better coverage.
*/
@Test
Copy link
Member Author

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.

@vbabanin vbabanin requested review from a team and katcharov and removed request for a team June 10, 2025 22:40
@vbabanin vbabanin self-assigned this Jun 10, 2025
Copy link
Collaborator

@katcharov katcharov left a 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;
Copy link
Collaborator

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants