-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Managing phases is an important part of the admin process, to correct issues, extend, open phases that were skipped by autopilot, etc...
In anticipation of having new features in the system-admin app for phase management, I'd like some new endpoints added to the challenge API:
GET /v6/challenges/{challengeId}/phases
- Returns all phase information for that challenge
GET /v6/challenges/{challengeId}/phases/{id}, whereidis theidvalue of the phase
- Returns the information for a single phase associated with the challenge
PATCH /v6/challenges/{challengeId}/phases/{id}, whereidis theidvalue of the phase
- Partially update a phase. For instance, if I only want to open the phase, I could give body:
{"isOpen":true} - Any combination of phase object values should be accepted and validation should occur (end date can't be before start, duration can't be negative,
phaseIdhas to match a known phase, predecessor must exist, etc..)
DELETE /v6/challenges/{challengeId}/phases/{id}, whereidis theidvalue of the phase
- Deletes a phase and recalculates the predecessors. This will mainly be used to delete any added phases that aren't needed. For instance, if we want to rewind a challenge and remove the
Post-Mortemphase and reopen submission, which is something I had to do recently.
Metadata
Metadata
Assignees
Labels
No labels