Skip to content

[1.2] Preserve full-text policy metadata in container info - #324

Draft
Mike Krüger (mkrueger) wants to merge 3 commits into
rel/1.2from
dev/mkrueger/backport/1.2-315
Draft

Mike Krüger (mkrueger) wants to merge 3 commits into
rel/1.2from
dev/mkrueger/backport/1.2-315

Conversation

@mkrueger

@mkrueger Mike Krüger (mkrueger) commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Backport of #315, including its review follow-up and unified full-text policy output. Structured CLI and MCP container info expose full-text default and per-path languages on both data-plane and ARM connections.

  • The complete policy is returned in a single fullTextPolicy object with defaultLanguage and fullTextPaths; no separate fullTextPolicyDetails field is emitted.
  • An absent policy is represented by fullTextPolicy: null. Configured policies without paths return an empty fullTextPaths array. Failed or unsupported metadata reads return an error.
  • Output contract change: fullTextPolicy was previously a path array. Fixed JSON consumers should now iterate fullTextPolicy.fullTextPaths.
  • The consolidation follow-up is cherry-picked from Preserve full-text policy metadata in container info #315 with identical changes, excluding release-specific surrounding context.

Validation

  • Shell and test projects build with no warnings or errors.
  • All 249 selected full-text policy readback and bulk command regression tests pass on the 1.2 branch.

Keep this in draft until #315 merges into main.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
(cherry picked from commit 9f9c18d)
(cherry picked from commit cf1d057)
@github-code-quality

github-code-quality Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: C#

C# / code-coverage/dotnet

rel/1.2 d89c483 dev/mkrueger/backpor... a44fcfa +/-
76% 76% 0%
View coverage of the 10 most impacted files.
File rel/1.2 d89c483 dev/mkrueger/backpor... a44fcfa +/-
D:\a\CosmosDBSh...atchExecutor.cs 68% 17% -51%
D:\a\CosmosDBSh...\RmDbCommand.cs 73% 28% -45%
D:\a\CosmosDBSh...ainerCommand.cs 68% 24% -44%
D:\a\CosmosDBSh...eItemCommand.cs 79% 60% -19%
D:\a\CosmosDBSh...hell\Program.cs 85% 83% -2%
D:\a\CosmosDBSh...ceOperations.cs 57% 66% +9%
D:\a\CosmosDBSh...\InfoCommand.cs 14% 28% +14%
D:\a\CosmosDBSh...ceOperations.cs 5% 19% +14%
D:\a\CosmosDBSh...SettingsView.cs 0% 73% +73%
D:\a\CosmosDBSh...ngPolicyView.cs 0% 100% +100%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated December 01, 2026 10:33 UTC

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant