#719: assign a new owner - orphan folders and departed-owner spaces #723
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat-719"
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?
Closes #719
The keep-path beside #717's Take over and deactivate, per the approved mockup and both amendments (dedicated audit verb; departed-owner scope from the #654 §2 finding).
Backend
POST /api/v1/spacesgains an optionalownerfield, honoured only for admins (403 otherwise — never silently self-assigned; naming yourself is not an override). Used by the orphan claim path.POST /api/v1/spaces/{name}/ownerreassigns an existing app-owned space, admin-only, and only when the current owner verifiably no longer resolves: living owner → 409, liveness unverifiable → 409 (fail closed), IdP outage → 503 (never reassign on a blip) — the same oracle and rules the departed-owners surface uses, wired in main.go.spacestore.SetOwnerhands the record over and absorbs the new owner's member row into the owner role; tombstoned spaces refuse.space-assign-owner(registered in the #433 verb registry); the orphan-claim path additionally keeps itsspace-create.Inventory & UI
spaceEntry.ownerDepartedmarks app-owned rows whose owner departed (verified + no-outage only); the row sublabel readsOwned by X · owner departed · app-managed.Tests:
spacestore/setowner_test.go,api/spaces_assign_test.go(owner override + 403, reassign + guards incl. outage/unverifiable/living-owner, inventory departed marks),web/test/qa719.test.js.Admin-only owner field on POST /api/v1/spaces (orphan claim); POST /api/v1/spaces/{name}/owner reassigns an existing space only when the current owner verifiably no longer resolves (outage 503, unverifiable 409, living owner 409); spacestore.SetOwner absorbs the new owner's member row; inventory marks departed owners under the same oracle; assign dialog with candidates datalist; audited as space-assign-owner (registered); i18n x10x4.