About
Like and dislike votes on published datasets, counted per version lineage
Provides
Models
DatasetRating
Services
RatingService
Routes
/datasets/<int:dataset_id>/rating
Hooks filled
dataset.view.meta
Signals
dataset-rated
Translations
es
Configuration
| Setting | Default | What it does |
|---|---|---|
RATING_ALLOW_DISLIKE |
true
|
Whether a reader may dislike a dataset, besides liking it (D17: yes). Without it the widget has no dislike and the API refuses one; the votes already cast stay counted. |
RATING_WORST_RATED_PANEL |
false
|
The worst rated datasets on statistics' dashboard (D17: off). A public ranking of the worst rated reads as a judgement of their authors; a product turns it on deliberately, and never without dislikes. |
RATING_PANEL_MIN_VOTES |
3
|
How many votes a dataset needs to stand in the best and the worst rated panels, so one vote does not make a ranking (DC-9). |
These are the defaults. A product changes them in its own pyproject.toml, under [tool.splent.config], or in .env.deploy in production.
Dependencies
Works better with
In product lines
-
openhubs_spl
Optional in this line
Needs
authdataset
Extension points
Services
RatingService
Models
DatasetRating
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