-
Notifications
You must be signed in to change notification settings - Fork 499
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
CosmosClientOptions and CosmosClientBuilder: Adds client level support for EnableContentResponseOnWrite #2145
CosmosClientOptions and CosmosClientBuilder: Adds client level support for EnableContentResponseOnWrite #2145
Conversation
....Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CosmosClientContentResponseTests.cs
Show resolved
Hide resolved
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.
Waiting for UT coverage
Microsoft.Azure.Cosmos/src/RequestOptions/ItemRequestOptions.cs
Outdated
Show resolved
Hide resolved
....Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CosmosClientContentResponseTests.cs
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
....Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CosmosClientContentResponseTests.cs
Outdated
Show resolved
Hide resolved
....Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CosmosClientContentResponseTests.cs
Outdated
Show resolved
Hide resolved
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.
LGTM @kirankumarkolli could you verify the public API change and see if it's fine?
…ntentResponseClientBuilder
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
} | ||
} | ||
|
||
if (requestOptions is TransactionalBatchItemRequestOptions batchRequestOptions) |
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.
Isn't the new configuration all based on ItemRequestOptions only?
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.
The ContentResponse flag is also available for TransactionalBatchRequestOptions
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DotNetPreviewSDKAPI.json
Outdated
Show resolved
Hide resolved
FYI Arun also signed off to include Patch. |
Pull Request Template
Description
This PR adds a new field to the CosmosClient settings to enable/disable Content Response on write operations for Documents. Currently, this needs to be configured for every item request. We can now set this when creating CosmosClient. We can also override this in ItemRequestOptions while calling any Item operation.
The issue this will close : #1917