-
Notifications
You must be signed in to change notification settings - Fork 93
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
FLAG-1154: update dashboard sentences for natural forest #4884
base: feat/FLAG-1155--natural-forest-widget
Are you sure you want to change the base?
Conversation
services/sentences.js
Outdated
getLoss(params), | ||
getLoss({ ...params, forestType: 'plantations' }), | ||
getLoss({ ...params, forestType: 'primary_forest' }), | ||
]).then( |
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.
to this day I really don't know why this function is invoking 3 times getExtent
and getLoss
with different params,
also I ignore if they are used in a specific page besides the dashboard
emissions: 0, | ||
}, | ||
primaryLoss: {}, | ||
}; |
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 like the dashboard sentences only require the following:
- totalArea
- extent
- totalLoss: {
area,
year,
emissions,
}
hence I left the others with 0
f36a052
to
a0c1203
Compare
Overview
With Natural Forest epic, the dashboard sentences need to be updated, this PR address that.
Demo
If applicable: screenshots, gifs, etc.
Notes
If applicable: ancilary topics, caveats, alternative strategies that didn't work out, etc.
Testing