ckanext-scheming icon indicating copy to clipboard operation
ckanext-scheming copied to clipboard

Form is not being updated for datasets

Open ddazal opened this issue 2 years ago • 0 comments

Hi, I have installed CKAN 2.9.5 (last version) from package on Ubuntu 20.04 and this extension without any issue. However, when I set the scheming.dataset_schemas option in the config file the changes are not reflected on the dataset form creation.

My ckan.ini:

ckan.plugins = stats text_view image_view recline_view datastore scheming_datasets scheming_groups
scheming.dataset_schemas = ckanext.scheming:camel_photos.yaml
scheming.group_schemas = ckanext.scheming:group_with_bookface.json

Note that I'm also using the scheming.group_schemas. In this case the group form is updated successfully (see image) while the dataset form is still the default

WhatsApp Image 2022-03-17 at 6 51 52 PM

When I call /api/3/action/scheming_dataset_schema_list I get the following response:

{
    "help": "http://localhost/api/3/action/help_show?name=scheming_dataset_scheming_list",
    "success": true,
    "result": ["camel-photos"]
}

Am I missing a particular step in the configuration?

How did I install this extension?

$ cd /usr/lib/ckan/default/src
$ sudo su
$ . /usr/lib/ckan/default/bin/activate
(default) $ pip install -e "git+https://github.com/ckan/ckanext-scheming.git#egg=ckanext-scheming"

ddazal avatar Mar 18 '22 00:03 ddazal