-
Notifications
You must be signed in to change notification settings - Fork 34
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
Adding capability for CSV + GeoJSON download of composite data; COUNTRY=jordan #1339
Adding capability for CSV + GeoJSON download of composite data; COUNTRY=jordan #1339
Conversation
Build succeeded and deployed at https://prism-1339.surge.sh |
"build and test api" is failing due to an unrelated outage. It should pass when we rerun in a couple hours |
Heads up, @wadhwamatic, geojson downloads are fixed in d1295b3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good from my side now, thanks @gislawill
@ericboucher - can you take a quick look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Two small recommendations:
- Enhance typing around layer.type to make the code and button activation a bit cleaner
- Update
getFilename
to be more informative and contain country name + selected date for more layer types (composite in particular)
Thanks for the review @ericboucher! I've updated the file name and done a small simplification of the layer types (all within LayerDownloadOptions.tsx). Could you say more on what you're thinking for the typing around layer.type? My mind jumps to using enums but not sure that'll be significantly more manageable.
|
655cced
to
b23d219
Compare
Hey @valpesendorfer, we've got some python tests that are hitting this service: https://api.earthobservation.vam.wfp.org/ows/?service=WCS&request=GetCoverage&.... We're seeing 500 responses which is causing our tests to fail. It appears to have been happening for a couple weeks. Any idea what's going on? A side note, we're in the process of moving away from hitting these endpoints in our tests (using VCR.py to intercept requests and use stored responses) — we'll need the correct 200 response to store first of course.
|
gtg, thanks @gislawill! |
I'll merge this despite the failed test as we know it's unrelated. @ericboucher, I'm happy to make any updates to the layer typing in a follow up pr |
Description
This addresses #1336 by adding support for CSV + GeoJSON files of CDI data.
How to test the feature:
Checklist - did you ...
Test your changes with
REACT_APP_COUNTRY=rbd yarn start
REACT_APP_COUNTRY=cambodia yarn start
REACT_APP_COUNTRY=mozambique yarn start
Screenshot/video of feature:
https://www.loom.com/share/a3c8cc4955a44112a0b3ed4983bbdf7b