Add a way to recreate an archived environment from the existing lockfile. The ability to create environments from lockfiles is already implemented. To enable recreation, we need to allow submitting a lockfile specification to replace an existing build.
For the purposes of pagination and for keeping track of genuinely separate builds it makes sense for separate builds to have different primary keys in the database, but recreated builds should retain their relationships with environments and specifications.
Blocked until we have archived builds to recreate (#947).
Value and/or benefit
See #889 - this should save a lot of space in deployments.
Feature description
Add a way to recreate an archived environment from the existing lockfile. The ability to create environments from lockfiles is already implemented. To enable recreation, we need to allow submitting a lockfile specification to replace an existing build.
For the purposes of pagination and for keeping track of genuinely separate builds it makes sense for separate builds to have different primary keys in the database, but recreated builds should retain their relationships with environments and specifications.
Blocked until we have archived builds to recreate (#947).
Value and/or benefit
See #889 - this should save a lot of space in deployments.
Anything else?
No response