feat(deletion): Add soft-deletion with recovery and audit trail - #212
Open
DAcodedBEAT wants to merge 1 commit into
Open
feat(deletion): Add soft-deletion with recovery and audit trail#212DAcodedBEAT wants to merge 1 commit into
DAcodedBEAT wants to merge 1 commit into
Conversation
DAcodedBEAT
force-pushed
the
delayed-deletion
branch
from
December 24, 2025 18:27
b06e8f0 to
67dae31
Compare
mikeodr
requested changes
Jan 14, 2026
mikeodr
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the PR and the idea.
There's a lot to unpack here:
- Unused code
- Unrelated changes
- Repetitive test code
This PR isn't ready in its current state, please clean it up and simplify.
- Configurable soft-delete with retention periods - Undelete recovery for accidentally deleted links - DeletedBy audit trail tracking who deleted links - Automatic schema migrations for old databases - /.deleted endpoint for link recovery - Version history: edits preserve prior versions instead of overwriting The soft-deletion pattern provides a foundation for scaling golink across multiple instances with active/passive or active/active deployments. Also fixes several correctness issues found in review (migration gaps, same-second edit collisions, duplicate active links after undelete, deleted names being claimable during their recovery window, and incorrect/slow version history lookups), and cleans up and speeds up the test suite. Signed-off-by: Arun Philip <dacodedbeat@gmail.com>
DAcodedBEAT
force-pushed
the
delayed-deletion
branch
from
August 11, 2026 16:08
67dae31 to
310a110
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users can safely delete links with a configurable recovery window, and a DeletedBy audit trail tracks who deleted each link. Soft-deletion can also provides a foundation for scaling golink across multiple instances (read: running golink as a tailscale service).
Changes
/.deletedendpoint-deleted-retention,-cleanup-interval