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

Stats Fix - Partial Last Day #1887

Conversation

brunobowden
Copy link
Collaborator

@brunobowden brunobowden commented Dec 27, 2020

WHO dashboard stats are updated throughout the day. Some countries
may report 0 for daily cases and deaths. The ArcGIS data response can't
distinguish between "zero cases" and "no data reported yet".
So this heuristic deals with that:

  • Global Stats: sum all stats, not just partial stats on last day
  • Country Stats: drop last day when likely "no data reported yet"

Fixes #1724
Fixes #1876

How did you test the change?

  • curl to a dev App Engine server

Checklist:

@brunobowden brunobowden added source:who Request from WHO source:nigeria-🇳🇬 Requests from Nigeria CDC labels Dec 27, 2020
@brunobowden brunobowden added this to the v1.0 - Nigeria milestone Dec 27, 2020
@brunobowden brunobowden changed the title Partial Last Day Stats Fix Stats Fix - Partial Last Day Dec 27, 2020
WHO dashboard stats are updated throughout the day. Some countries
may report 0 for daily cases and deaths. The ArcGIS data response can't
distinguish between "zero cases" and "no data reported yet".
So this heuristic deals with that:
- Global Stats: sum all stats, not just partial stats on last day
- Country Stats: drop last day when likely "no data reported yet"

Fixes WorldHealthOrganization#1724
Fixes WorldHealthOrganization#1876
Copy link
Contributor

@matthewblain matthewblain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should work. Some clarity suggestions.

- Specifically test partial data for global stats correction
- More explanation around test case data
@brunobowden brunobowden merged commit 241589b into WorldHealthOrganization:master Dec 27, 2020
@brunobowden brunobowden deleted the global-stats-partial-day-fix branch December 27, 2020 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source:nigeria-🇳🇬 Requests from Nigeria CDC source:who Request from WHO
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Case Stats reports low numbers for global total "0 Cases" in WHO COVID-19 dashboard stats
2 participants