NASA-IMPACT / covid-api

MIT License
14 stars 3 forks source link

Fixes missing togo site dataset + 2 other small bug fixes #106

Closed leothomas closed 3 years ago

leothomas commented 3 years ago

Bugs Fixed:

1) The staging dashboard is failing to startup because it the /datasets/togo request was failing.

The request was failing because of incorrectly configured date parsing logic that was skipping the togo-ag dataset, since none of these files contain dates. Because togo-ag is the only dataset available for the togo dataset, the metadata generator lambda was skipping the togo site altogether and the API was failing to load the /datasets/togo request because, while the site exists, the togo key was not found in the dataset metadata file (loaded from S3).

2) Once the togo dataset was added (with empty date domain) back to the dataset metadata file the dashboard loaded fully, but was unable to load any tiles. @vincentsarago determined this was due to a newer version of rasterio (1.2b.3) with breaking changes. Pinning rasterio to 1.1.8 in setup.py fixed the problem.

3) A last problem occurred when loading the detections-vehicles dataset, due to an incorrectly configured route (/v1/detections-vehicles) which was changed to /v1/detections/vehicles)