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

Cosmos Encryption removed block() in implementation #14529

Merged
merged 10 commits into from
Sep 1, 2020

Conversation

moderakh
Copy link
Contributor

@moderakh moderakh commented Aug 27, 2020

  • This PR has 0 change in azure-cosmos
  • This PR scope is to remove block() calls in cosmos-encryption lib implementation.

@ghost ghost added the Cosmos label Aug 27, 2020
@moderakh moderakh added the Client This issue points to a problem in the data-plane of the library. label Aug 27, 2020

CosmosItemRequestOptions effectiveRequestOptions = requestOptions != null ? requestOptions : new CosmosItemRequestOptions();

effectiveRequestOptions.setIfMatchETag(dekProperties.eTag);
Copy link
Member

Choose a reason for hiding this comment

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

You are modifying the passed in request options here. Wouldn't it be better to create a deep copy instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed. good point. thank you.

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

Couple of NITs - but otherwise LGTM

@moderakh moderakh merged commit 181a04a into Azure:master Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Cosmos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants