An extension which provides a feature to approve or reject a dataset before making it public.
To install ckanext-datasetapproval:
Note: if you're using ckanext_scheming
extension, add new field to the schema configuration YAML file.
- field_name: publishing_status label: Publishing Status form_snippet: null display_snippet: null validators: ignore_missing publishing_status_validator
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
-
Clone the source and install it on the virtualenv
git clone https://github.com//ckanext-datasetapproval.git cd ckanext-datasetapproval pip install -e . pip install -r requirements.txt
-
Add
dataset_approval
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini
). -
Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
- All publisher users can save datasets as drafts for later editing, while creating/updating datasets without publishing it to the public.
- Users with editor role in organization can create a dataset and submit it for approval Editors user get this message
Submit for approval by clicking finish button.
- Organization admin receives the email notification when dataset is submitted for approval. Example: