dkan icon indicating copy to clipboard operation
dkan copied to clipboard

Unable to remove a harvest without deleting its datasets

Open thierrydallacroce opened this issue 2 years ago • 1 comments

With the goal of cleaning up an old harvest from an environment where it was mistakenly added and ran, I tested both of the following approaches in a local environment:

drush dkan:harvest:deregister harvest_id 

and

drush dkan:harvest:revert harvest_id

But, both deleted the datasets.

thierrydallacroce avatar Sep 22 '22 23:09 thierrydallacroce

@dafeder : Provided a merge request for this as discussed in #3840.

One could probably add some check if there are entities related to the harvest at all and only in that case show the warning and ask for confirmation. But maybe the warning is okay in any case?

There are also some issues with the messages from the deregister comment, which are unrelated to this. See issue #3956. #3840 and #3956 will not apply together. If either of the PRs is accepted, the other will need to be updated.

stefan-korn avatar May 08 '23 14:05 stefan-korn

@stefan-korn I think we consider this resolved, feel free to re-open if you think it needs more work.

dafeder avatar Apr 05 '24 22:04 dafeder