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

FlexMeasures / flexmeasures / 29918605411
83%

Build:
DEFAULT BRANCH: main
Ran 22 Jul 2026 12:25PM 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

22 Jul 2026 12:11PM UTC coverage: 82.509% (+0.08%) from 82.426%
29918605411

push

github

web-flow
Show asset annotations in asset charts (#2312)

* feat: show asset annotations in asset charts

Asset (and account) annotations now appear in the asset chart as a lightly
shaded time band across all subcharts. Hovering the band darkens it in the
hovered subchart only, and shows a tooltip with the annotation text, type,
source and time window. Alert annotations get a warning hue; instant
(zero-duration) annotations render as a vertical rule with a top marker.

- New GET /api/v3_0/assets/<id>/chart_annotations endpoint (mirrors the
  sensor endpoint, includes account annotations)
- Annotation layers are injected per subchart of the vconcat chart, all
  bound to one shared named dataset, with per-subchart hover/select params
- The hover_x_brush/hover_nearest_brush selections ignore events on
  annotation marks (their datums lack the binned event_start field)
- graphs.html annotation fetching generalized to asset pages

Signed-off-by: F.N. Claessen <felix@seita.nl>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LQFkeGxDwErydUV5ZmHmki

* docs: fill in PR link in changelog

Signed-off-by: F.N. Claessen <felix@seita.nl>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LQFkeGxDwErydUV5ZmHmki

* feat: show annotation text below the hovered subchart, keep data tooltips

Rework of the annotation interaction after review:

- Annotation bands/rules/markers are now drawn behind the data layers,
  and no longer define their own tooltip, so the regular data tooltip
  keeps working everywhere, including inside annotation bands
- Hover/pin params capture the time (event_start) of the hovered/clicked
  datum; annotations highlight when that time falls inside their window
  (with a one-resolution-bin tolerance for instant annotations, which
  also makes the 1px rule easy to hover)
- On hover or click-to-pin, the annotation text is shown below the
  hovered su... (continued)

64 of 68 new or added lines in 3 files covered. (94.12%)

15727 of 19061 relevant lines covered (82.51%)

0.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
87.83
2.75% flexmeasures/data/models/charts/defaults.py
Jobs
ID Job ID Ran Files Coverage
1 29918605411.1 22 Jul 2026 12:25PM UTC 171
82.51
GitHub Action Run
Source Files on build 29918605411
  • Tree
  • List 171
  • Changed 6
  • Source Changed 4
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29918605411
  • ac21d8cc on github
  • Prev Build on main (#29915579583)
  • Next Build on main (#29920183962)
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