acm-uiuc / acm-uiuc/core

Allow editing room requests in certain states

Offen
#597 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @MeghP89 Auf GitHub ansehen
enhancement
Vorherrschende Sprache
TypeScript
Sterne
5
Forks
0
Ø Merge
3 Std. 58 Min.
Gemergte PRs (30 T.)
10

Beschreibung

Currently, users cannot edit a room request after it has been submitted. We should allow both the user which created the request, or `ROOM_REQUEST_ADMIN` app role, to modify the room request only when it is the following states:

- CREATED
- MORE_INFORMATION_NEEDED
- REJECTED_BY_ACM
- REJECTED_BY_UIUC

This change requires modification to both the UI and API to allow these changes and enforce the constraints.

These are "recoverable" states (and should be added to types file so it can be used in the UI and API). We can modify the `verifyRoomRequestAccess` function to add `isEditing` parameter to check these conditions.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.