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

FlexMeasures / flexmeasures / 33537455536
88%

Build:
DEFAULT BRANCH: main
Ran 01 Sep 2026 05:34PM UTC
Jobs 1
Files 180
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 05:23PM UTC coverage: 84.434% (+0.1%) from 84.339%
33537455536

push

github

web-flow
Stop the asset page's KPIs counting a day the chart does not show (#2434)

* ui/graphs: stop the KPIs counting a day the chart does not show

Context:
- getAssetKPIs advanced its end date by a day to "make the end date
  inclusive", but both callers already hand it the chart's exclusive end,
  and the endpoint ends its own window before `end` as well
  (_get_sensor_stats filters event_start < end).
- Every KPI therefore covered one day more than the chart beside it. On a
  seeded asset with one unit of energy per day, a three-day selection
  reported a total of four.
- Advancing the date also mutated it in place, and that Date object is the
  one held by storeEndDate and previousResult.end, so the chart's own end
  date moved a day forward on every selection. Not advancing it at all
  fixes both.

Change:
- Pass the chart's end date through unchanged.
- Assert the endpoint's window semantics, which the page depends on.

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

* docs: fill in the PR number in the changelog entry

Context:
- The entry was added before the PR existed, with an XXXX placeholder.

Change:
- Point it at PR #2434.

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

* ui/graphs: record why the KPI end date is not advanced

Context:
- The advance was not arbitrary. Until PR #1909 this function read
  picker.getEndDate(), which is the last day selected, so advancing it by
  a day correctly produced an exclusive end.
- PR #1909 (v0.30.3, January 2026) gave the function start and end
  parameters and had the callers pass the chart's already-exclusive end,
  but kept the advance, which from then on added a day too many.

Change:
- Note that history where the advance used to be, so it does not get put
  back.

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

* ui/static: send the KPI window at the instant it means

Context:
- toIsoStringWithOffset appended the local UTC offset to date.toISOString(),
  which is UTC, without moving the clock time, so... (continued)

11 of 14 new or added lines in 2 files covered. (78.57%)

17998 of 21316 relevant lines covered (84.43%)

0.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
85.16
7.64% flexmeasures/data/utils.py
Jobs
ID Job ID Ran Files Coverage
1 33537455536.1 01 Sep 2026 05:34PM UTC 180
84.43
GitHub Action Run
Source Files on build 33537455536
  • Tree
  • List 180
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33537455536
  • f1911a96 on github
  • Prev Build on main (#33536780945)
  • Next Build on main (#33548645562)
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