-
Our team is using CKAN 2.10.1 with the activity plugin. We have recently done some data migrations (e.g., making each dataset's While we would like the preserve the activity, we don't feel that it's worth the time required to debug & potentially wait for upstream patches -- deleting the activity is good enough for us, because it would eliminate the links that are causing issues, and we've verified that "new" activity (from after our data migrations) works fine. I couldn't find any documentation about how to safely delete activity, and I don't see any options for it in the CKAN UI, so I thought I'd ask here. My naive approach to delete activity is the following:
I noticed there is also a table called After doing this on a test instance of CKAN, I verified that there were no obvious ill effects. The big question is, are these steps sufficient? Are they safe? Any further guidance would be appreciated. Footnotes
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We really should have a command to do this in core, but for now you can implement this yourself something like this https://github.com/open-data/ckanext-canada/blob/c2808d9c318e19d5f0c3b4c2f53073e9576d6b8f/ckanext/canada/commands.py#L740-L756 |
Beta Was this translation helpful? Give feedback.
We really should have a command to do this in core, but for now you can implement this yourself something like this https://github.com/open-data/ckanext-canada/blob/c2808d9c318e19d5f0c3b4c2f53073e9576d6b8f/ckanext/canada/commands.py#L740-L756