Repository navigation
fix(dav): don't send reminders of events that ended long ago - #67242
Merged
Merged
Conversation
When the reminder job couldn't run for a while, its next run sent every reminder that had piled up, also by email to external attendees and no matter how long ago the event was. On Oracle the job has been failing since 30.0.0, so fixing its query would release all of them at once. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
DerDreschner
requested review from
ChristophWurst,
SebastianKrupinski and
tcitworld
as code owners
November 30, 2026 21:15
5 of 7 tasks
Member
Author
|
/backport to stable35 |
Member
Author
|
/backport to stable34 |
Member
Author
|
/backport to stable33 |
SebastianKrupinski
approved these changes
Nov 30, 2026
CarlSchwan
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
If the reminder job couldn't run for a while, its next run sends every reminder that has piled up, also by email to external attendees and even if the event ended years ago. On Oracle the job has been failing since 30.0.0, so this has to land before (or with) the fix for #63148.
A reminder is skipped now if both its due time and the end of its event are more than a day ago. Nothing changes for late cron runs, reminders after an event, and running or upcoming events. Series continue with the next occurrence whose reminder isn't due yet, as before.
Not changed: an upcoming occurrence of a series whose reminder became due during the outage still gets none. Until now, an email about an older occurrence was sent instead.
How to test (throwaway instance with MariaDB, as the SQL changes all events; replace the years if needed):
occ config:app:set dav sendEventRemindersMode --value occocc dav:send-event-remindersdoesn't send an email. On master it does.TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)