Read-only mirror of https://github.com/opendata-swiss/ckanext-harvester_dashboard — opendata.swiss. Issues & pull requests at the source.
  • Python 75.6%
  • HTML 24.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-01-29 15:16:02 +01:00
.github/workflows tests: Don't apply pending migrations again 2025-11-24 18:16:04 +01:00
ckanext chore: Temporarily ignore complexity of one function 2025-11-24 17:34:23 +01:00
.gitignore add harvester dashboard code with route, controller and logic 2021-05-04 09:44:09 +02:00
dev-requirements.txt feat: add dev-requirements 2025-07-31 15:29:28 +02:00
LICENSE Create LICENSE 2022-01-13 11:55:31 +01:00
pyproject.toml feat: Update to pyproject.toml packaging 2025-11-24 17:33:50 +01:00
README.md Fix extension name 2021-06-02 19:02:24 +02:00
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