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

FlexMeasures / flexmeasures / 35924750213
85%

Build:
DEFAULT BRANCH: main
Ran 23 Sep 2026 09:58PM UTC
Jobs 1
Files 186
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

23 Sep 2026 09:49PM UTC coverage: 85.902%. Remained the same
35924750213

push

github

web-flow
Fix: default view for automations page (#2582)

* api/v3_0: accept "Automations" as a default asset view

Context:
- The asset breadcrumb offers Automations alongside the other asset views,
  so its pages show the same "Set as default view" checkbox.
- The endpoint behind that checkbox validated against a list that was never
  extended when the Automations view was added, so ticking it returned 422
  and the next asset click still opened Context.

Change:
- Added "Automations" to the accepted names, to the documented enum and to
  the endpoint's example values, and regenerated the OpenAPI spec.
- Recorded on the schema which list it has to stay in sync with, and why
  the set is closed: a stored name addresses a route on AssetCrudUI.

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* ui/static: report a view preference the server refused

Context:
- Both view-preference helpers passed their response straight to json(),
  and fetch rejects only on a network-level failure, so a 4xx or 5xx was
  parsed and dropped: no toast, no console line, and the checkbox kept the
  tick the click had given it.
- The legend helper reloaded the page either way, so a refusal redrew the
  old setting and read as the toggle bouncing back.

Change:
- Extracted the error normalisation that confirmAndFetch already did into
  rejectIfNotOk, and gave both helpers that check.
- Read the body through extractApiErrorMessage, which the context and
  properties pages already use, so a validation error reaches the user as
  the fields it named rather than as "[object Object]".
- On a refusal, put the checkbox back to what the server still has and
  report that message as an error toast.
- Reload for the legend preference only once it was stored.

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* api/v3_0/tests: cover storing a default asset view

Context:
- The endpoint had no test at all, which is how the Automations view could
  be left ... (continued)

1 of 1 new or added line in 1 file covered. (100.0%)

19602 of 22819 relevant lines covered (85.9%)

0.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35924750213.1 23 Sep 2026 09:58PM UTC 186
85.9
GitHub Action Run
Source Files on build 35924750213
  • Tree
  • List 186
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35924750213
  • b2ce777c on github
  • Prev Build on main (#35831474736)
  • Next Build on main (#35992145802)
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