You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.
A manual script is needed to clear data associated to the doi-open-data after it is deleted using the UI and a different doi-open-data source is created and harvested - we want to figure out why and avoid this.
How to reproduce
Import harvest source doi-open-data - harvest all the datasets
Delete the harvest source
Import harvest source doi-open-data again and harvest all the datasets again
Observe Errors while harvesting datasets
Expected behavior
You should be able to 1. delete a harvest source 2. re-import it and 3. harvest without and issue of the deleted harvest sources datasets becoming mismatched in the database or needing to manually clear them
Datasets becoming mismatched. Old harvest sources and associated objects need to be cleared using this script.
Thoughts
The manual part of this script is already run when a source is cleared using the clear button in the UI or when using the clearsourcecommandline command from ckanext-harvest already so it may just be that we need to clear the source in the UI before deleting it.
The text was updated successfully, but these errors were encountered:
thejuliekramer
changed the title
Manual Script Needed to Clear DOI Source
Manual Script Needed to Clear DOI Source When There are Multiple
Oct 22, 2020
A manual script is needed to clear data associated to the
doi-open-data
after it is deleted using the UI and a different doi-open-data source is created and harvested - we want to figure out why and avoid this.How to reproduce
doi-open-data
- harvest all the datasetsdoi-open-data
again and harvest all the datasets againExpected behavior
You should be able to 1. delete a harvest source 2. re-import it and 3. harvest without and issue of the deleted harvest sources datasets becoming mismatched in the database or needing to manually clear them
https://github.com/ckan/ckanext-harvest/blob/master/ckanext/harvest/logic/action/update.py#L175
Actual behavior
Datasets becoming mismatched. Old harvest sources and associated objects need to be cleared using this script.
Thoughts
The manual part of this script is already run when a source is cleared using the
clear
button in the UI or when using theclearsource
commandline command from ckanext-harvest already so it may just be that we need to clear the source in the UI before deleting it.The text was updated successfully, but these errors were encountered: