Backend: Status auf confirmed ohne formFinal blockieren #159
Labels
No labels
component/backend
component/docs
component/e2e
component/frontend
component/infra
component/keycloak
prio/high
prio/low
prio/medium
type/bug
type/chore
type/feature
type/refactor
type/test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
WompSchmiede/FamilienFeierPlaner#159
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
PUT /api/v1/events/{event_id}/guests/{person_id}/statuserlaubt aktuell jedesstatus-Value ohne Prüfung. Ein Aufruf mit{ "status": "confirmed" }setzt den Gast auf "zugesagt", auch wenn keinformFinalexistiert.Das führt zu inkonsistenten Zuständen: Der Gast ist "zugesagt", hat aber nie ein Formular ausgefüllt.
Änderungen
Datei:
backend/src/routes/guests.ts—updateStatus-Handler (ca. Zeile 249)Aktuell:
Neu — vor dem
update-Aufruf eine Prüfung einfügen:Betroffene Flows die weiterhin funktionieren:
confirmWithForm(form-final + status)overrideForm(form-override)submitFinalSelf(form-final + status)PUT status=confirmedohne FormBetroffene Dateien
backend/src/routes/guests.tsformFinalbeiconfirmedbackend/src/__tests__/guests.test.tsconfirmedohneformFinalTests
Neuer Test in
guests.test.ts:Commit-Konvention
Implemented in
925479a