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

fix(NODE-6300): make expressionMode required in C++ in makeExplicitEncryptionContext #37

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

baileympearson
Copy link
Collaborator

@baileympearson baileympearson commented Jul 30, 2024

Description

What is changing?

MakeExplicitEncryptionContext takes an option, expressionMode, that controls whether an expression context or regular context is instantiated. This option is always provided by the driver, is required by TS but in C++ we coerce the option to boolean instead.

This PR aligns the C++ to match the intended behavior.

Is there new documentation needed for these changes?

What is the motivation for this change?

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 changed the title asdf fix: make expressionMode required in C++ in makeExplicitEncryptionContext Jul 30, 2024
@baileympearson baileympearson marked this pull request as ready for review July 30, 2024 17:28
@@ -23,6 +23,7 @@
"check:clang-format": "clang-format --style=file:.clang-format --dry-run --Werror addon/*",
"test": "mocha test",
"prepare": "tsc",
"rebuild": "node-gyp rebuild",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This isn't necessary for this PR, just nice-to-have.

@baileympearson baileympearson changed the title fix: make expressionMode required in C++ in makeExplicitEncryptionContext fix(NODE-6300): make expressionMode required in C++ in makeExplicitEncryptionContext Jul 31, 2024
@nbbeeken nbbeeken removed their request for review July 31, 2024 15:31
@W-A-James W-A-James self-requested a review July 31, 2024 17:03
@W-A-James W-A-James self-assigned this Jul 31, 2024
@W-A-James W-A-James added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Jul 31, 2024
addon/mongocrypt.h Show resolved Hide resolved
addon/mongocrypt.h Show resolved Hide resolved
@W-A-James W-A-James added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Jul 31, 2024
Copy link
Contributor

@aditi-khare-mongoDB aditi-khare-mongoDB left a comment

Choose a reason for hiding this comment

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

Can we make the release notes title empty?

@W-A-James W-A-James merged commit 5552f9f into main Aug 1, 2024
30 checks passed
@W-A-James W-A-James deleted the make-expressionMode-required branch August 1, 2024 19:07
baileympearson added a commit that referenced this pull request Aug 6, 2024
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