Skip to content

Add copy states to DesignCollection

Luke Duncalfe requested to merge 13426-design-collection-copy-state into master

What does this MR do?

This MR adds a new copy_state state machine to DesignCollection.

The copying of designs from one issue to another happens async (in a downstream MR !41714 (merged)), so the state of the copy is tracked through the new state.

The state is persisted in redis as the DesignCollection model is a PORO and not persisted in PostgreSQL.

This will allow the frontend (in a future MR) to display a "your designs are on their way" message until the copy has completed, and handle the error state #13426[error_moving_designs.png] by informing the user that an error happened, allowing them to upload new ones.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Luke Duncalfe

Merge request reports