Skip to content

Add neighbors to ListElementDatasets

Refs https://redmine.teklia.com/issues/6025

The endpoint ListElementDatasets must be extended with an optional query boolean parameter with_neighbors (default to false), which will provide the elements ID of previous and next neighbours in the dataset list current ordering (element_id, id).

You'll need to create a subquery with a partition over dataset set + ordering (probably with raw SQL)...