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

kobotoolbox / kpi / 38941658053
86%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-3369-delete-trash-periodic-tasks
DEFAULT BRANCH: master
Ran 16 Oct 2026 05:46PM UTC
Jobs 10
Files 921
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

16 Oct 2026 05:41PM UTC coverage: 83.42% (+0.02%) from 83.403%
38941658053

push

github

web-flow
feat(pagination): add limited-count pagination class DEV-1314 (#7703)

### đŸ“Ŗ Summary
Prepares faster lists on very large accounts: the server can now stop
counting results past a set limit. Nothing changes for users yet.

### 📖 Description
Some lists count every matching item before showing a page, which gets
slow on very large accounts. This adds the piece that lets a list stop
counting at a limit and report "many" instead of an exact number, or
"unknown" if counting takes too long.

It ships switched off. The limit is set so high that every list behaves
exactly as it does today. Lists will start using it, and the limit will
come down, in later changes once the interface is ready. The server
settings endpoint (`/api/v2/environment/`) now reports the limit, so
apps and integrations can show labels like "4999+".

### 💭 Notes
- `LimitedCountPagination` in `kpi/paginators.py` counts with `LIMIT
L+1`: an exact int up to L, `'many'` past it. With a timeout set, the
count runs inside `atomic()` with `set_config('statement_timeout', â€Ļ,
true)` (a `SET LOCAL`), and a `QueryCanceled` from that timeout becomes
`'unknown'`. The next link comes from a one-row peek shared with
`NoCountPagination` (`PeekNextPageMixin`), so it never needs the count.
- Two env settings: `API_LIMITED_COUNT_MAX` (default 1,000,000, which
keeps it inert; DEV-2781 lowers it to 4999) and
`API_LIMITED_COUNT_TIMEOUT` (in seconds, default 0, no scoped timeout).
The timeout is off on purpose, since any value would turn today's slow
counts into `'unknown'` before the frontend handles it. It gets a
measured value when the cap comes down.
- No endpoint uses the class yet (DEV-2627, DEV-2628, DEV-2629), so the
only API change is `limited_count_max_rows` in `/environment`.
- Not supported: running inside an outer transaction (the scoped timeout
would outlive the count) and `distinct(*fields)`. No list view does
either today.

### 👀 Preview steps
1. â„šī¸ on Main, any account (the endpoint also answers... (continued)

10620 of 13946 branches covered (76.15%)

17 of 59 new or added lines in 5 files covered. (28.81%)

4 existing lines in 2 files now uncovered.

33810 of 40530 relevant lines covered (83.42%)

5.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
41
32.57
-2.77% kpi/paginators.py
1
44.07
0.0% kpi/views/v2/environment.py

Coverage Regressions

Lines Coverage ∆ File
3
0.0
-100.0% kobo/settings/testing_no_stripe.py
1
76.27
0.0% kobo/apps/user_reports/utils/migrations.py
Jobs
ID Job ID Ran Files Coverage
1 38941658053.1 16 Oct 2026 05:46PM UTC 918
44.75
2 38941658053.2 16 Oct 2026 05:47PM UTC 916
52.86
3 38941658053.3 16 Oct 2026 05:47PM UTC 916
49.6
4 38941658053.4 16 Oct 2026 05:48PM UTC 916
43.48
5 38941658053.5 16 Oct 2026 05:48PM UTC 918
50.85
6 38941658053.6 16 Oct 2026 05:49PM UTC 918
54.1
7 38941658053.7 16 Oct 2026 05:49PM UTC 919
68.07
8 38941658053.8 16 Oct 2026 05:50PM UTC 918
59.38
9 38941658053.9 16 Oct 2026 05:51PM UTC 916
58.31
10 38941658053.10 16 Oct 2026 05:54PM UTC 921
70.5
Source Files on build 38941658053
  • Tree
  • List 921
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 8f8ba86c on github
  • Prev Build on main (#38922012581)
  • Next Build on main (#38943318518)
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