fix(frontend): ensure PATCH with tags follow ARM contract RPC-Patch-v1-04 #7313
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 277 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.337
Real PR Conversation Timeline
1 comments
"Review active on #7313"
general
weight: 0.35
tony-schndr
https://redhat.atlassian.net/browse/ARO-30016
What
Previously a http PATCH patched tag field using a merge patch RFC 7396. This is incorrect and the ARM contract dictates the RP should replace the entire tag body, see RPC-Patch-v1-04. The original code looks like it was intended to implement RPC-Patch-v1-04 but mistakenly used the already merge Cluster object to replace the tags. This change corrects that by taking the tags directly from the body derived from the http ctx.
Why
RPC-Patch-v1-04 contract dictates "When Tags are patched, the tags from the request replace all existing tags for the resource."
Ref https://eng.ms/docs/products/arm/api_contracts/resource-provider-contract/v10/patch-resource.html
Testing
Testing is required for feature completion and tests should be part of the pull
request along with the feature changes.
Describe the testing provided. If you did not add tests, provide a clear
justification.
Special notes for your reviewer
<!-- optional -->
PR Checklist
If E2E tests are included:
demonstrate that the test is able to detect a defect/error and fail with
proper error message and logs which communicates nature of the problem.