scheduling: let a person book, move and cancel their own appointments without a task grant
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- openapi, postgresql, rust
- Bereich
- backend-api-design, databases, security
Rechercherichtung
Start with crates/registry-scheduling/src/store.rs, especially the is_managed_by behavior cited in the issue, and read the linked task grants documentation to understand the current authority model. Then trace the scheduling paths and PostgreSQL suite for booking, rescheduling, cancellation, caps, and managed appointments. Done means both authority paths meet the acceptance criteria, existing suites pass, scoped reads work, and the security page, OpenAPI document, clients, and CLI catalogue are updated.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Use case
Public-facing services need people to book for themselves with their own sign-in: registration appointments, exam sittings, clinics, information sessions, and activities with limited places. Today a person cannot book directly. Every commitment takes its authority from a task grant alone, and a trusted producer such as Casework mints those grants.
Current evidence
- Task grants: "Every commitment takes its authority from the grant alone."
is_managed_by: a retained source manager replaces the creating actor. When an appointment has a manager, its owner can no longer act on it.
Proposed behaviour
- A self-service commitment profile. A person's own verified token may hold, book, reschedule and cancel for themselves, within the exact service, location and action permissions the profile declares. No task grant is involved, and the task-grant path is unchanged.
- The party is always the token subject. This path never books for someone else.
- A cap per person: at most one active booking per person per window, and a configurable ceiling on active holds and bookings per person per offering. Hold lifetimes stay bounded, so one person cannot park capacity.
- An appointment may also retain an institutional manager. The owner and that manager may both act on it, and nobody else may.
- Eligibility stays with the service's source of record. Scheduling does not decide it.
Acceptance criteria
- A person's token books, reschedules and cancels its own appointment under the profile.
- The profile refuses, with distinct problem codes, a request for another party, a request outside the declared permissions, and a request above the cap.
- Concurrent requests from one person cannot exceed the cap (PostgreSQL suite).
- Task-grant bookings behave as before, and the existing suites pass unchanged.
- On a managed self-service appointment, the owner and the retained manager can both cancel, and a third principal cannot.
- Self-service appointments are reachable through scoped operational reads (#2337), so the notification journey proven in #2339 can find whom to notify.
- The Scheduling security page records the second authority path, its abuse controls and its residuals. The OpenAPI document, clients and CLI catalogue are regenerated.
Delivery
Implemented in one PR with the displacement issue that follows this one, because once people own their bookings an institution needs a way to clear them when supply goes.
- Vorherrschende Sprache
- Rust
- Sterne
- 2
- Forks
- 0
- Ø Merge
- 9 Std. 48 Min.
- Gemergte PRs (30 T.)
- 151
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus registrystack/registry-stack
-
area:breg enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
registrystack/registry-stack#2765 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
registrystack/registry-stack#2761 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
registrystack/registry-stack#2743 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
registrystack/registry-stack#2706 ·
Maintainer antworten meist innerhalb von 1 Tag
-
macOS contributor gates: Messaging config tests fail under the symlinked macOS temporary directoryOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
registrystack/registry-stack#2704 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in registrystack/registry-stack
Ähnliche Issues
-
[Bug] 建议把黑白主题设置同步到启动页面Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
AstrBotDevs/AstrBot-desktop#197 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
stackabletech/airflow-operator#898 ·
Maintainer antworten meist innerhalb von 1 Tag
-
2 advisory ignore entries no longer match anything (`bytes`, `time` already patched in `Cargo.lock`)Evtl. vergeben @zyl71 hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100