This extension will capture and retain a comprehensive record of all changes within a CKAN app.
Read the documentation for a full user guide.
-
Install the extension from
PyPI
:pip install ckanext-event-audit
-
Enable the plugin in your CKAN configuration file (e.g.
ckan.ini
orproduction.ini
):ckan.plugins = ... event_audit ...
-
Run DB migrations. For CKAN 2.10+ we can run this command:
ckan db pending-migrations
CKAN 2.11+ allows us to run the following command to create the tables:
ckan db upgrade
-
Configure the extension up to your needs and you're ready to go. See the documentation for more details about the configuration options.
To install ckanext-event-audit for development, activate your CKAN virtualenv and do:
pip install -e '.[dev]'
To run the tests, do:
pytest --ckan-ini=test.ini