-
Notifications
You must be signed in to change notification settings - Fork 375
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
Combiner mem cache for DEK #10534
Combiner mem cache for DEK #10534
Conversation
9dab542
to
b4c575e
Compare
@@ -41,6 +41,8 @@ export const pnpFullNodeRetryCount = defineInt('PNP_FULL_NODE_RETRY_COUNT', { | |||
export const pnpFullNodeDelaysMs = defineInt('PNP_FULL_NODE_DELAY_MS', { | |||
default: RETRY_DELAY_IN_MS, | |||
}) | |||
export const pnpShouldMockAccountService = defineBoolean('PNP_SHOULD_MOCK_ACCOUNT_SERVICE') | |||
export const pnpMockDek = defineString('PNP_MOCK_DECK') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could set a default DEK based on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I didn't know that. Adding it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmm, I'll leave it like this. If I include that function I'll need to add a file in a test folder, which could be a problem for productive builds, or move that to some sort of utils, but just for testing.
If we use it as e2e we can set this variable and that's it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Left some comments
packages/phone-number-privacy/combiner/src/pnp/services/account-services.ts
Show resolved
Hide resolved
packages/phone-number-privacy/combiner/src/pnp/services/account-services.ts
Show resolved
Hide resolved
b4c575e
to
d7c3686
Compare
Description
Depends on PR #10533
LRU cache for the DEK of an account