Remove a Person's Personal data #97

Open
opened 2026-11-27 16:43:33 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

hapi person remove <person> exports a deactivated Person's Personal data and then explicitly deletes it. It runs under RLS as that Person, and covers every owner-mixin table generically, so tables added later are included without changes.

Acceptance criteria

  • The export contains every Personal record the Person owns, then those records are deleted
  • Household data the Person recorded stays, with Recorded by intact
  • It refuses to run on an active Person
  • A test proves a new owner-mixin table is picked up automatically
Part of #73 (spec: #72) ## What to build `hapi person remove <person>` exports a deactivated Person's Personal data and then explicitly deletes it. It runs under RLS as that Person, and covers every owner-mixin table generically, so tables added later are included without changes. ## Acceptance criteria - [ ] The export contains every Personal record the Person owns, then those records are deleted - [ ] Household data the Person recorded stays, with Recorded by intact - [ ] It refuses to run on an active Person - [ ] A test proves a new owner-mixin table is picked up automatically
bobby added the ready-for-agent label 2026-11-27 16:43:33 -05:00
bobby added a new dependency 2026-11-27 16:43:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Depends on
Reference: bobby/hapi#97