There is a need for a secret command to remove the "extras" key from certain datasets. The issue is that somehow a key "extras" has been introduced to a bunch of datasets on HDX, this key should not exist and its presence causes an error when an attempt is made to update the dataset. The error is:
ckanapi.errors.ValidationError: {'extras': [{}, {'key': ['There is a schema field with the same name']}], '__type': 'Validation Error'}
The aim is to add a command to a branch of hdx-toolkit which will resolve this issue by popping the "extras" key out of a dataset and ensuring that on update the extras key is excluded. It is anticipated that this command will be used once per effected dataset and will not be published to the public hdx-toolkit
This is on the GH27_remove_extras_DO_NOT_MERGE branch, invoked like this:
hdx-toolkit remove_extras_key --dataset_name=shcchealthcare-dataset --hdx_site=stage
There is a need for a secret command to remove the "extras" key from certain datasets. The issue is that somehow a key "extras" has been introduced to a bunch of datasets on HDX, this key should not exist and its presence causes an error when an attempt is made to update the dataset. The error is:
ckanapi.errors.ValidationError: {'extras': [{}, {'key': ['There is a schema field with the same name']}], '__type': 'Validation Error'}
The aim is to add a command to a branch of hdx-toolkit which will resolve this issue by popping the "extras" key out of a dataset and ensuring that on update the extras key is excluded. It is anticipated that this command will be used once per effected dataset and will not be published to the public hdx-toolkit