Skip to content

refactor(NODE-5764): add commandName to AbstractOperation subclasses #3934

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

Merged
merged 18 commits into from
Dec 5, 2023

Conversation

aditi-khare-mongoDB
Copy link
Contributor

@aditi-khare-mongoDB aditi-khare-mongoDB commented Nov 28, 2023

Description

Before this change, the command name of an operation was only able to be accessed at execution time. Now, with the use of a getter in each subclass of AbstractOperation, the name of a command is able to be accessed once the operation is instantiated, or with the operation class name.

What is changing?

Allows access command name of operation once operation is instantiated, or through operation's class name.

Is there new documentation needed for these changes?

No this is an internal change, invisible to users implicitly since its within a private class.

What is the motivation for this change?

NODE-4687 (Server Selection Logging) was blocked before this change, since the AC for the ticket required command/operation name to be logged before execution of the command.

  • 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

@aditi-khare-mongoDB aditi-khare-mongoDB changed the title testing skeleton structure done, need to add getter to all subclasses chore(NODE-5764): Add commandName to AbstractOperation subclasses Nov 29, 2023
@aditi-khare-mongoDB aditi-khare-mongoDB changed the title chore(NODE-5764): Add commandName to AbstractOperation subclasses feat(NODE-5764): Add commandName to AbstractOperation subclasses Nov 29, 2023
@aditi-khare-mongoDB aditi-khare-mongoDB marked this pull request as ready for review November 29, 2023 23:21
@nbbeeken nbbeeken self-requested a review November 30, 2023 18:23
@nbbeeken nbbeeken self-assigned this Nov 30, 2023
@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Nov 30, 2023
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.

We don't want to change the package-lock here right? We can undo the changes.

@nbbeeken nbbeeken changed the title feat(NODE-5764): Add commandName to AbstractOperation subclasses refactor(NODE-5764): add commandName to AbstractOperation subclasses Nov 30, 2023
@nbbeeken nbbeeken added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Dec 1, 2023
@nbbeeken nbbeeken merged commit 130691d into main Dec 5, 2023
@nbbeeken nbbeeken deleted the NODE-5764/add-command-name-to-operation branch December 5, 2023 19:14
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