Orphan space folders: the row menu offers only Details — no path to deactivate and clean them up in-app #717
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Cordy/Cairn#717
Loading…
Add table
Add a link
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?
Follow-up to #715 (v0.6.264, screenshots from Nikola's cleanup session). Orphan rows ("Folder in storage — no managing group found") show only Details in the three-dot menu, while app-owned rows show Details + Deactivate. There is no in-app path to clean an orphan up.
Why the menu is empty: an orphan has no spacestore record, so the existing lifecycle endpoints (deactivate → delete) would 404 on it — the UI hides what the backend would refuse.
Fix: the orphan menu gains "Take over and deactivate": it claims the folder through the existing space-create API (record owned by the acting admin; the directory already exists) and immediately deactivates it. From there the row is a normal app-owned space — Reactivate or the type-the-name Delete (contents to Deleted files, tombstone) apply as usual. A tombstoned name (recently deleted space) surfaces the existing "reserved" refusal.
IdP-verified managed rows deliberately stay Details-only — they are directory-managed.