conda-incubator / conda-store

Data science environments, for collaboration. ✨
https://conda.store
BSD 3-Clause "New" or "Revised" License
149 stars 50 forks source link

[ENH] - Implement recreation of archived environments #948

Open peytondmurray opened 2 weeks ago

peytondmurray commented 2 weeks ago

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