Repository navigation
[1.2] Expose pending throughput replacement in structured output - #325
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> (cherry picked from commit 84d1fb9)
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the throughput replacement-status output backport.
No open issues 🎉
What changed in this PR
Backports #318 to rel/1.2, exposing service-reported throughput replacement status in structured CLI and MCP output for database and container operations.
Changes:
- Adds nullable
isReplacePendingstatus for data-plane and ARM connections, preserving missing or unrecognized values asnull. - Reports observed status in read/write results and only under
currentfor dry runs. - Documents the output contract and adds regression tests using conditional nullable-boolean assertions.
| File | Description |
|---|---|
| docs/mcp.md | Documents replacement status in MCP throughput results. |
| docs/commands.md | Explains status values and dry-run placement. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Core/ThroughputView.cs | Adds the nullable replacement-status field. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Core/DataPlaneCosmosResourceOperations.cs | Safely parses the data-plane response header. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Core/ArmCosmosResourceOperations.cs | Parses the ARM replacement-status value. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/ThroughputCommand.cs | Includes status in structured results and dry-run current state. |
| CosmosDBShell.Tests/CommandTests/ThroughputReplacementStatusTests.cs | Tests CLI/MCP status output across both connection routes. |
Review effort: Balanced
Code coverage overviewLanguages: C# C# / code-coverage/dotnet
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. |
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.
Backport of #318 to
rel/1.2, including the review follow-up.isReplacePendingin structured CLI and MCP throughput results for database and container operations on data-plane and ARM connections.null; dry runs report the observed state only undercurrent.Keep this in draft until #318 merges into
main.