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

Only cancel future reminders #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tompretty
Copy link
Contributor

@tompretty tompretty commented Nov 17, 2021

What does this change?

The current logic cancels all reminders that haven't already been cancelled. This PR extends that to also not cancel any reminders that have already been sent. As we don't have the exact day the reminder is sent, just the reminder period (year & month), it is possible we could cancel a reminder that has actually been sent e.g

  • The reminder period is 2021-11-01
  • The reminder ends up getting sent out on 2021-11-15
  • On 2021-11-20 we cancel all the reminders for a given user
  • As 2021-11-20 is still in the 2021-11-01 reminder period we will cancel the sent reminder

This doesn't have any user facing implications, it just affects how accurate our db is as a log of what happened.

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