outbreak-info / outbreak.info

During outbreaks of emerging diseases such as COVID-19, efficiently collecting, sharing, and integrating data is critical to scientific research. outbreak.info is a resource to aggregate all this information into a single location.
https://outbreak.info/
GNU General Public License v3.0
30 stars 13 forks source link

Inconsistencies in country/state codes yield empty cases chart in Puerto Rico Mutation Report #355

Open sacundim opened 3 years ago

sacundim commented 3 years ago

This is related to:

In the location tracker for Puerto Rico, the daily case chart shows up empty, even though the rest of the page has data:

Screen Shot 2021-05-08 at 12 51 37 PM

Here's the URL for that location tracker, note the URL parameter loc=PRI:

Now note that if we search for Puerto Rico in the "COVID-19 Cases & Deaths" option in the front page, the autocomplete offers us both "Puerto Rico" and "Puerto Rico State, USA" as options:

Screen Shot 2021-05-08 at 12 52 41 PM

These two options take you respectively to the following two URLs, and again, note the location parameters:

The location=PRI page is obviously broken. Since the variant location tracker's URL at the top of this report says loc=PRI, I'm guessing it's affected by the same problem as this daily new cases chart:

Screen Shot 2021-05-08 at 1 00 00 PM

The location=USA_US-PR page does have a time series:

Screen Shot 2021-05-08 at 1 02 10 PM
gkarthik commented 3 years ago

Hey @sacundim, thank you for pointing this out, and figuring out the wrong ID mapping. We will have a fix for this in the next release.