Per-space shared trash, merged into the one "Deleted files" view #95
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?
Nikola's spec (2026-08-03): deleting a file inside a shared space must NOT land it in the deleting user's personal trash — it belongs to a trash inherently linked to the space, visible to everyone who can read and/or write that space. And deliberately no second trash surface in the UI: the existing "Deleted files" view shows both — your personal deletions, plus deletions from every space you have access to.
Design:
/spaces/<name>/move to/spaces/<name>/.trash/(with the same JSON sidecar pattern as personal trash). Everything then composes for free:/spaces/<name>/.trash/<id>, everything else →/.trash/<user>/<id>as today. Restore recreates within the space; purge honours retention/holds as today. Auto-purge (#77) sweeps space trashes with the same guard rails.GET /api/v1/trashreturns the union of the caller's personal trash and the trash of each space their groups grant — each entry tagged with its origin (personal/ space name). The web UI's existing Deleted files view renders the origin as a small chip; restore/purge buttons work per entry (purge inside a space limited to write members? — decide: v1 proposal = write members may restore and purge, read-only members only see)./.trashwithin space listings in the browser the same way the root.trashis hidden (#75).Open question for Nikola: may read-only members restore space files, or only view the trash? Proposal: restore/purge require write access; read-only sees entries only.
Works independently of #94 (self-service spaces) — applies to IdP-created spaces already today.
Decision (Nikola, 2026-08-03): read-only members see space trash entries but cannot restore or purge — "a read-only auditor does not resurrect files into the live tree; if needed they reach out to the authors in person." Restore/purge require write membership. Greenlit; building now.