-
Notifications
You must be signed in to change notification settings - Fork 526
[ClientEncryption] Remove JsonProcessor from EncryptionOptions #5454
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
base: master
Are you sure you want to change the base?
[ClientEncryption] Remove JsonProcessor from EncryptionOptions #5454
Conversation
| /// <summary> | ||
| /// API for JSON processing | ||
| /// </summary> | ||
| public enum JsonProcessor |
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.
Do we need to keep this public?
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.
Depends on how we want users to set the processor in RequestOptions. RequestOptions.Properties can store it as enum or string. Do you suggest we only keep string? Or we add helper methods that set it without actually exposing the enum?
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.
At this point I would say we might as well keep it as a string. The API will likely only remain for "finite" amount of time and since we will not be adding the convenience extension as per Kiran's request I do not see much value in this enum being public.
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.
I made it internal. Please review the changes.
| }, | ||
| Properties = new Dictionary<string, object> | ||
| { | ||
| { "encryption-json-processor", JsonProcessor.Stream } |
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.
JsonProcessor is an internal type and not accessible for external usage.
Please update test exactly the way external CX use.
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.
I updated tests to use string instead of enum.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Pull Request Template
#4678
Description
This removes
JsonProcessorfromEncryptionOptions.EncryptionOptionsare used inRequestOptionsthat already containJsonProcessorinRequestOptions.Propertiesdictionary.EncryptionOptions.JsonProcessoris redundant and cannot be used inRequestOptionssubclasses that do not containEncryptionOptions.Type of change