Skip to content

Conversation

durran
Copy link
Member

@durran durran commented Aug 29, 2025

Description

Prevents duplicate metadata for the same driver info name to be appended.

What is changing?

Checks the name of the driver info being appended. If it exists, it does not get added.

Is there new documentation needed for these changes?

None

What is the motivation for this change?

NODE-7073

Release Highlight

Fill in title or leave empty for no highlight

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

@durran durran marked this pull request as ready for review August 30, 2025 01:06
@durran durran requested a review from a team as a code owner August 30, 2025 01:06
*/
appendMetadata(driverInfo: DriverInfo) {
for (const info of this.options.additionalDriverInfo) {
if (info.name === driverInfo.name) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe one of the things we need to consider in the related DRIVERS-3262 is whether we could be in a situation with the same name but a different version, and we're pretty sure we do want to preserve the info in that case

Copy link
Member Author

Choose a reason for hiding this comment

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

I've updated to check version as well and added another test.

@dariakp dariakp added the wip label Sep 3, 2025
@dariakp dariakp changed the title fix(NODE-7073): dont add duplicate metadata fix(NODE-7131): dont add duplicate metadata Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants