notes-history-user-data
GDPR (Art. 20 export / Art. 17 erasure) coverage for the notes-history feature’s note-entry and note-mention entities. Mounts the export hook so a user’s authored notes are included in the user-data export bundle; the note-entry delete hook looks up note-mention for notes that structurally @-mention the forgotten user and crypto-shreds each reached note’s row-subject key (after consulting that note’s host entity’s retention strategy — blockDelete/anonymize win over erasure), keeping the append-only history intact for notes without such a mention. note-mention’s own hooks are a no-op — it is a plain FK pointer, not separately exportable content. Kept separate from notes-history so notes consumers without the user-data-rights pipeline don’t pull a hard dependency — requires user-data-rights, optionalRequires notes-history.
How it fits
Section titled “How it fits”What this feature needs to run (Requires).
flowchart TB
n_notes_history_user_data["notes-history-user-data"]
subgraph how_reqs["Requires / optional"]
n_user_data_rights["user-data-rights"]
n_notes_history["notes-history"]
end
n_user_data_rights --> n_notes_history_user_data
n_notes_history -.->|optional| n_notes_history_user_data
Dependencies
Section titled “Dependencies”- Requires:
user-data-rights - Optional:
notes-history - Activation: always on (not toggleable)
Extensions & cross-feature APIs
Section titled “Extensions & cross-feature APIs”- Registers extension:
userData→note-entry,userData→note-mention