Repository navigation
Expose pending throughput replacement in structured output - #318
Merged
Mike Krüger (mkrueger) merged 3 commits intoDec 1, 2026
Merged
Mike Krüger (mkrueger) merged 3 commits into
Mike Krüger (mkrueger) merged 3 commits into
Conversation
Mike Krüger (mkrueger)
requested review from
a team
and
a balanced review from Copilot
November 30, 2026 12:52
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the structured throughput replacement-status output changes.
No open issues 🎉
What changed in this PR
Addresses #314 by exposing service-reported throughput replacement status in structured CLI and MCP output across data-plane and Azure Resource Manager connections.
Changes:
- Adds nullable
isReplacePendingto throughput read and write results, preserving missing or unrecognized values asnull. - Includes the observed status only under
currentin dry-run output, without implying write completion. - Adds regression coverage and documents the status semantics for CLI and MCP users.
| File | Description |
|---|---|
| docs/mcp.md | Documents replacement status in MCP throughput results. |
| docs/commands.md | Explains status values, completion limits, and dry-run behavior. |
| 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 pending-status header. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Core/ArmCosmosResourceOperations.cs | Projects ARM replacement status into the shared view. |
| CosmosDBShell/Azure.Data.Cosmos.Shell.Commands/ThroughputCommand.cs | Includes status in structured results and dry-run current state. |
| CosmosDBShell.Tests/CommandTests/ThroughputReplacementStatusTests.cs | Covers status projection and CLI/MCP output across both backends. |
Review effort: Balanced
Code coverage overviewLanguages: C# C# / code-coverage/dotnet
View coverage of the 8 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Vsevolod Kukol (sevoku)
approved these changes
Nov 30, 2026
…throughput-replacement-status
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Vsevolod Kukol (sevoku)
approved these changes
Dec 1, 2026
Mike Krüger (mkrueger)
deleted the
dev/mkrueger/fix/314-throughput-replacement-status
branch
December 1, 2026 12:26
Mike Krüger (mkrueger)
added a commit
that referenced
this pull request
Dec 1, 2026
* Expose pending throughput replacement in structured output Refs #314 (cherry picked from commit 74b771d) * Avoid constant-condition findings in throughput status tests (#318) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> (cherry picked from commit 84d1fb9) --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Fixes #314.
Summary
isReplacePendingin structured CLI and MCP throughput results for databases and containers on both the data-plane and Azure Resource Manager routes.null. Write results report the state from the write response without inferring completion, and dry runs report it only undercurrent.