Skip to main content

No project description provided

Project description

Tests

ckanext-event-audit

This extension will capture and retain a comprehensive record of all changes within a CKAN app.

Read the documentation for a full user guide.

TODO:

  • add config option to exclude result and payload fields from being stored
  • allow to restrict a list of available repos (security concern)
  • disable the admin interface by default (security concern)
  • update remove_events method to allow removing events by date range
  • add a cli command to remove events by date range

Quick start

  1. Install the extension from PyPI:

    pip install ckanext-event-audit

  2. Enable the plugin in your CKAN configuration file (e.g. ckan.ini or production.ini):

    ckan.plugins = ... event_audit ...

  3. 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

  4. Configure the extension up to your needs and you're ready to go. See the documentation for more details about the configuration options.

Developer installation

To install ckanext-event-audit for development, activate your CKAN virtualenv and do:

pip install -e '.[dev, xlsx]'

Tests

To run the tests, do:

pytest --ckan-ini=test.ini

License

AGPL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext_event_audit-1.0.0.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

ckanext_event_audit-1.0.0-py3-none-any.whl (61.0 kB view details)

Uploaded Python 3

File details

Details for the file ckanext_event_audit-1.0.0.tar.gz.

File metadata

  • Download URL: ckanext_event_audit-1.0.0.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for ckanext_event_audit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 98fb5389e9069a77cbdc06688f21002e64752681ff7fd7257c4ee54112b8710d
MD5 a822bd662c926e5e22ccbfa9145fa120
BLAKE2b-256 4f238c30be18325e252635f0a4ef67573e4203d155a7c5616d2bacec17cfc153

See more details on using hashes here.

File details

Details for the file ckanext_event_audit-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_event_audit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5ce1c12c853f6190e7c8f10f158e2755ee9a4a76b3caa140e1f228cbc0f0e45
MD5 29c2375ed99665511c08b56f9ef1994b
BLAKE2b-256 fa8bbf78a01ea01fe3ab161509e30e97901792451d9f44154aed0225a46e9b08

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page