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

FlexMeasures / flexmeasures / 39134190831
88%

Build:
DEFAULT BRANCH: main
Ran 18 Oct 2026 02:12PM UTC
Jobs 1
Files 192
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

18 Oct 2026 02:02PM UTC coverage: 86.731% (+0.02%) from 86.709%
39134190831

push

github

web-flow
Admin command to reset an account's rate limits (#2680)

* Count triggers per account only, and deprecate FLEXMEASURES_API_RATE_LIMIT_KEY

Counting triggers per account and asset, or per user, made plans harder to show and to support.
The setting is still accepted, but ignored, with a warning at startup if it asks for anything other than "account".

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>

* Drop plan.rate_limit_key, now that triggers are always counted per account

Removes the column and its enum type in a migration, the --rate-limit-key option from add plan and edit plan, the column from show plans, and the trigger scope from the account page.

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>

* Changelog: triggers are counted per organisation only

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>

* Add flexmeasures edit reset-rate-limit, to reset an account's rate limits

Context:
- #2676: an account whose integration was fixed after it ran into a rate limit had to wait out the window

Change:
- reset_rate_limits() clears the counters of the limits in effect for the account (its plan's or the server-wide ones), as the limit's amount is part of the counter's key
- The trigger counter is the account's; the default limit is still counted per user, so each of the account's users' counters is cleared
- --limit trigger|default resets only one of them, and a limit the account is exempt from is skipped with a warning

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSo5u94LjgXLeMJ51Pja39
Signed-off-by: F.N. Claess... (continued)

59 of 60 new or added lines in 4 files covered. (98.33%)

21851 of 25194 relevant lines covered (86.73%)

0.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
94.51
0.17% flexmeasures/api/common/rate_limiting.py
Jobs
ID Job ID Ran Files Coverage
1 39134190831.1 18 Oct 2026 02:12PM UTC 192
86.73
GitHub Action Run
Source Files on build 39134190831
  • Tree
  • List 192
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39134190831
  • 0144f89d on github
  • Prev Build on main (#39112484824)
  • Next Build on main (#39263719940)
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