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

FlexMeasures / flexmeasures / 33489811388
88%

Build:
DEFAULT BRANCH: main
Ran 01 Sep 2026 09:09AM UTC
Jobs 1
Files 177
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

01 Sep 2026 08:58AM UTC coverage: 84.132% (+0.005%) from 84.127%
33489811388

push

github

web-flow
Load only the newly selected days when a chart's time range changes (#2433)

* ui/graphs: stop the KPI fetch from corrupting the chart's date range

Context:
- getAssetKPIs() advances the end date it is given by one day, to make the
  KPI window inclusive.
- On the asset page, it was handed the very Date objects that storeEndDate
  and previousResult.end hold, so after one date selection both were a day
  late. The exact-range short-circuit in fetchGraphDataAndKPIs then stopped
  matching, and embedAndLoad sliced a day too much off the cached data.
- The initial call additionally read storeStartDate/storeEndDate from the
  module body, which is evaluated before the DOMContentLoaded handler that
  assigns them (verified in headless Chrome), so on an asset with KPIs it
  threw on undefined and aborted the rest of the module.

Change:
- Pass copies to getAssetKPIs at both call sites.
- Derive the initial window from the template values rather than from the
  not-yet-assigned globals.

Signed-off-by: F.N. Claessen <felix@seita.nl>

* ui/graphs: fetch chart data through a single module

Context:
- Four call sites in graphs.html (initial load, sensors-to-show reload,
  replay, and date selection) each built the same /chart_data query string
  by hand and repeated the same response handling.
- That duplication is what makes a reuse cache awkward to add: it would
  have to be threaded through every call site separately.

Change:
- Add chart-data-source.js with buildChartDataUrl, fetchChartData and
  fetchChartAnnotations, and route all five fetches through it.
- Drop the now-unused decompressChartData import, the dead module-level
  queryStartDate/queryEndDate, and two parameters of fetchGraphDataAndKPIs
  that the caller no longer needs.
- No behaviour change: the generated URLs are unchanged.

Signed-off-by: F.N. Claessen <felix@seita.nl>

* ui/graphs: fetch only the newly selected days, not the whole window

Context:
- Issue #101: changing the selected tim... (continued)

17427 of 20714 relevant lines covered (84.13%)

0.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 33489811388.1 01 Sep 2026 09:09AM UTC 177
84.13
GitHub Action Run
Source Files on build 33489811388
  • Tree
  • List 177
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33489811388
  • 03811175 on github
  • Prev Build on main (#33093638949)
  • Next Build on main (#33491755628)
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