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

FlexMeasures / flexmeasures / 27687603307
81%

Build:
DEFAULT BRANCH: main
Ran 17 Jun 2026 12:18PM UTC
Jobs 1
Files 166
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

17 Jun 2026 12:04PM UTC coverage: 80.95% (+0.09%) from 80.865%
27687603307

push

github

web-flow
Feat: filter sensors and assets by ID (#2231)

* feat/api: add ID to the filterable fields in sensors and assets API endpoints

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

* allow to search by ID prefix as well, more aligning with how search works for the other fields

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

* complete changelog entry

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

* fix(api): require asset read access for sensors

Protect GET /assets/<id>/sensors with the same read permission guard as the asset detail endpoint, with a regression test for cross-organisation access.

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* fix(api): honor all asset sensor filter terms

Use the SearchFilterField output directly so multi-term and quoted searches behave like the other filtered endpoints.

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* fix(api): keep ID prefix filters indexable

Replace text casts on integer IDs with equality and range predicates, and tighten fresh-db coverage with prefix decoys and exact counts.

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* docs(api): document ID prefix search behavior

Expose the filter metadata in the asset and sensor schemas and clarify that ID prefixes return only matching records.

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* fix(api): remove duplicate asset filter fields

Rely on PaginationSchema for inherited filter parameters and refresh the generated OpenAPI spec.

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* fix(api): explain no-match ID prefix filter

Document that false() makes the ID-prefix branch match no rows for non-canonical digit strings.

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* refactor(api): clarify ID prefix digit naming

Rename the ID-prefix helper argument so it is clear the original digit string is needed for ran... (continued)

36 of 38 new or added lines in 4 files covered. (94.74%)

13407 of 16562 relevant lines covered (80.95%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
64.52
2.7% flexmeasures/data/queries/utils.py
Jobs
ID Job ID Ran Files Coverage
1 27687603307.1 17 Jun 2026 12:18PM UTC 166
80.95
GitHub Action Run
Source Files on build 27687603307
  • Tree
  • List 166
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27687603307
  • daa27ef0 on github
  • Prev Build on main (#27647532888)
  • Next Build on main (#27698125863)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc