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

FlexMeasures / flexmeasures / 41600545056
88%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 08:12AM 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

03 Nov 2026 08:04AM UTC coverage: 87.694% (+0.2%) from 87.493%
41600545056

push

github

web-flow
perf: load only the data each asset chart type draws (#2790)

* perf: load only the data each asset chart type draws

On an asset with charge points, the Default chart and the Charge Points chart
shared one chart data request, which loaded every sensor in sensors_to_show.
The Default chart skips the "Charge Point sessions" graph, so its session
sensors were loaded and thrown away, and the Charge Points chart likewise
loaded everything to draw a few graphs.

GET /assets/<id>/chart_data now accepts chart-type and returns only the data
of the sensors that chart type draws (GenericAsset.chart_sensors). Without it,
it returns every sensor's data, as before. The asset page sends the selected
chart type, and loads that chart's data when the user switches charts; the
chart data cache no longer reuses records loaded for another chart type.

Closes #2789.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* Stop a running replay before switching charts, and name the companion graph titles

Switching between the asset charts reloaded the data without stopping a replay,
which would keep drawing the previous chart type's data; and stopping a replay
redraws the Vega-Lite chart, so the reload now waits for it.

The "Prices" and "Power flow by type" titles were spelled out again in
GenericAsset.chart_sensors; both now come from belief_charts.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ahmad-Wahid <ahmedwahid16101@gmail.com>

* api/v3_0/tests: isolate asset chart data tests with fresh_db

Co-authored-by: Ahmad-Wahid <59763365+Ahmad-Wahid@users.noreply.github.com>

* Load the companion graphs the Charge Points chart draws, whatever the case of their titles

The Vega-Lite Charge Points chart capitalizes graph titles before matching them,
but chart_sensors compared the raw titles,
so a graph titled "prices" or "power flow by type" was drawn without its data.
One helper in belief... (continued)

42 of 44 new or added lines in 4 files covered. (95.45%)

23074 of 26312 relevant lines covered (87.69%)

0.88 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.67
16.83% flexmeasures/data/models/charts/belief_charts.py
Jobs
ID Job ID Ran Files Coverage
1 41600545056.1 03 Nov 2026 08:12AM UTC 195
87.69
GitHub Action Run
Source Files on build 41600545056
  • Tree
  • List 195
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41600545056
  • 66efc237 on github
  • Prev Build on main (#41550092370)
  • Next Build on main (#41727551109)
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