Casework OpenAPI: describe the review result read's 202, 404 and 410 as pending, not found and expired
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 82/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- openapi, rust
- Ambito
- api, documentation
Direzione di ricerca
Leggi products/casework/scripts/generate_openapi.py ed esamina response(); confrontane l'output con il comportamento della route esistente in crates/registry-casework/src/http.rs:get_review_result e con la gestione lato client in crates/registry-review-client/src/client.rs. Aggiorna le descrizioni e la documentazione dei body vuoti per 202, 404 e 410, rigenera products/casework/generated/registry-casework.openapi.json e verifica che il controllo delle differenze passi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What Happened
In the generated Casework OpenAPI document, GET /v1/review-requests/{request_id}/result describes four responses as "Success": 200, 202, 404 and 410. The runtime answers 202 while the review is pending, 404 when the request is unknown or concealed from the caller, and 410 when the result has expired, each with an empty body. The review client treats those as Pending, ConcealedOrUnknown and Expired and refuses a body on them. A reader or a code generator working from the document treats a missing or expired result as success. The document also does not say these three responses carry no problem body, while every other refusal on the route is application/problem+json.
Expected Behavior
The document describes 202 as pending (no body), 404 as unknown or not visible to the caller (no body), and 410 as result expired (no body), and the committed OpenAPI is regenerated so the drift check holds it.
Reproduction
jq '.paths["/v1/review-requests/{request_id}/result"].get.responses | map_values(.description)' \
products/casework/generated/registry-casework.openapi.json
Where
products/casework/scripts/generate_openapi.py (response() default description); products/casework/generated/registry-casework.openapi.json; behaviour in crates/registry-casework/src/http.rs:get_review_result and crates/registry-review-client/src/client.rs.
Environment
Registry Stack 0.42.0, main as of 2026-10-18.
- Lingua principale
- Rust
- Stelle
- 2
- Fork
- 0
- Merge medio
- 10h 32m
- PR unite (30g)
- 269
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di registrystack/registry-stack
-
area:docs documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
registrystack/registry-stack#2253 ·
I maintainer di solito rispondono entro 1 giorno
-
area:coordinator bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
registrystack/registry-stack#2252 ·
I maintainer di solito rispondono entro 1 giorno
-
area:release bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
registrystack/registry-stack#2248 ·
I maintainer di solito rispondono entro 1 giorno
-
BReg docs: the WASM upgrade step points at a compatibility member that explain no longer emitsApertaarea:breg documentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
registrystack/registry-stack#2233 ·
I maintainer di solito rispondono entro 1 giorno
-
area:breg bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
registrystack/registry-stack#2231 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di registrystack/registry-stack
Issue simili
-
engine-rs P3 review-deferral wasm
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
maniator/verticopolis#1154 ·
I maintainer di solito rispondono entro 1 giorno
-
FFMPEG_BIN/FFPROBE_BIN are always overridden, so a working system ffmpeg cannot be usedForse già presa @Bilker1422 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Stremio/stremio-service#116 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
sims1253/ry#720 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno