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

FlexMeasures / flexmeasures / 30497297146
83%

Build:
DEFAULT BRANCH: main
Ran 29 Jul 2026 11:00PM UTC
Jobs 1
Files 171
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

29 Jul 2026 10:46PM UTC coverage: 83.07% (+0.06%) from 83.007%
30497297146

push

github

web-flow
fix: let annotation searches filter by belief time (#2367)

* fix: let annotation searches filter by belief time

Annotations carry a belief_time, but nothing could filter on it: the
annotation queries had no belief-time criterion, search_annotations took
no belief-time arguments, and the chart_annotations endpoint declared
beliefs_after/beliefs_before query parameters that were parsed and then
dropped. Replaying a chart therefore showed annotations that were only
recorded later, e.g. breach alerts appearing before the planning window
that produced them.

Annotations without a belief time are never filtered out: a missing
belief time means the recording moment is unknown, not that it lies in
the future.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>

* fix: wire belief-time filtering into the asset chart_annotations endpoint, add tests

GET /api/v3_0/assets/<id>/chart_annotations (added in PR #2312) accepted no
beliefs_after/beliefs_before query parameters at all, even though the sensor
counterpart in flexmeasures/api/dev/sensors.py declared them (and, before this
branch, silently dropped them). GenericAsset.search_annotations already
supports beliefs_after/beliefs_before after the previous commit, so wire the
same query parameters through this endpoint.

Also add test coverage:
- flexmeasures/data/tests/test_annotations.py: search_annotations on account,
  asset and sensor excludes an annotation recorded after beliefs_before, while
  keeping annotations with belief_time=None regardless of the filter.
- flexmeasures/api/v3_0/tests/test_assets_api.py: the chart_annotations
  endpoint applies the same beliefs_before filtering end-to-end.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>

* docs: reference PR #2367 in the annotation belief-time changelog entry

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@s... (continued)

94 of 99 new or added lines in 8 files covered. (94.95%)

1 existing line in 1 file now uncovered.

16153 of 19445 relevant lines covered (83.07%)

0.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
81.19
-0.72% flexmeasures/api/v3_0/assets.py
1
75.28
7.16% flexmeasures/api/dev/sensors.py

Coverage Regressions

Lines Coverage ∆ File
1
75.28
7.16% flexmeasures/api/dev/sensors.py
Jobs
ID Job ID Ran Files Coverage
1 30497297146.1 29 Jul 2026 11:00PM UTC 171
83.07
GitHub Action Run
Source Files on build 30497297146
  • Tree
  • List 171
  • Changed 8
  • Source Changed 8
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30497297146
  • 3e867872 on github
  • Prev Build on main (#30451093351)
  • Next Build on main (#30574728630)
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