3 Commits
Author SHA1 Message Date
sharangandClaude Opus 5.5 cc12c6c810 feat(purge): erase the tenant's Prüfwerk data before deleting it (#154)
ci / shared (push) Successful in 12s
ci / test (push) Successful in 7m36s
ci / image (push) Successful in 39s
Purging a tenant now first erases its Prüfwerk data through Prüfwerk's platform API (service token, confirm = tenant id). A failure answers 502 pruefwerk_error and removes nothing; without Prüfwerk in the catalog the step is skipped. The tenant.purged audit records the outcome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:23:46 +00:00
Sharang ParnerkarandClaude Opus 5.5 34921bd44e fix(intake): security reports outlive their workspace
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 6m5s
ci / image (pull_request) Skipped
Purging an archived workspace deleted its intake reports with it: every
intake table cascaded from tenants. Benjamin's decision Nr. 17 (docgen#6
17878, V-g): no automatic deletion of the reports when a workspace is
deleted.

The purge now refuses first, before any file or account is removed:
409 intake_retained while the workspace has reports. Migration 0030 makes
the database refuse as well (intake_reports → tenants ON DELETE RESTRICT),
and DeleteTenant maps that to ErrConflict. CountIntakeReports on both
stores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-12 14:25:53 +01:00
sharangandClaude Opus 5.5 e8dcd1d259 feat(admin): repair a tenant's sign-in, delete an archived tenant (#42)
ci / shared (push) Successful in 15s
ci / test (push) Successful in 23m50s
ci / image (push) Successful in 45s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-09-26 11:00:14 +00:00