Feature-gating Patch as GA preparation - #5133
Merged
Fabian Meiswinkel (FabianMeiswinkel) merged 6 commits intoAug 26, 2026
Merged
Conversation
Fabian Meiswinkel (FabianMeiswinkel)
requested a review
from a team
as a code owner
August 26, 2026 11:38
|
Azure Pipelines: Successfully started running 1 pipeline(s). 3 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Copilot started reviewing on behalf of
Fabian Meiswinkel (FabianMeiswinkel)
August 26, 2026 11:39
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Introduces an opt-in preview_patch feature for Cosmos point-item PATCH while its retry semantics remain experimental.
Changes:
- Gates primary SDK and driver PATCH entry points.
- Conditionally compiles PATCH handlers and tests.
- Documents preview status, failure semantics, and feature usage.
Show a summary per file
| File | Description |
|---|---|
azure_data_cosmos/tests/emulator_tests/mod.rs |
Gates PATCH tests. |
azure_data_cosmos/tests/emulator_tests/cosmos_hpk.rs |
Gates HPK PATCH test. |
azure_data_cosmos/src/options/mod.rs |
Gates options export. |
azure_data_cosmos/src/options/item.rs |
Gates and documents PATCH options. |
azure_data_cosmos/src/clients/container_client.rs |
Gates PATCH client method. |
azure_data_cosmos/README.md |
Documents preview usage and risks. |
azure_data_cosmos/examples/cosmos_patch.rs |
Updates example requirements. |
azure_data_cosmos/docs/ConfigurationOptions.md |
Removes PATCH from write-options scope. |
azure_data_cosmos/CHANGELOG.md |
Records SDK breaking change. |
azure_data_cosmos/Cargo.toml |
Defines SDK feature and example requirement. |
azure_data_cosmos_driver/tests/framework/test_client.rs |
Gates test helper. |
azure_data_cosmos_driver/tests/emulator_tests/mod.rs |
Gates driver PATCH tests. |
azure_data_cosmos_driver/src/models/cosmos_resource_reference.rs |
Handles feature-dependent dead code. |
azure_data_cosmos_driver/src/models/cosmos_operation.rs |
Gates driver PATCH APIs. |
azure_data_cosmos_driver/src/error/mod.rs |
Handles feature-dependent dead code. |
azure_data_cosmos_driver/src/driver/pipeline/mod.rs |
Conditionally exposes PATCH pipeline modules. |
azure_data_cosmos_driver/src/driver/cosmos_driver.rs |
Gates PATCH dispatch. |
azure_data_cosmos_driver/src/diagnostics/diagnostics_context.rs |
Handles feature-dependent diagnostics code. |
azure_data_cosmos_driver/docs/PATCH_HANDLER_SPEC.md |
Documents preview failure semantics. |
azure_data_cosmos_driver/CHANGELOG.md |
Records driver breaking change. |
azure_data_cosmos_driver/Cargo.toml |
Defines driver feature. |
Review details
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 21/21 changed files
- Comments generated: 2
- Review effort level: Balanced
Updated changelog to reflect new features and breaking changes in the Azure Data Cosmos SDK.
Updated the changelog to reflect breaking changes and new features related to the Cosmos Driver, including the gating of patch operations behind the 'preview_patch' feature and changes to resource-reference accessors.
Simon Moreno (simorenoh)
approved these changes
Aug 26, 2026
Tomas Varon (tvaron3)
approved these changes
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gating the Patch API behind a new feature-flag
preview_patchwhile iterating on the implementation trade-off (server-side patch vs. cleint-side patch allowing retries due to idempotent exactly-once semantics).