Read-only mirror of https://github.com/opendata-swiss/ckanext-harvester_dashboard — opendata.swiss. Issues & pull requests at the source.
  • Python 75.5%
  • HTML 24.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stefanie Taepke b110bf15fb
Merge pull request #19 from opendata-swiss/fix/dashboard-permissions
fix: check permissions according to CKAN 2.0
2026-09-09 13:55:14 +02:00
.github/workflows tests: Don't apply pending migrations again 2025-11-24 18:16:04 +01:00
ckanext fix: check permissions according to CKAN 2.0 2026-05-19 17:10:35 +02:00
.gitignore
dev-requirements.txt
LICENSE
pyproject.toml feat: Update to pyproject.toml packaging 2025-11-24 17:33:50 +01:00
README.md
setup.cfg feat: Update to pyproject.toml packaging 2025-11-24 17:33:50 +01:00
setup.py feat: Update to pyproject.toml packaging 2025-11-24 17:33:50 +01:00
test.ini feat: add basic test setup 2025-08-05 15:16:04 +02:00

Harvester Dashboard

Ckan extension that add a harvester dashboard that shows all the latest harvester jobs for the harvesters a user has access to

Prerequisites

  • ckanext-harvest needs to be installed

Purpose

The extensions adds a named route: harvester_dashboard for displaying a harvester dashboard The harvester dashboard displays the latest harvester job for all harvesters that a user is allowed to administer. (The user's adminstration rights are directly retrieved by check_access on 'harvest_source_update'.)

For each harvester job on the list links to the harvester-admin and the organization that the harvester belongs to are provided.

Setup

  • Add a tab on your header.html template to give access to the new route:

Update translations

The extension is ready for adding translations, but so far no translations have been added.

To generate an updated ckanext-harvester_dashboard.pot file inside the Docker container, use the following commands:

docker-compose exec ckan bash
source /usr/lib/ckan/venv/bin/activate
cd /usr/lib/ckanext/ckanext-harvester_dashboard/
python setup.py extract_messages

Copy any new strings that you want to translate from the new ckanext-harvester_dashboard.pot into the ckanext-harvester_dashboard.po file for each language, and add the translations.

After that compile the po files into mo files:

python setup.py compile_catalog

Log out of the ckan container (ctrl+D) and restart it for the new translations to be used:

docker-compose restart ckan