BReg: a read route for the hook delivery state of a record
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- openapi, rust
- Ambito
- api, backend-api-design
Direzione di ricerca
Read the existing hook delivery and access profile behavior, then inspect the generated API contract and the profile model in explain; the issue does not name specific source or test files. Add a read route scoped to records and hook names the caller may access, returning only hook name, time, and delivery state. Done when the route is in the generated contract, profile behavior is covered in explain, and tests verify access refusal and dead-letter output excludes payload values and destinations.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
After a record changes, BReg delivers hooks on a best-effort basis; a failed delivery ends as a dead letter. Only an operator sees it, through bregctl hook list. A service that sends a payment instruction after a change cannot tell the people working the record that the instruction never left, because there is no public route and no application surface for it.
Smallest change
- A read route that returns, for one record the caller may read, the delivery state of the hooks it caused: pending, delivered, or dead-lettered, with the hook name and time, and nothing from the payload.
- Scoped by the caller's access profile: a profile sees the state only for records and hook names it is granted.
- A follow-up in App Kit can show a banner from it; that is a separate change in the kit repository.
Acceptance
- A profile granted the record can read its hook delivery state, and a profile not granted it is refused with the usual problem.
- A test shows a dead letter surfacing as dead-lettered with no payload value and no destination in the answer.
- The route appears in the generated API contract and is covered by the profile model in
explain.
Out of scope
- Replay or discard from the route (operators keep
bregctl hook). - Delivery state for other products' outboxes.
- The App Kit banner.
Related
- #2129, #2204
- Lingua principale
- Rust
- Stelle
- 2
- Fork
- 0
- Merge medio
- 9h 48m
- PR unite (30g)
- 151
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:breg enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
registrystack/registry-stack#2765 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
registrystack/registry-stack#2761 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
registrystack/registry-stack#2743 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
registrystack/registry-stack#2706 ·
I maintainer di solito rispondono entro 1 giorno
-
macOS contributor gates: Messaging config tests fail under the symlinked macOS temporary directoryAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
registrystack/registry-stack#2704 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di registrystack/registry-stack
Issue simili
-
[Bug] 建议把黑白主题设置同步到启动页面Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
AstrBotDevs/AstrBot-desktop#197 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
stackabletech/airflow-operator#898 ·
I maintainer di solito rispondono entro 1 giorno
-
2 advisory ignore entries no longer match anything (`bytes`, `time` already patched in `Cargo.lock`)Forse già presa @zyl71 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100