Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/upcoming reminder #16

Merged
merged 4 commits into from
Feb 14, 2025
Merged

Feat/upcoming reminder #16

merged 4 commits into from
Feb 14, 2025

Conversation

yamitzky
Copy link
Owner

No description provided.

- Split reminder processing into two distinct functions:
  - getRemindTargets: returns a list of when, who, and what notifications to send
  - processReminders: determines which notifications to send based on current time

- Fix event fetching period:
  - Extend to 48 hours to ensure catching all day-before reminders
  - Fix issue where late events could miss their day-before reminders

- Add tests:
  - Add tests for 48-hour event range
  - Add tests for day-before reminders near period boundaries
  - Add tests for error handling
@yamitzky yamitzky merged commit 8b7882e into main Feb 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant