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

FlexMeasures / flexmeasures / 40681912910
87%

Build:
DEFAULT BRANCH: main
Ran 28 Oct 2026 11:50AM UTC
Jobs 1
Files 195
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

28 Oct 2026 11:41AM UTC coverage: 87.049% (+0.07%) from 86.976%
40681912910

push

github

web-flow
Note group membership changes in the group's audit log (#2723)

* data/services: note group membership changes on the group's asset

A device joins a group through its own flex-model, so the group's asset was never told.
A session listener now writes an audit log entry on the group's asset when a device joins or leaves it,
when a member moves to another site, and on the member when its group is deleted,
whichever path (API, UI, CLI, script) made the change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xg2vUMk3Sz7gitXN2FjqXJ
Signed-off-by: F.N. Claessen <felix@seita.nl>

* changelog: link PR #2723

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xg2vUMk3Sz7gitXN2FjqXJ
Signed-off-by: F.N. Claessen <felix@seita.nl>

* Note nothing for a group ID that is no integer the database can hold, rather than failing the flush

A script or plugin may write any value as a group reference, and looking such an ID up made every insert, edit, move or delete of that asset fail,
including the edit that would repair it.

Suggested-by: Ahmad-Wahid
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xg2vUMk3Sz7gitXN2FjqXJ
Signed-off-by: F.N. Claessen <felix@seita.nl>

* Drop the changes found before a flush that failed, rather than noting them with the next flush

The changes waiting in the session were never made, so a script that rolls back and carries on would note them anyway,
for a new member even without its ID.

Suggested-by: Ahmad-Wahid
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xg2vUMk3Sz7gitXN2FjqXJ
Signed-off-by: F.N. Claessen <felix@seita.nl>

* Note membership changes only where the member and its group belong to one organisation

A group reference is only checked to exist, so a device could name another organisation's asset as its g... (continued)

164 of 168 new or added lines in 4 files covered. (97.62%)

22583 of 25943 relevant lines covered (87.05%)

0.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
98.15
flexmeasures/data/services/group_membership_audit.py
1
55.99
0.14% flexmeasures/cli/data_delete.py
Jobs
ID Job ID Ran Files Coverage
1 40681912910.1 28 Oct 2026 11:50AM UTC 195
87.05
GitHub Action Run
Source Files on build 40681912910
  • Tree
  • List 195
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40681912910
  • 6a4c5fbe on github
  • Prev Build on main (#40675623441)
  • Next Build on main (#40682281431)
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