Skip to content

πŸ”’ GDPR uploads data provider β€” NEW uploads.init.js + avatar-orphan testΒ #3886

@PierreBrisorgueil

Description

@PierreBrisorgueil

Self-register the uploads module's GDPR provider β€” and prove the avatar binary is caught.

Scope

  • Create modules/uploads/uploads.init.js (none exists today) registering registerDataProvider({ key:'uploads', axis:'user', retention:'delete', export, erase }).
  • Reuse UploadsDataService.list / remove (metadata.user-scoped).
  • The avatar binary is caught because gridfs.js:21 tags metadata.user on the avatar upload.

DoD

  • Init unit test (registers, delegates, deactivated β†’ absent, no crash).
  • Avatar-orphan integration test: create user β†’ upload avatar β†’ erase β†’ assert uploads.files + uploads.chunks count == 0 for that user.
  • /verify green.

Depends on: GDPR registry leaf.

Created via /dev:issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions