Phase 2 Complete - Backend Core Logic New Components: - DeletionLogRepository: CRUD for deletion audit trail - GroupCleanupService: Core cleanup logic - findGroupsForDeletion() - finds unapproved groups older than 7 days - deleteGroupCompletely() - DB + file deletion - deletePhysicalFiles() - removes images & previews - logDeletion() - creates audit log entry - getDaysUntilDeletion() - calculates remaining days - performScheduledCleanup() - main cleanup orchestrator - SchedulerService: Cron job management - Daily cleanup at 10:00 AM (Europe/Berlin) - Manual trigger for development GroupRepository Extensions: - findUnapprovedGroupsOlderThan(days) - deleteGroupCompletely(groupId) - getGroupStatistics(groupId) Dependencies: - node-cron ^3.0.3 Integration: - Scheduler auto-starts with server (server.js) - Comprehensive logging for all operations Tasks completed: ✅ 2.3, ✅ 2.4, ✅ 2.5 |
||
|---|---|---|
| .. | ||
| FEATURE_PLAN-delete-unproved-groups.md | ||
| FEATURE_PLAN-image-description.md | ||
| FEATURE_PLAN-preview-images.md | ||
| FEATURE_PLAN-reordering.md | ||
| REORDERING_IMPLEMENTATION_REPORT.md | ||
| UPGRADE_PLAN-upgrade-deps-react-node-20251028.md | ||