paris-branch / dancelor

A chancelor for Scottish country dance musicians
https://dancelor.org
0 stars 0 forks source link

Support specifying threshold and slice in text formula #322

Open Niols opened 5 months ago

Niols commented 5 months ago

Maybe with “predicate-like” configuration that can only appear in the top-level conjunction. Slice could also be specified as a pagination (page size and page number). Filters interface could change to:

of_text_formula : TextFormula.t -> t * settings

(We could find a better name than settings.) And it first extracts the settings from the text formula and then calls the convertors.

The type of the search functions could just take settings with a reasonable default. Pagination could actually also show in the text search (which in turn would allow links to contain the page number \o). It should probably not be retained by the context?

Niols commented 5 months ago

Maybe we could also add an order-by predicate as well but then there is the question of whether that's before the scores or whatnot. Maybe order-by and tiebreak-by? And we need a way to specify whether that's increasing or decreasing.