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

FlexMeasures / flexmeasures / 47522962032
89%

Build:
DEFAULT BRANCH: main
Ran 05 Dec 2026 01:15PM UTC
Jobs 1
Files 207
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 Dec 2026 01:03PM UTC coverage: 89.239% (+0.08%) from 89.163%
47522962032

push

github

web-flow
Enforce plan quotas and show usage and retry times (#2748)

* Enforce plan quotas and show usage and retry times

* make CLI respond nicely when plan is breached by adding user/asset or transferring ownership

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

* only count active users to the max_user's plan limit

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

* add / improve plan warnings when restrictions tighten a plan

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

* handle account locking better

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

* move errorWithRetryAfter into ui-utils.js

Signed-off-by: Nicolas Höning <nicolas@seita.nl>

* Lock quota-limited accounts with FOR NO KEY UPDATE

A plain FOR UPDATE also conflicts with the FOR KEY SHARE lock that inserting a row referencing the account takes,
so such inserts elsewhere waited for the quota transaction, and two transactions could deadlock.
FOR NO KEY UPDATE still serialises the quota checks.

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

* Say a plan allows no users, assets or clients, rather than at most 0

The message only reports the current usage when there is any.

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

* Keep the quotas warning about quotas

The sentence on lowering rate limits moves to where plans' rate limits are edited,
and the warning says what the plan tooltip shows instead of telling the reader to check it.

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

* Say organisation, not account, in the note on rate-limit counters

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com... (continued)

242 of 246 new or added lines in 9 files covered. (98.37%)

27075 of 30340 relevant lines covered (89.24%)

0.89 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
98.46
flexmeasures/data/services/plan_quotas.py
1
90.23
0.17% flexmeasures/api/v3_0/users.py
Jobs
ID Job ID Ran Files Coverage
1 47522962032.1 05 Dec 2026 01:15PM UTC 207
89.24
GitHub Action Run
Source Files on build 47522962032
  • Tree
  • List 207
  • Changed 10
  • Source Changed 10
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #47522962032
  • ab9b9019 on github
  • Prev Build on main (#47522768225)
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