Co-Epi / app-backend-rust

iOS/Android shared Rust library for CoEpi
MIT License
40 stars 5 forks source link

Delete periodically alerts marked as deleted #132

Open ivnsch opened 4 years ago

ivnsch commented 4 years ago

The current solution for alerts not being restored when re-fetching in the same time interval, is to mark the rows as deleted (deleted column). We've to delete these rows periodically (> fetch interval).

Not urgent: this is not very important during early testing.

Open to discuss different solutions.

duskoo commented 4 years ago

Opinion: Exposure alerts are obsolete once the incubation period elapses (and user has no symptoms).

ivnsch commented 4 years ago

Yeah, we could implement a periodic task that deletes all the alerts older than 2-3 weeks, which would cover the "marked as deleted" entries. Maybe there are UX implications (users wondering why alerts disappeared)?