Forward-filling the metrics by MAX_METRIC_LOOKBACK_DAYS - 2 (13 days) knocked the community-level-calculation logic out of sync with the top-level metric forward-filling.
This caused a situation where the community-level logic determined that the hospital metrics were missing (and set the community level to None), but the metrics were still displayed/weren't filtered out by the rest of the API
Forward-filling the metrics by
MAX_METRIC_LOOKBACK_DAYS - 2
(13 days) knocked the community-level-calculation logic out of sync with the top-level metric forward-filling.This caused a situation where the community-level logic determined that the hospital metrics were missing (and set the community level to
None
), but the metrics were still displayed/weren't filtered out by the rest of the APIFull snapshot building with these changes: https://github.com/act-now-coalition/covid-data-model/actions/runs/5084966505