• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FlexMeasures / flexmeasures / 40764997029
87%

Build:
DEFAULT BRANCH: main
Ran 28 Oct 2026 08:46PM UTC
Jobs 1
Files 195
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Oct 2026 08:37PM UTC coverage: 87.144% (+0.006%) from 87.138%
40764997029

push

github

web-flow
Fix assets paging without a sort order skipping assets (#2583)

* Fix assets paging without a sort order skipping assets

GET /api/v3_0/assets applied its ORDER BY only when both sort_by and
sort_dir were given, and neither branch had a unique tie-breaker, so
Postgres was free to return rows in whatever order each query plan
produced. Walking LIMIT/OFFSET pages then showed some assets twice and
never showed others.

The query now always appends GenericAsset.id as the final ORDER BY
column, which is unique, so every page break falls on a stable boundary
(#2572). The default sort direction stays a separate decision.

Signed-off-by: niukanen1 <57656076+niukanen1@users.noreply.github.com>

* Order by id when sort_by is unsupported, move ordering notes to docstring

Also adds a regression test that asserts the compiled ORDER BY when
sort_by is not a supported field, with and without search terms.

Signed-off-by: niukanen1 <57656076+niukanen1@users.noreply.github.com>

---------

Signed-off-by: niukanen1 <57656076+niukanen1@users.noreply.github.com>

5 of 5 new or added lines in 1 file covered. (100.0%)

22810 of 26175 relevant lines covered (87.14%)

0.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40764997029.1 28 Oct 2026 08:46PM UTC 195
87.14
GitHub Action Run
Source Files on build 40764997029
  • Tree
  • List 195
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40764997029
  • 8f2dc00e on github
  • Prev Build on main (#40716641511)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc