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

FlexMeasures / flexmeasures / 29261567571

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

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.31
/flexmeasures/api/common/implementations.py


Source Not Available

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