Yannick Guern accepted merge request !26: feat: wipe Warp 10 pain data on user unregistration at Yannick Guern / Pain Recorder

Yannick Guern
2026-02-09T07:53:37Z

Summary

When a user unregisters, all their pain records (pain.level, pain.comment) are now permanently deleted from Warp 10 before the PostgreSQL account is removed.

Changes

src/warp10.rs: Added delete() method to Warp10Client

src/auth/handlers.rs: Modified unregister handler with best-effort Warp 10 delete

tests/suite/unregister.rs: Refactored test infrastructure, added 3 new integration tests

New Tests

delete_removes_warp10_data: Ingests pain.level + pain.comment, deletes via regex, verifies zero results

delete_preserves_other_tenant_data: Two tenants, delete one, other intact

unregister_succeeds_when_warp10_unreachable: Warp 10 down, unregister still succeeds

Pre-commit

59/59 tests pass, cargo fmt clean, cargo clippy clean