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

FlexMeasures / flexmeasures / 24003009626
78%
main: 81%

Build:
Build:
LAST BUILD BRANCH: chore/upgrade-dependencies-after-v0.33
DEFAULT BRANCH: main
Ran 05 Apr 2026 06:01PM UTC
Jobs 1
Files 163
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

05 Apr 2026 01:57PM UTC coverage: 77.848% (+0.05%) from 77.794%
24003009626

Pull #1985

github

web-flow
fix(migration): handle duplicate DataSource rows and simplify downgrade

Upgrade: before updating attributes_hash values, detect groups of DataSource
rows that share the same normalised unique key (after JSONB sorting). For each
such conflict group the newest row (highest id) is kept clean; older duplicates
get a synthetic {"flexmeasures-hash-conflict": N} attribute so their hash stays
unique -- avoiding a UniqueConstraint violation without touching timed_belief.

Downgrade: removed the hash-recomputation loop. PostgreSQL JSONB stores object
keys in alphabetical order, so json.dumps(attrs) and
json.dumps(attrs, sort_keys=True) produce the same string for any JSONB-round-
tripped attributes -- making the old loop a no-op. The downgrade is now an
intentional pass with an explanatory docstring.

Agent-Logs-Url: https://github.com/FlexMeasures/flexmeasures/sessions/c6f63d53-58a6-4dc3-9710-7e5846770626

Co-authored-by: Flix6x <30658763+Flix6x@users.noreply.github.com>
Pull Request #1985: Add "Create forecast" button to sensor page

22 of 24 new or added lines in 4 files covered. (91.67%)

3 existing lines in 1 file now uncovered.

11597 of 14897 relevant lines covered (77.85%)

0.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
91.57
-1.77% flexmeasures/data/models/forecasting/utils.py

Coverage Regressions

Lines Coverage ∆ File
3
82.35
0.0% flexmeasures/data/services/sensors.py
Jobs
ID Job ID Ran Files Coverage
1 24003009626.1 05 Apr 2026 06:01PM UTC 163
77.85
GitHub Action Run
Source Files on build 24003009626
  • Tree
  • List 163
  • Changed 8
  • Source Changed 6
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24003009626
  • Pull Request #1985
  • PR Base - main (#23806253080)
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