hdx-ckan
hdx-ckan copied to clipboard
Dataset edit modal appears to show resources as if they are of type "Upload file"
The edit dataset modal appear to show resources of type "Import from URL" as empty "Upload file" resources.
To reproduce
- Start with a dataset containing an "Import from URL" resource
- Click on edit
- Notice that the "Import form URL" resource is shown as if it is an empty "Upload File" resource.
It is not know what the effect of saving this resource is going to be.
@takavarasha can you please give us a dataset url as example?
https://data.humdata.org/api/3/action/package_show?id=acled-conflict-data-for-africa-realtime-2016 and indicators: https://data.humdata.org/api/3/action/package_show?id=proportion_of_the_population_using_improved_sanitation_facilities
@mcarans can you check your update script? I think the acled dataset resources are not set well the type and it looks bad when editing the dataset. lets chat on slack
From what I see the url_type and the resource_type are null. @takavarasha Where they created by a script ? Theoretically those 2 fields are never null when created via the UI.
Actions:
- @mcarans to update the HDX Library to add the missing fields for resources
- @takavarasha / @mcarans to run the scripts to update the resources
- Dan to check in about 10-14 days the remaining not updated resources and to manually patch them in CKAN db.