Show which versions retention will delete (#149) #152
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
qwc-open/asiakirjat!152
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/version-expiry-hint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #149.
The project detail page listed versions with no sign that some of them are on a clock. The keep pattern and retention window were only visible in the admin edit form, so a reader had no way to tell a permanent release from a branch build about to be swept up.
What it looks like
Expires in N daysbadge, counted from its upload date, with the exact due date in the tooltip.Expires soon— retention runs hourly, so it goes on the next pass rather than showing a negative count.^v?\d+\.\d+\.\d+$are deleted 30 days after upload."Decisions worth reviewing
retention.nonsemver_days = 0), where nothing is ever deleted whatever the pattern says — a badge there would be a lie. If you'd rather see "would expire (retention disabled)", say so and it's a two-line change.versionExpiriesmirrorsenforceRetentionPolicyexactly — same keep pattern, same permanent-pin exemption (#141), sameCreatedAtwindow. A badge that disagreed with the cleanup pass would be worse than no badge; the tests pin both halves of the pin rule.versionKeepergained a small extraction (effectiveKeepPattern) so the notice and the predicate cannot drift apart.Tests
internal/handler/version_expiry_test.go— written first, watched fail:Full Go suite green; docs updated in
how-to/version-retention.mdper the docs policy.Assisted-by: Claude Opus 5