Closed timyates closed 1 month ago
Prior to updating a ReviewPeriod, we now validate that the ReviewStatus follows the following rules:
PLANNING
AWAITING_APROVAL
AWAITING_APPROVAL
OPEN
CLOSED
UNKNOWN
All other state changes will cause a BAD_REQUEST response with an appropriate message
BAD_REQUEST
Prior to updating a ReviewPeriod, we now validate that the ReviewStatus follows the following rules:
PLANNING
can progress toAWAITING_APROVAL
AWAITING_APPROVAL
can progress toOPEN
OPEN
can progress toCLOSED
CLOSED
can progress toOPEN
(for when a case is re-opened)UNKNOWN
can progress toPLANNING
(UNKNOWN
was used for period where isOpen was NULL prior to migration)All other state changes will cause a
BAD_REQUEST
response with an appropriate message