The Operation model currently has a status column, which we still want, but it will only be used to indicate whether an operation has completed registration or not.
We will need to add a new column on the OperationDesignatedOperationTimeline model to indicate the status of the operation in relation to its connection to the operator.
For Operation.Status, the valid options will be:
Draft
Registered
Not Started
For OperationDesignatedOperatorTimeline.Status, the valid options will be:
Active
Transferred
Closed
Temporarily Shutdown
Acceptance Criteria
[ ] write django migration that adds status column to OperationDesignatedOperatorTimeline model, with TextChoices listed above
[ ] ensure the TextChoices for status column on Operation model are only those listed above
[ ] for external users viewing their list of operations in the data grid, the data being queried should come from OperationDesignatedOperatorTimeline so that the correct status can be fetched
[ ] update mock data fixtures with correct "status" values
What should we do with the existing statuses for the Operation data model? Some of them, such as CHANGES_REQUESTED, DECLINED, and APPROVED, are from Reg1.
Describe the task
The
Operation
model currently has astatus
column, which we still want, but it will only be used to indicate whether an operation has completed registration or not.We will need to add a new column on the
OperationDesignatedOperationTimeline
model to indicate the status of the operation in relation to its connection to the operator.For
Operation.Status
, the valid options will be:For
OperationDesignatedOperatorTimeline.Status
, the valid options will be:Acceptance Criteria
status
column toOperationDesignatedOperatorTimeline
model, with TextChoices listed abovestatus
column onOperation
model are only those listed aboveAdditional context