Skip to content
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

GLAD Biodiversity Table Update #3367

Merged
merged 13 commits into from
Apr 27, 2018
Merged

GLAD Biodiversity Table Update #3367

merged 13 commits into from
Apr 27, 2018

Conversation

01painadam
Copy link
Contributor

Overview

Updates the GLAD Biodiversity Widget to use the new summary tables (pre-aggregated by week, and pre-grouped by either adm1 or adm2 ). Makes requests fast! 🔥

No Aesthetic changes.

Note that the summary tables are not yet synced with the current GLAD table, so data will not match when testing

@01painadam 01painadam added countries WIP Any PR that should not be merged to develop labels Apr 19, 2018
@01painadam 01painadam requested a review from edbrett April 19, 2018 12:51
Copy link
Contributor

@edbrett edbrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Small comments.

@@ -1,13 +1,14 @@
import axios from 'axios';
import moment from 'moment';
// import moment from 'moment';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont leave comments please

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad!


const REQUEST_URL = `${process.env.GFW_API_HOST_PROD}`;
const DATASET = process.env.GLAD_PRECALC_DATASET;
const ISO_DATASET = process.env.ISO_GLAD_SUMMARY;
const ADM1_DATASET = process.env.ADM1_GLAD_SUMMARY;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you names these by GLAD_.... instead? So they are grouped together in the alpha in heroku so easier to find.

@edbrett edbrett added the staging Any PR expected to be kept on staging label Apr 23, 2018
@01painadam
Copy link
Contributor Author

01painadam commented Apr 27, 2018

Glad tables are now updated with the following id's for the .env:


ISO_GLAD_SUMMARY=391ca96d-303f-4aef-be4b-9cdb4856832c
ADM1_GLAD_SUMMARY=c7a1d922-e320-4e92-8e4c-11ea33dd6e35
ADM2_GLAD_SUMMARY=428db321-5ebb-4e86-a3df-32c63b6d3c83

They just need testing on staging first - then we are good to go!

@01painadam 01painadam removed the WIP Any PR that should not be merged to develop label Apr 27, 2018
@edbrett edbrett merged commit 4d4529c into develop Apr 27, 2018
@edbrett edbrett deleted the feature/glad_summary_tables branch April 27, 2018 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staging Any PR expected to be kept on staging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants