act-now-coalition / covid-data-model

Data backend providing computed data for the graphs displayed at https://covidactnow.org
https://covidactnow.org/
MIT License
149 stars 57 forks source link

Add HSA names to API #1278

Closed smcclure17 closed 2 years ago

smcclure17 commented 2 years ago

Adds names of HSAs to county endpoints, (or "Unknown HSA Name" when an HSA name is not available.) HSA names lined up/were available for all HSAs except those in Puerto Rico.

Tested by generating API files locally with:

./run.py data update --state CT
python ./pyseir/cli.py build-all --states=CT
./run.py api generate-api-v2 --state CT output -o output/api

County endpoint:

image

State endpoint:

image

I can generate a full snapshot for this, but I feel pretty confident that this should work as expected