Skip to content

Conversation

baileympearson
Copy link
Contributor

@baileympearson baileympearson commented Sep 4, 2025

Description

What is changing?

This PR is a POC implementation for mongodb/specifications#1833.

Additionally, while working on the implementation, I decided to simplify the handshake metadata logic by using MongoClient.appendMetadata() to append the driverInfo provided to the MongoClient, if any was provided.

Release Highlight

MongoClient.appendMetadata() ignores duplicate metadata

MongoClient.appendMetadata() will no longer append metadata if it duplicates the metadata already appended to the MongoClient.

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@baileympearson baileympearson marked this pull request as ready for review September 4, 2025 18:02
@baileympearson baileympearson requested a review from a team as a code owner September 4, 2025 18:02
@dariakp dariakp self-assigned this Sep 5, 2025
@dariakp dariakp added Primary Review In Review with primary reviewer, not yet ready for team's eyes wip labels Sep 5, 2025
Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

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

Reviewed the source code, need to come back to look at the tests after my eyes get a break from staring at so much text

Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

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

duplicate review

@dariakp dariakp removed the wip label Sep 10, 2025
Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

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

LGTM pending the runtime validation discussion

Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

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

duplicate review from gh

@dariakp dariakp added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Sep 15, 2025
@dariakp dariakp merged commit 05c230c into mongodb:main Sep 17, 2025
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants