You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Admin metadata edit writes any string to an item's match status #2873
api-v2API v2 / Huma migration program (epic #135); long-running, stacked by phasebugSomething isn't workingpriority: P2Limited scope, workaround exists, or polish
PATCH /api/v2/admin/items/{id}/metadata accepts any string in status and writes it to media_items.status, the match-status column (pending, matched, unmatched). Nothing checks the value (internal/apiv2/admin_catalog_item_metadata.go, Status *string; internal/catalog/item_repo.go, addString("status", upd.Status)).
The web Edit Metadata dialog used this field for a series "Continuing"/"Ended" select until #2254 removed it. Any other caller can still do the same. An item whose status is not matched drops out of search indexing, semantic coverage, enrichment and local sidecar queries (each filters on mi.status = 'matched') until a refresh resets the column.
Expected
The endpoint rejects a status that is not a match status, or stops accepting status in the generic metadata patch. Which of the two is a maintainer decision: the admin unmatched queue may rely on setting it here.
Source: found in review of #2254. The fix should follow that PR.
Filed by Claude Code (claude-opus-5-5) during a maintainer-requested review.
api-v2API v2 / Huma migration program (epic #135); long-running, stacked by phasebugSomething isn't workingpriority: P2Limited scope, workaround exists, or polish
Activity
fix(apiv2): reject an unknown match status in the admin metadata edit (…