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

FlexMeasures / flexmeasures / 29084653844
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: feat/materialized-veiws
DEFAULT BRANCH: main
Ran 10 Jul 2026 10:10AM UTC
Jobs 1
Files 168
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

10 Jul 2026 09:54AM UTC coverage: 81.438% (+0.03%) from 81.408%
29084653844

Pull #2277

github

Flix6x
feat: define intermediate power constraints via DB flex-models on the asset tree

Extend the storage flex-model's group field to also accept {"asset": <id>},
so a group can be identified by an asset-keyed flex-model entry - the form
that DB-stored flex-models naturally produce. This makes intermediate power
constraints fully definable via an asset tree with stored flex-models, with
an empty flex-model in the scheduling trigger.

- Asset-referenced group entries define no power sensor of their own; the
  group's scheduled aggregate power is saved via the entry's consumption
  and/or production output sensors, following the usual output-sensor
  conventions (full profile on a single sensor; clip-split when both given).
- Sensor-referenced groups keep saving the aggregate to the group power
  sensor, and may now also define output sensors.
- The UI asset flex-model editor recommends the parent asset when editing a
  child's group field (one-click suggestion), and hints in both the parent's
  and children's editors when the parent's flex-model defines power-capacity.
- New tutorial: toy example for intermediate power constraints, driven
  entirely by DB-stored flex-models.

Bug fixes uncovered along the way:
- AssetTriggerSchema.check_flex_model_sensors raised KeyError on asset-only
  flex-model entries.
- The freeze_server_now test fixture leaked its server_now monkeypatch into
  all subsequently run tests in the same process, causing order-dependent
  duplicate-key failures when scheduling jobs saved beliefs with identical
  (frozen) belief times.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TAad46Ayg86DHpL6nY54sX
Signed-off-by: F.N. Claessen <claessen@seita.nl>
Pull Request #2277: Define intermediate power constraints via DB flex-models on the asset tree

122 of 134 new or added lines in 5 files covered. (91.04%)

2 existing lines in 2 files now uncovered.

14351 of 17622 relevant lines covered (81.44%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
91.08
-0.1% flexmeasures/data/models/planning/storage.py
5
98.44
-0.33% flexmeasures/conftest.py
1
93.44
-0.29% flexmeasures/data/schemas/scheduling/__init__.py

Coverage Regressions

Lines Coverage ∆ File
1
98.44
-0.33% flexmeasures/conftest.py
1
91.08
-0.1% flexmeasures/data/models/planning/storage.py
Jobs
ID Job ID Ran Files Coverage
1 29084653844.1 10 Jul 2026 10:10AM UTC 168
81.44
GitHub Action Run
Source Files on build 29084653844
  • Tree
  • List 168
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29084653844
  • Pull Request #2277
  • PR Base - fix/intermediate-power-constraints (#29082132675)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc