You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(api): soft-delete build layers in DB on user delete (#3121)
This switches user delete to soft-delete the build layers in DB:
- New `deleted` build status, mapped to a dedicated `deleted`
status_group (migration updates `compute_status_group`).
- New `MarkExclusiveTemplateBuildsDeleted` query that marks builds
assigned only to this template as `deleted`, reusing the exclusivity
predicate so builds shared with other templates are untouched.
- Template delete and snapshot/paused delete now run the mark + delete
in one transaction. The `env_builds` rows (and their team/env
attribution) are preserved so a future GC can reclaim storage. Mirrors
how `failed` keeps attribution.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
0 commit comments