Skip to main content

splent_feature_curation

The review queue of an OpenHubs hub (GV-2): what a curator looks at before the hub acts on it.

  • Publications. Where dataset's DATASET_PUBLISH_POLICY is curated, an account curation does not trust sends its dataset to review instead of publishing it. It waits, submitted, and nothing reaches the provider until a curator approves it; it is then published in the background, through the provider its owner chose. A rejection takes it back to a draft its owner changes and sends again, and its owner can take it back from review too. A dataset waiting for review cannot be changed: what is approved is what is published.
  • Withdrawals. The owner of a published dataset asks for it to be withdrawn from its page (the button fills dataset's dataset.view.actions slot), saying why. A curator withdraws it (its DOI then answers with a tombstone that says why, 451 for a legal reason) or rejects the request, and the dataset stays published.
  • The queue, under Administration in the panel, for the accounts whose role is in CURATION_REVIEWER_ROLES, with the count of what waits on its menu entry. Every decision carries a note; the owner is mailed it, and the reviewers are mailed when something new waits (with the mail feature).

curation is the reviewer of dataset's policy: it implements dataset's PublicationReviewer and registers itself from init_feature with register_publication_reviewer, so a product whose policy is curated installs it, or it does not start. It changes datasets only through dataset's services, and keeps the requests and who decided them in its own table, curation_request. It requires auth and dataset 0.8.0 or later, and mails with the mail feature when the product has it.

Route
GET /admin/curation The queue
GET /admin/curation/<request_id> One request, with the dataset it is about
POST /admin/curation/<request_id>/approve, .../reject The curator's decision, with its note
POST /datasets/<dataset_id>/withdrawal-request The owner asks for a withdrawal
POST /datasets/<dataset_id>/withdrawal-request/cancel The owner takes the request back

Who is trusted

CURATION_TRUSTED_ACCOUNTS says which accounts publish without review on a curated hub:

Value Trusted
none no account: every publication is reviewed
published (default) 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 (D4)

Whatever the value, a curator is trusted, and an account one of whose datasets was withdrawn as spam or malware is not. A trusted account still confirms its address first, as dataset's verified asks.

Parameters

All three are typed in [tool.splent.config_schema] and of derivation bind: the product decides them, and an environment that changes them is drift.

Key Type Default
CURATION_TRUSTED_ACCOUNTS enum: none, published, carried_over published who publishes without review
CURATION_REVIEWER_ROLES list of admin, staff ["admin"] the roles of the curators
CURATION_NOTIFY_REVIEWERS bool true whether the curators are mailed what is new. The owner is mailed every decision either way, with mail

In the model

An optional curation node of repositorio in openhubs_spl, which publish_curated (the curated value of DATASET_PUBLISH_POLICY) requires: publish_curated => curation, so a curated hub without its reviewer does not validate. docs/openhubs_spl.uvl.patch was the change of splent_spl_openhubs/openhubs_spl.uvl that added it.

Develop

splent feature:test curation --with dataset
splent feature:contract splent_feature_curation --write

It needs dataset 0.8.0, the release with the policy: until it is out, its tests take dataset's working copy (--with dataset).

Metadata

Release files for splent-feature-curation 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for splent-feature-curation 0.2.0
File Size Uploaded Provenance Actions
splent_feature_curation-0.2.0.tar.gz 33.6 kB Without provenance Details for splent_feature_curation-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for splent-feature-curation 0.2.0
File Interpreter ABI Platform Actions
splent_feature_curation-0.2.0-py3-none-any.whl Python 3 none any Details for splent_feature_curation-0.2.0-py3-none-any.whl

Total release size: 73.4 kB

Release files / splent_feature_curation-0.2.0.tar.gz

Download URL splent_feature_curation-0.2.0.tar.gz
Size 33.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c0f9485e32d6d3ac6ea7fc053ad2d069b6e1484a522ffad90eeb54ba231d3331
BLAKE2b-256 checksum
How to use checksums
5c4b5f7d87bf630f7da104976fb0198ae9ba92ec4aecdb31883cd8605ca1e4d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.13

Release files / splent_feature_curation-0.2.0-py3-none-any.whl

Download URL splent_feature_curation-0.2.0-py3-none-any.whl
Size 39.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3077acc9a58a4f520839a64a6357ea58806bcb5c605b08d29809034ec85fcda
BLAKE2b-256 checksum
How to use checksums
e7a29f9888b554e859948979410eb3a7dc60ee57984123f5d69fd5dc8e407acd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.13

Security for splent-feature-curation 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page