-
Notifications
You must be signed in to change notification settings - Fork 0
alerts digest generation #330
Description
NOTE: we do not have a place to land a user in the app if they were to click a link in an sms. however, much of the alert digest generation back-end can be completed today.
as an allclear pwa user, i want to be notified via sms whenever a new test location comes online in my area.
the following is only meant to serve as a representation of what a solution could look like -- the outcome is all that matters:
set alerts baseline: for each user, store the set of matches and relaxed matches for which they are a fit as of an exact timestamp 't'
perform diff and send as alerts: for each user, store the set of matches and relaxed matches for which they are a fit as of an exact timestamp 't' + 24 hours and where the matches are not in the baseline set
update alerts baseline: for each user, store the set of matches and relaxed matches for which they are a fit as of an exact timestamp 't' + 24 hours
acceptance criteria:
-
alerts include/commingle matches and relaxed matches
- a future release could require just strict matches, but this is not in scope for now
-
a digest of alerts are sent, at most, once a day
-
the pwa will use SMS (while the native app will use push notifications)
-
regardless of new test locations that come online in a 24 hours period, send a single message to each user
-
each alert contains the message: "New COVID-19 test locations are available in your area. Click here to view them on AllClear: [insert link]"
-
Send messages at 1pm daily per timezone
-
The link in the message should bring the user to the maps/test center screen
-
The FE will need to be triggered to quickly fetch test locations added in the last 24 - 48 hours alongside preexisting locations
- (what is the easiest/most performant way to provide consistent results back to the user? The previous 24 hour window from 1to1pm + any new results in the current 24 hr window as of 1pm?) -
users without active sessions must be able to bypass login
-
Links should expire in 24 hours, before any new alert could be issued
-
Is it easy to permit a user to unsubscribe by responding to the message with "unsubscribe"?
Aha! Link: https://ilico.aha.io/features/ALLCLEAR-248