OpenDevelopmentMekong / ckanext-odm_dataset

A CKAN extension which provides with template files and logic to implement OD Mekong's datasets
http://data.opendevelopmentmekong.net
1 stars 1 forks source link

Cannot add new resource in dataset #396

Closed punwath closed 7 years ago

punwath commented 7 years ago

CKAN has a problem with uploading new resource or update the resource in the published dataset. For example, I want to upload a new resource in the dataset(https://data.opendevelopmentmekong.net/dataset/economiclandconcessions) image

After I click add image

It is still the same.

acorbi commented 7 years ago

hey @punwath thanks for raising this. Will check it out today

prustar commented 7 years ago

@punwath the resource fields for name, description and language are now mandatory - you need to enter something in all these fields now before you can save. Have you tried this?

punwath commented 7 years ago

@pyrou I filled all the required field already but it still exists.

acorbi commented 7 years ago

@punwath @prustar I found the origin of the Issue, let me explain it and provide instructions to fix it:

Reason

In the last weeks we have done some changes in the metadata fields which cause some existing records to be in a "inconsistent" state:

If you notice, one of the resources of the record in question (https://data.opendevelopmentmekong.net/dataset/economiclandconcessions) is missing its description:

screenshot from 2017-02-08 10-31-40

When @punwath then tries to add a new resource, CKAN first checks that all the data is complete and fails to create it, as raised by punwath.

Fix

If this situation happens, editors should check that both metadata and resources are complete. If Punwath adds a description to that resource missing it, then he will be able to add that new resource he wants to add. @punwath please test and provide feedback here.

Editors should be obviously alerted about this in any case, that is why I opened following issue to include a disclaimer or warning message for those records which are inconsistent: https://github.com/OpenDevelopmentMekong/ckanext-odm_dataset/issues/397

I'm closing this Issue, please re-open if my proposed fix does not work ( I tested it on PP already)