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

FlexMeasures / flexmeasures / 30108710689
83%

Build:
DEFAULT BRANCH: main
Ran 24 Jul 2026 04:46PM 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

24 Jul 2026 04:20PM UTC coverage: 82.885% (+0.02%) from 82.869%
30108710689

push

github

web-flow
feat(ui): edit flex-context commitments in the context modal (#2287)

* refactor(ui): drive flex-context field types from UI_FLEX_CONTEXT_SCHEMA

Add a 'types' key to every UI_FLEX_CONTEXT_SCHEMA entry (same convention
as UI_FLEX_MODEL_SCHEMA: typeTwo = single sensor reference, typeThree =
fixed value or sensor, typeFour = list of sensors), resolving the todo
about the field type living hardcoded in asset_context.html in 3 places.
The template now derives its sensor-only check from the schema, so new
context fields (e.g. the upcoming commodities and commitments editors)
only need a schema entry. No behaviour change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016MLCUiSdXDqDBmg8GbYp1B

* feat(ui): edit per-commodity flex-contexts through a commodity tab bar (#2230)

The flex-context modal gains a pill bar: 'electricity' (the top-level
context) plus one pill per entry of the commodities list, with add/remove
affordances. The existing card editor is reused per scope; the add-field
dropdown only offers fields that CommodityFlexContextSchema shares (driven
by a new per-commodity flag on UI_FLEX_CONTEXT_SCHEMA entries). Saving
PATCHes the whole flex-context including the nested commodities list.

Also documents the commodities field (new COMMODITIES metadata + docs row)
and removes it from the UI-schema exclusion list.

Verified end-to-end against a live server with a seeded multi-commodity
asset: per-scope editing, adding/removing commodities, duplicate-name
rejection, and round-tripping through PATCH + reload.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016MLCUiSdXDqDBmg8GbYp1B

* fix: namespace user commitment names with a custom: prefix

A user commitment named e.g. 'electricity net energy' would shadow the
scheduler's internal commitment of the same name in the name-keyed
commitment-costs dict of the scheduling results. Prefix user name... (continued)

26 of 26 new or added lines in 3 files covered. (100.0%)

1 existing line in 1 file now uncovered.

15889 of 19170 relevant lines covered (82.88%)

0.83 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
92.79
-0.17% flexmeasures/data/schemas/scheduling/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 30108710689.1 24 Jul 2026 04:46PM UTC 171
82.88
GitHub Action Run
Source Files on build 30108710689
  • Tree
  • List 171
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30108710689
  • 5bac1abc on github
  • Prev Build on main (#30104917682)
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