
ckanext-datasetapproval
An extension which provides a feature to approve or reject a dataset before making it public.
Installation
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 the ckan.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
Approval Flow for Dataset
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.
<img width=”999” alt=”Screenshot 2022-11-23 at 9 02 32 AM” src=”https://user-images.githubusercontent.com/87696933/203462940-2aaffcc8-537d-43d6-863d-07cc0f73f481.png