fix(schemas): behaviour of GET /schemas with deleted flag, sr migration script #1377
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.59) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 190 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.314
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #1377"
general
weight: 0.35
muralibasani
<!-- All contributors please complete these sections, including maintainers -->
About this change - What it does
GET /schemasapplied thedeletedquery parameter the wrong way round:| Request | Expected | Actual |
| --- | --- | --- |
|
GET /schemas| live versions only | live and soft-deleted versions ||
GET /schemas?deleted=true| live and soft-deleted versions | live versions only |InMemoryDatabase.find_schemasdropped soft-deleted versions wheninclude_deletedwasTrueand kept them when it wasFalse. The flag passes straight through from the router, so the inversion reached the API. It has been there since the endpoint was added (77d88e14); a unit test pinned it and noted the semantics were inverted.Confluent's API reference describes
deleted=trueas listing "both current and soft-deleted" schemas, with only current ones listed by default. The per-subject endpoints (/subjects?deleted=true,/subjects/{subject}/versions?deleted=true) already behave that way and are unaffected.<!-- Provide a small sentence that summarizes the change. -->
<!-- Provide the issue number below if it exists. -->
References: #xxxxx
Why this way
<!-- Provide a small explanation on why this is the approach you took for solving this problem. -->