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: approval_state
label: Approval
validators: ignore_missing state_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