GFDRR / open-risk-data-dashboard

Repository for the Open Data for Resilience Index, a website to track and improve the state of Open Data for Resilience worldwide.
https://index.opendri.org
GNU Lesser General Public License v3.0
23 stars 8 forks source link

Explore countries: use new indicators (API) to sort countries #430

Closed pzwsk closed 5 years ago

pzwsk commented 5 years ago

New set of indicators is now implemented through this API call https://exp.riskopendata.org/api/scoring/ and is replacing this one https://exp.riskopendata.org/api/country_scoring/

Currently, because sorting still use old API, countries are sorted by name by default. This issue is to use new set of indicators to sort countries by default and when clicking on sort buttons.

When initiating the page, countries should be sorted by datasets_open_count, then datasets_restricted_count, then datasets_closed_count (from max to min).

Same sorting order should apply when clicking on Indicators (open, restricted, closed) buttons.

When clicking on Unknown, countries should be sorted by datasets_unknown_count.

Then remove any calls to old API country_scoring from that Explore Countries page.

Thanks