Closed fostermh closed 3 months ago
Automate the backup of harvester configs. no need to keep it secret as the API exposes them anyway.
output of api action harvest_source_list is missing some fields that harvest_source_create requires.
specifically: name and owner_org. type needs to be renamed source_type.
see https://github.com/ckan/ckanext-harvest/blob/9fb44f79809a1c04dfeb0e1ca2540c5ff3cacef4/ckanext/harvest/logic/action/get.py#L125
https://github.com/ckan/ckanext-harvest/blob/9fb44f79809a1c04dfeb0e1ca2540c5ff3cacef4/ckanext/harvest/logic/action/create.py#L29
better done as a db dump. work done in private repo
Automate the backup of harvester configs. no need to keep it secret as the API exposes them anyway.
output of api action harvest_source_list is missing some fields that harvest_source_create requires.
specifically: name and owner_org. type needs to be renamed source_type.
see https://github.com/ckan/ckanext-harvest/blob/9fb44f79809a1c04dfeb0e1ca2540c5ff3cacef4/ckanext/harvest/logic/action/get.py#L125
https://github.com/ckan/ckanext-harvest/blob/9fb44f79809a1c04dfeb0e1ca2540c5ff3cacef4/ckanext/harvest/logic/action/create.py#L29