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

FlexMeasures / flexmeasures / 29261567571
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: combo/no-zero-viz-opmodes-soc-value
DEFAULT BRANCH: main
Ran 13 Jul 2026 03:33PM UTC
Jobs 1
Files 169
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

13 Jul 2026 02:47PM UTC coverage: 81.466% (-0.02%) from 81.482%
29261567571

Pull #2306

github

Flix6x
feat: move per-account rate limit overrides to a Plan model

Replace Account.attributes["rate_limits"] with a first-class Plan
table (Account.plan_id FK), per Nicolas' review on PR #2306. A plan
holds default_rate_limit, trigger_rate_limit and rate_limit_key
(Enum), plus not-yet-enforced quota columns (max_users, max_assets,
max_clients) as groundwork for a follow-up PR.

The trigger key resolution now falls back to the server config (and
ultimately to "account+asset") instead of raising, so a bad key value
can never turn into a 500 on every request for an account.
Pull Request #2306: Rate limiting for the API, and for scheduling and forecasting triggers in particular

106 of 112 new or added lines in 7 files covered. (94.64%)

126 existing lines in 18 files now uncovered.

14461 of 17751 relevant lines covered (81.47%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
93.42
flexmeasures/api/common/rate_limiting.py
1
90.48
-0.7% flexmeasures/data/models/user.py

Coverage Regressions

Lines Coverage ∆ File
33
47.57
-0.09% flexmeasures/api/v3_0/__init__.py
16
83.49
-6.23% flexmeasures/api/v3_0/accounts.py
11
73.53
-3.44% flexmeasures/data/schemas/account.py
11
79.63
-12.37% flexmeasures/ui/views/accounts.py
8
92.38
-0.84% flexmeasures/auth/policy.py
8
91.25
-0.09% flexmeasures/data/services/scheduling.py
7
98.77
0.0% flexmeasures/conftest.py
6
84.31
1.62% flexmeasures/api/common/implementations.py
5
90.16
1.93% flexmeasures/data/schemas/utils.py
4
77.42
0.0% flexmeasures/api/v3_0/jobs.py
4
94.87
0.19% flexmeasures/ui/__init__.py
3
66.67
-3.7% flexmeasures/auth/decorators.py
3
97.01
0.0% flexmeasures/data/models/forecasting/pipelines/base.py
2
90.48
-0.7% flexmeasures/data/models/user.py
2
86.3
-2.74% flexmeasures/ui/utils/breadcrumb_utils.py
1
94.12
0.0% flexmeasures/data/models/task_runs.py
1
64.52
-0.81% flexmeasures/data/queries/utils.py
1
90.91
-0.76% flexmeasures/data/services/scheduling_result.py
Jobs
ID Job ID Ran Files Coverage
1 29261567571.1 13 Jul 2026 03:33PM UTC 169
81.47
GitHub Action Run
Source Files on build 29261567571
  • Tree
  • List 169
  • Changed 23
  • Source Changed 20
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29261567571
  • Pull Request #2306
  • PR Base - main (#29204895686)
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