VirusTrack / COVIDvu

Volunteers building and sharing current, accurate, near real-time COVID-19 tracking and prediction tools.
https://virustrack.live
BSD 3-Clause "New" or "Revised" License
15 stars 3 forks source link

How does the frontend handle missing data for the current day #338

Closed kinabalu closed 4 years ago

kinabalu commented 4 years ago

This has implications throughout the entire site, how do we handle current day data being missing in the data files? Do we show '-' and turn off certain features? Do we check for yesterday and put a notice up automatically?

kinabalu commented 4 years ago

@pr3d4t0r @jaryaman would love comments on how we handle this, what we feel is an appropriate thing to show to end-user should this occur again

jaryaman commented 4 years ago

@kinabalu I reckon displaying yesterday and displaying a notice is the way to go. Yesterday's data always comes from John Hopkins, whereas today is an amalgam of patches I think. So yesterday has fewer moving parts and ought to be relatively stable (until John Hopkins breaks everything by changing how they supply data).

pr3d4t0r commented 4 years ago

@kinabalu - I concur - if we miss a day => make todayCases = yesterdayCases. Some country reports show a flat increase on occasion (look at the plot for Italy). There are days when nothing was reported, it shows flat on two consecutive days, then a jump.