soft deletion for repos #14
Labels
No labels
complexity
1-high
complexity
2-medium
complexity
3-low
component/client
component/server
priority
1-high
priority
2-medium
priority
3-low
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
PatrikBures/gamesync#14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
instead of directly deleting the row. populate the column deleted_at with the current datetime and update the repo_name with deleted_OLD_NAME. then the garbage collector deletes all repos where deleted_at > 30 days (configurable by env var).
this would require the get repos endpoint to be able to show repos which have deleted at as they would be hidden by default. and also an endpoint + cmd for restoring them.