Skip to content
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-6327): new client bulk write types and builders #4205

Merged
merged 7 commits into from
Aug 28, 2024

Conversation

durran
Copy link
Member

@durran durran commented Aug 21, 2024

Description

Creates the new client bulk write model types and options as well as the builders for the bulk write command.

What is changing?

  • Creates the new client bulk write model types.
  • Creates a client bulk write command builder that delegates to the various model builders to build the operations.
  • Ensures the ops field of the bulk write command is a document sequence
  • Ensures the nsInfo field of the bulk write command is a unique document sequence.
  • Adds a bunch-o-unit-tests
Is there new documentation needed for these changes?

None. docs changes will come on the last ticket of the epic as well as the release highlights.

What is the motivation for this change?

NODE-6327

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 changed the title feat(NODE-6327): implement client bulk write types and builders feat(NODE-6327): new client bulk write types and builders Aug 21, 2024
@durran durran force-pushed the NODE-6327 branch 8 times, most recently from 1cb2bf1 to fff99b9 Compare August 21, 2024 22:09
@durran durran marked this pull request as ready for review August 21, 2024 22:26
@nbbeeken nbbeeken self-assigned this Aug 22, 2024
@nbbeeken nbbeeken self-requested a review August 22, 2024 18:11
@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Aug 22, 2024
@nbbeeken nbbeeken assigned baileympearson and unassigned nbbeeken Aug 23, 2024
Copy link
Contributor

@baileympearson baileympearson left a comment

Choose a reason for hiding this comment

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

Looks good! The testing made the PR straightforward to review.

src/operations/client_bulk_write/command_builder.ts Outdated Show resolved Hide resolved
src/operations/client_bulk_write/common.ts Outdated Show resolved Hide resolved
src/operations/client_bulk_write/command_builder.ts Outdated Show resolved Hide resolved
src/operations/client_bulk_write/command_builder.ts Outdated Show resolved Hide resolved
src/operations/client_bulk_write/command_builder.ts Outdated Show resolved Hide resolved
src/operations/client_bulk_write/command_builder.ts Outdated Show resolved Hide resolved
baileympearson
baileympearson previously approved these changes Aug 27, 2024
Copy link
Contributor

@baileympearson baileympearson left a comment

Choose a reason for hiding this comment

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

One small docs change and waiting for CI. Otherwise looks good.

src/operations/client_bulk_write/common.ts Outdated Show resolved Hide resolved
@baileympearson baileympearson added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Aug 27, 2024
src/operations/client_bulk_write/command_builder.ts Outdated Show resolved Hide resolved
src/operations/client_bulk_write/command_builder.ts Outdated Show resolved Hide resolved
src/operations/client_bulk_write/command_builder.ts Outdated Show resolved Hide resolved
src/operations/client_bulk_write/common.ts Outdated Show resolved Hide resolved
src/operations/client_bulk_write/command_builder.ts Outdated Show resolved Hide resolved
src/operations/client_bulk_write/command_builder.ts Outdated Show resolved Hide resolved
src/operations/client_bulk_write/common.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

LGTM. Keep in mind this is going in as a feat but no release notes understandably because a later PR will include the actual API. So we'll just want to remember to omit this bullet from next release.

@baileympearson
Copy link
Contributor

CI failures are unrelated.

@baileympearson baileympearson merged commit 6d65ae7 into main Aug 28, 2024
27 of 30 checks passed
@baileympearson baileympearson deleted the NODE-6327 branch August 28, 2024 19:49
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.

3 participants