ckanext-gsreport
CKAN report infrastructure.
Purpose
This CKAN extension provides reports about resources properties. Extension uses ckanext-report and adds reports to dashboard at /report.
Installation
This extension requires ckanext-report and owslib to be installed before using ckanext-gsreport.
- Install
ckanext-report and init db:
$ git clone https://github.com/datagovuk/ckanext-report.git
$ cd ckanext-report
$ pip install -e .
$ paster –plugin=ckanext-report report initdb –config=path/to/config.ini
- Clone repository and install package:
$ git clone https://github.com/geosolutions-it/ckanext-gsreport.git
$ cd ckanext-gsreport
$ pip install -r requirements.txt
$ pip install -e .
- Add
status_reports to plugins. Note Order of entries matters. This plugin should be placed before report plugin.
ckan.plugins = .. status_reports report
- Run solr data reindexing (license and resource format reports are using special placeholders in solr to access data without value):
paster –plugin=ckan search-index rebuild_fast -c /path/to/config.ini
- Run reports generation (see [Report generation] below)
After reports are generated, They can be seen in dashboard in /report path, for example http://localhost:5000/report
Report generation
Report can be generated in two ways:
in CLI (this can be used to set up cron job):
paster –plugin=ckanext-report report generate –config=path/to/config.ini
paster –plugin=ckanext-report report generate $report-name –config=path/to/config.ini
in UI, opening /report url when user opens report page for the first time (with no data in report),
Warning
** this can take a while to produce results. Especially broken-links report may take significant amount of time, because it will check each resource for availability.**
**Report generation speed depends on network speed, response time from