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

kobotoolbox / kpi / 18377891641
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 09 Oct 2025 02:04PM UTC
Jobs 2
Files 666
Run time 2min
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

09 Oct 2025 01:26PM UTC coverage: 81.448% (+0.002%) from 81.446%
18377891641

push

github

web-flow
perf(submissions): use `cache_for_request` to compute user usage balances DEV-1140 (#6348)

### πŸ“£ Summary
Cache user usage balances for the duration of a request to avoid
redundant recalculations.


### πŸ“– Description
This change introduces per-request caching for user usage balances using
`cache_for_request`. The result of `get_usage_balances` is now cached
for the lifetime of the current request, preventing multiple redundant
recalculations when it’s called several times for different usage types.

Since balance caching is globally disabled to always reflect the latest
values after submissions or NLP actions, this approach remains safe: the
first call already computes all usage types, and subsequent calls within
the same request reuse the cached result.

6497 of 10192 branches covered (63.75%)

4 of 7 new or added lines in 2 files covered. (57.14%)

1 existing line in 1 file now uncovered.

24551 of 30143 relevant lines covered (81.45%)

1.6 hits per line

New Missed Lines in Diff

Lines Coverage βˆ† File
3
32.5
4.72% kobo/apps/stripe/utils/limit_enforcement.py

Uncovered Existing Lines

Lines Coverage βˆ† File
1
32.5
4.72% kobo/apps/stripe/utils/limit_enforcement.py
Jobs
ID Job ID Ran Files Coverage
1 18377891641.1 09 Oct 2025 02:04PM UTC 666
78.92
2 18377891641.2 09 Oct 2025 02:09PM UTC 666
81.43
Source Files on build 18377891641
  • Tree
  • List 666
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage βˆ† File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • eac87eb3 on github
  • Prev Build on release/2.025.34 (#18358006575)
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