Auto-delete expired events via daily scheduled job #26

Merged
nitrix merged 1 commits from 013-auto-delete-expired into master 2026-03-09 22:01:29 +01:00
Owner

Summary

  • Adds a @Scheduled cleanup job that runs daily at 03:00 and deletes all events whose expiry_date < CURRENT_DATE
  • Uses a native SQL DELETE query — RSVPs are cascade-deleted via the existing FK constraint (ON DELETE CASCADE)
  • No new migrations, no API changes, no frontend changes
  • Excludes SpotBugs EI_EXPOSE_REP2 false positive for Spring constructor injection

Test plan

  • Integration test: expired events are deleted, non-expired and today-expiring events survive
  • All 74 backend tests pass
  • mvn verify green (checkstyle + SpotBugs + tests)

🤖 Generated with Claude Code

## Summary - Adds a `@Scheduled` cleanup job that runs daily at 03:00 and deletes all events whose `expiry_date < CURRENT_DATE` - Uses a native SQL DELETE query — RSVPs are cascade-deleted via the existing FK constraint (`ON DELETE CASCADE`) - No new migrations, no API changes, no frontend changes - Excludes SpotBugs `EI_EXPOSE_REP2` false positive for Spring constructor injection ## Test plan - [x] Integration test: expired events are deleted, non-expired and today-expiring events survive - [x] All 74 backend tests pass - [x] `mvn verify` green (checkstyle + SpotBugs + tests) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
nitrix added 1 commit 2026-03-09 21:58:53 +01:00
Auto-delete expired events via daily scheduled cleanup job
All checks were successful
CI / backend-test (push) Successful in 58s
CI / frontend-test (push) Successful in 23s
CI / frontend-e2e (push) Successful in 1m10s
CI / build-and-publish (push) Has been skipped
4bfaee685c
Adds a Spring @Scheduled job (daily at 03:00) that deletes all events
whose expiry_date is before CURRENT_DATE using a native SQL DELETE.
RSVPs are cascade-deleted via the existing FK constraint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nitrix merged commit a1855ff8d6 into master 2026-03-09 22:01:29 +01:00
nitrix deleted branch 013-auto-delete-expired 2026-03-09 22:01:30 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nitrix/fete#26