Repository navigation
feat(projects): archive projects instead of losing them; delete only unused ones (TL-907) - #107
Merged
Merged
Conversation
… (TL-907) Accidentally created projects had no way out but a hard-delete API that also wiped used projects. Delete is now limited to never-used projects (409 otherwise), and used ones are archived instead, keeping history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A project created by accident couldn't be removed from the app. The only way out was
DELETE /api/projects/{id}, which also wiped used projects, along with their boards, tickets and history.Now:
project_used.POST /api/projects/{id}/archive) takes a used project off the lists and keeps its history. Its boards' open sprints close and their planned sprints are dropped, the same as when a board is archived.POST /api/projects/{id}/restore) puts it back.All three are org admin only.
GET /api/projectsleaves archived projects out, and?archived=true(admins) lists only them. Projects now includearchived_atanddeletable. Audit recordsproject.archivedandproject.restored(migration000119). Archived projects still count towards the plan limit.The web page is in TrackLines/frontend (TL-908). Ships before the frontend.
Tests:
go vet,go buildandgo test ./...all pass.Created with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.