PAR-233
0
No way to delete a team — add team deletion (guarded against deleting issues)
DoneUnassignedTesksFeature
The Teams screen can create teams (and toggle public) but there's no way to delete one. issue.team_id is ON DELETE CASCADE, so a naive delete would silently destroy every issue in the team — needs a guard.
Backend (tesks):
WorkspaceAdminService.deleteTeam(id)— requireSETTINGS_MANAGE; refuse if the team has any issues (countissuebyteam_id/tenant), with a clear message ("move or delete its N issues first"); elsedelete from team where id/tenant.DELETE /api/w/{slug}/teams/{id}inWorkspaceApiController.
Frontend (tesks-ui):
lib/api.tsdeleteTeam(slug, id);deleteTeamActioninlib/actions/workspace.ts.- Teams page: a Delete control on empty teams (issueCount === 0) for users who can manage settings, with confirmation. Non-empty teams show no delete (move issues out first; the count is live so it appears once empty).
Resources
- commiteedbdbc Add team deletion, guarded against destroying issues (PAR-233)ParadauxIO/tesks
Comments
No comments yet.
Activity
- paradaux changed status to Status → Done
- tesks changed status to Status → Pending Release
- ParadauxIO linked a commit — Commit eedbdbc — Add team deletion, guarded against destroying issues (PAR-233)
- tesks created the issue