723 B
723 B
Temp Users Cleanup Note - VoIdea
Date: 2026-05-10 Status: Backlog
Overview
Mechanism for QATesterAgent to clean up temporary test accounts.
Requirements
- Create temp users with unique prefix: est_
- Track creation time
- Clean up after test completion
- Verify cleanup in logs
- No cascade delete on real users
Safety Rules
- Never delete users without est_ prefix
- Use soft delete before hard delete
- Log all cleanup operations
- Verify foreign key constraints
- Test cleanup in staging first
Implementation
- PostgreSQL trigger for auto-cleanup (optional)
- Celery task for scheduled cleanup
- Admin notification on cleanup
Created: 2026-05-10