COVID-19-electronic-health-system / Coronalert

CoronaTracker notification service
6 stars 2 forks source link

Limit duplicate notifications sent to phone numbers #38

Open acthelemann opened 4 years ago

acthelemann commented 4 years ago

We want to limit the number of duplicate notifications sent to phone numbers. Instead of randomly picking from the notification list, which could result in the same notification sending consecutively, send the notifications one after the other.

This will require a new field in the MongoDB collection, something like lastNotificationIndex. When the next notification is sent, increment lastNotificationIndex and send the notification at that index.

There could be other ways to go about this, I'm open to suggestions.

pavel-ilin commented 4 years ago

Can work on this one

pavel-ilin commented 4 years ago

When I trying to connect to the mongoDB it tells me that my IP is not allowed to connect. Or may be my account don't have enough rights.

acthelemann commented 4 years ago

Yeah, we need to add your IP to the whitelist. Give me your email I can add you to MongoDB