## 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)
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 master2026-03-09 22:01:29 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
@Scheduledcleanup job that runs daily at 03:00 and deletes all events whoseexpiry_date < CURRENT_DATEON DELETE CASCADE)EI_EXPOSE_REP2false positive for Spring constructor injectionTest plan
mvn verifygreen (checkstyle + SpotBugs + tests)🤖 Generated with Claude Code