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

Don't Send Emails to Users After 21 Days #4

Closed
nplutt opened this issue Apr 23, 2021 · 0 comments · Fixed by #6
Closed

Don't Send Emails to Users After 21 Days #4

nplutt opened this issue Apr 23, 2021 · 0 comments · Fixed by #6
Labels
help wanted Extra attention is needed

Comments

@nplutt
Copy link
Owner

nplutt commented Apr 23, 2021

If a user hasn't updated their profile in the past 21 days, they should no longer be notified of new vaccine appointments. The reason being, that after 21 days one of the two things has probably happened:

  1. The user has been able to book an appointment and the vaccine appointment emails are unwanted and become annoying
  2. The emails were never reaching the user or they were being sent to their junk mail

The easiest way to do this would be to filter users out on the backend in the find_users_to_notify_for_location method before sending the emails to them.

This could also be done by setting a TTL on the user's updated_at attribute in DynamoDB but since the Terraform isn't in this repo yet, we'll hold off on that for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant