chore(work): finish 04-retention-purge-job

This commit is contained in:
2026-05-18 20:58:23 +02:00
parent 7ea38bc5b9
commit 464df9aa9b
3 changed files with 8 additions and 13 deletions

View File

@@ -3,12 +3,12 @@ id: 04-retention-purge-job
epic: compliance-manifests-pii-retention-subprocessors
title: Background retention purge job in core-shared
type: technical-story
status: todo
status: done
feature: core-shared
depends-on: [01-pii-retention-type-primitives]
blocks: []
created: 2026-05-18T17:52:09Z
updated: 2026-05-18T18:06:15.725Z
updated: 2026-05-18T18:58:23.920Z
---
## Goal
@@ -41,4 +41,4 @@ Retention without automated purge is a compliance statement with no enforcement.
## Tasks
- [ ] Add `retention-purge.job.ts` + unit tests to `packages/core-shared/src/payload/retention-purge/` — walks `custom.retention.purgeSchedule` per collection, registers scheduled jobs via `IJobQueue`, executes pseudonymize or hard-delete per `postDeletion.action`, emits optional audit entry per row, unit tests cover all branches including graceful auditLog skip — all gates pass on this commit.
- [x] Add `retention-purge.job.ts` + unit tests to `packages/core-shared/src/payload/retention-purge/` — walks `custom.retention.purgeSchedule` per collection, registers scheduled jobs via `IJobQueue`, executes pseudonymize or hard-delete per `postDeletion.action`, emits optional audit entry per row, unit tests cover all branches including graceful auditLog skip — all gates pass on this commit.