ckan / ckanapi

A command line interface and Python module for accessing the CKAN Action API
Other
176 stars 74 forks source link

Consider creating a library of CKAN maintenance scripts #157

Closed jqnatividad closed 3 years ago

jqnatividad commented 3 years ago

Currently, there is no straightforward way to do several common maintenance tasks required to run a CKAN installation on an ongoing basis.

Perhaps, ckanapi can have a scripts directory with several helper utilities to help a CKAN sysadmin maintain a production CKAN with common chores, like:

Already, ckanapi is referred to in the Maintainer's guide for common maintenance tasks like exporting user accounts to json lines, why not use it as well for the above listed tasks as well?

At the same time, the scripts will be a good reference for more complex examples of ckanapi in action.

wardi commented 3 years ago

ckanapi is intended as an api client so it doesn't feel right to include code that directly accesses models in the ckan db. I'll close this in favor of https://github.com/ckan/ckan/issues/5590