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

Issue#376 submit dataset error #393

Closed CIMAManuel closed 5 years ago

CIMAManuel commented 5 years ago

I think the problem was the wrong object "initialization" (file service.js - this.getDatasetEmptyStructure function). The parameter "is_pub_available" was set with a value like "--". So check function didn't find this field empty and the API call start without an error message. Server response in this case is "Bag request" because this field must has BOOL and not STRING.

I changed "is_reviewed" parameter also, this was set to false now is empty like others.