curation

git.splent.io/splent-io/splent_feature_curation

v0.2.0 full governance

About

The review queue of a hub (GV-2): the datasets a curated policy sends to review before they are published, and the withdrawals their owners ask for, approved or rejected with a note the owner is mailed; and the rule of which accounts publish without review

Provides

Models
CurationRequest
Services
CurationService
Routes
/admin/curation/admin/curation/<int:request_id>/admin/curation/<int:request_id>/approve/admin/curation/<int:request_id>/reject/datasets/<int:dataset_id>/withdrawal-request/datasets/<int:dataset_id>/withdrawal-request/cancel
Hooks filled
dataset.view.actions

Configuration

Setting Default What it does
CURATION_TRUSTED_ACCOUNTS published Which accounts publish without review where dataset's DATASET_PUBLISH_POLICY is curated (D4): "none", no account, every publication is reviewed; "published", an account with a dataset published on the hub; "carried_over", an account carried over from an older site (auth's account_origin) with a dataset published, the history uvlhub 2.12 gave it. An account one of whose datasets was withdrawn as spam or malware is never trusted, and a reviewer always is.
CURATION_REVIEWER_ROLES admin The roles of the accounts that review: they see the queue in the panel, read what waits for review, and approve or reject it.
CURATION_NOTIFY_REVIEWERS true Whether the reviewers are mailed when something new waits for them. The owner is mailed every decision either way, when the product has mail.

These are the defaults. A product changes them in its own pyproject.toml, under [tool.splent.config], or in .env.deploy in production.

Dependencies

Requires
Works better with
Listens to
dataset-submission-cancelleddataset-submitted

In product lines

Extension points

Templates
curation/admin/queue.htmlcuration/admin/request.htmlhooks/withdrawal_request.html
Services
CurationService
Models
CurationRequest
Routes
A refinement can add routes to its blueprint

Other features fill its hook slots. A refinement can override its templates and services or extend its models without forking it.

Compatibility

Python
>=3.13
SPLENT framework
>=1.30.0