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

kobotoolbox / kpi / 40872844392
86%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 29 Oct 2026 12:27PM UTC
Jobs 10
Files 934
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

29 Oct 2026 12:23PM UTC coverage: 84.079%. Remained the same
40872844392

push

github

web-flow
feat(pagination): make the capped count the default for list endpoints DEV-2628 (#7719)

### 📣 Summary
Prepares faster lists on large accounts: every paginated list can stop
counting past a set limit.

### 📖 Description
Before it shows a page, a list counts every item that matches: projects,
form versions, logs, team members, imports, exports and so on. On large
accounts and teams that count gets slow.

Every paginated list now counts the same way as the capped data list:
past a set limit it reports "many" instead of an exact number. The limit
is set far above any real list, so every list keeps its exact count
until the screens can show "many".

### 💭 Notes
- `DEFAULT_PAGINATION_CLASS` is now `LimitedCountPagination`, so every
list that doesn't pick its own paginator gets the capped count: the 13
busiest from the ticket plus the rest (imports, tags, invites, exports,
files, hooks, languages, Stripe products…). Still explicit: the access
log and project history (`AuditLogViewSet` sets `NoCountPagination`) and
the team `assets` action (`AssetPagination`).
- Kept exact on purpose: `ScimPagination` (SCIM needs an integer
`totalResults`) and `PaginatedApiField` (`deployed_versions.count` feeds
numeric checks in the frontend).
- `LimitedCountPagination.get_count` narrows to `pk` only for a DISTINCT
model queryset (`query.distinct and query.default_cols`), where
comparing every column would detoast `Asset.content`. A `values()`
queryset is counted as is: `/access-logs/me/` groups submissions per
hour with `values().annotate()`, and selecting `pk` there put `id` in
the GROUP BY (426 groups came back as 536 on local data).
- `AssetPagination` inherits the capped count. Its old count loaded
every visible asset id, and the `@cache_for_request` key ran `repr()` on
the queryset, which fetched a page and its prefetches. The asset list
now runs 4 fewer queries (31 → 27, `test_query_counts` floor lowered to
match). That id helper had no other live caller, so it goes,... (continued)

10884 of 14126 branches covered (77.05%)

25 of 37 new or added lines in 6 files covered. (67.57%)

2726 existing lines in 78 files now uncovered.

34522 of 41059 relevant lines covered (84.08%)

5.67 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
42.34
-1.04% kpi/renderers.py
4
73.3
9.08% kpi/paginators.py
2
59.73
30.89% kpi/views/v2/asset.py

Coverage Regressions

Lines Coverage ∆ File
312
0.0
-91.23% kobo/apps/openrosa/apps/viewer/pandas_mongo_bridge.py
279
46.13
-41.52% kobo/apps/openrosa/libs/utils/logger_tools.py
209
19.68
-56.33% kobo/apps/openrosa/libs/utils/export_tools.py
206
0.0
-86.19% kobo/apps/openrosa/libs/utils/briefcase_client.py
93
42.11
-48.95% kobo/apps/openrosa/apps/api/viewsets/xform_list_api.py
87
0.0
-87.88% kobo/apps/openrosa/libs/utils/backup_tools.py
70
64.46
-24.39% kobo/apps/openrosa/apps/logger/xform_instance_parser.py
66
33.33
-59.46% kobo/apps/openrosa/apps/viewer/views.py
64
0.0
-64.0% kobo/apps/openrosa/apps/logger/tasks.py
64
42.22
-47.41% kobo/apps/openrosa/apps/logger/utils/counters.py
63
33.96
-59.43% kobo/apps/openrosa/apps/api/viewsets/briefcase_api.py
59
48.31
-50.0% kobo/apps/openrosa/apps/api/viewsets/xform_submission_api.py
58
0.0
-90.63% kobo/apps/openrosa/libs/data/query.py
57
30.5
-28.5% kpi/utils/xml.py
54
26.13
-48.65% kobo/apps/openrosa/apps/logger/views.py
49
35.71
-29.17% kobo/apps/openrosa/apps/main/models/meta_data.py
45
45.35
-16.73% kobo/apps/openrosa/apps/viewer/models/data_dictionary.py
40
0.0
-40.82% kobo/apps/openrosa/apps/viewer/xls_writer.py
40
23.29
-54.79% kobo/apps/openrosa/libs/utils/image_tools.py
38
24.14
-32.76% kobo/apps/openrosa/apps/viewer/tasks.py
37
51.22
-45.12% kobo/apps/openrosa/libs/serializers/xform_serializer.py
36
30.19
-67.92% kobo/apps/openrosa/apps/logger/import_tools.py
34
56.67
-37.78% kobo/apps/openrosa/libs/renderers/renderers.py
33
49.02
-32.35% kobo/apps/openrosa/apps/viewer/models/export.py
33
61.25
-13.75% kobo/apps/openrosa/apps/viewer/models/parsed_instance.py
30
0.0
-75.0% kobo/apps/openrosa/apps/django_digest_backends/cache.py
28
0.0
-27.72% kpi/password_validation.py
27
34.0
-54.0% kobo/apps/data_collectors/authentication.py
26
27.78
-72.22% kobo/apps/openrosa/libs/utils/decorators.py
25
63.71
-20.16% kobo/apps/openrosa/apps/logger/models/attachment.py
24
72.04
-11.37% kobo/apps/openrosa/apps/logger/models/xform.py
24
29.67
-26.37% kobo/apps/openrosa/libs/utils/user_auth.py
24
32.88
-16.44% kobo/apps/openrosa/libs/utils/viewer_tools.py
23
70.77
-11.79% kobo/apps/openrosa/apps/logger/models/instance.py
22
36.84
-57.89% kpi/parsers.py
20
43.9
-48.78% kobo/apps/openrosa/libs/filters.py
17
41.94
-54.84% kobo/apps/openrosa/libs/authentication.py
16
58.33
-13.33% kobo/apps/openrosa/libs/utils/middleware.py
16
74.12
-9.41% kpi/utils/django_orm_helper.py
15
20.0
-60.0% kobo/apps/openrosa/apps/api/utils/xml.py
15
31.71
-36.59% kobo/apps/openrosa/apps/logger/xform_fs.py
15
67.62
-14.29% kpi/utils/object_permission.py
14
81.45
-11.29% kobo/apps/openrosa/apps/logger/signals.py
14
84.73
-10.69% kobo/apps/openrosa/apps/logger/utils/instance.py
14
44.0
-56.0% kobo/apps/openrosa/libs/utils/model_tools.py
13
69.89
-2.92% kobo/apps/audit_log/models.py
13
55.13
-16.67% kpi/authentication.py
13
33.33
-48.15% kpi/utils/ssrf.py
11
54.29
-31.43% kpi/utils/form_versions.py
11
45.16
-17.74% kpi/views/v2/attachment.py
10
36.14
0.0% kpi/utils/storage.py
9
56.82
-20.45% kobo/apps/data_collectors/signals.py
9
47.62
-21.43% kobo/apps/markdownx_uploader/models.py
8
51.69
-1.28% kpi/deployment_backends/openrosa_backend.py
7
67.74
-22.58% kobo/apps/data_collectors/models.py
7
30.56
-6.48% kobo/apps/openrosa/apps/api/tools.py
7
31.25
-43.75% kobo/apps/openrosa/libs/utils/string.py
7
68.33
-3.17% kpi/utils/mongo_helper.py
6
69.57
-26.09% kobo/apps/openrosa/libs/permissions.py
5
33.1
-3.52% kobo/apps/mass_emails/user_queries.py
5
84.75
-8.47% kobo/apps/openrosa/apps/logger/exceptions.py
5
0.0
-38.46% kobo/apps/openrosa/apps/main/context_processors.py
5
50.0
-50.0% kobo/apps/openrosa/libs/mixins/openrosa_headers_mixin.py
5
73.42
-0.85% kpi/models/asset.py
5
48.89
13.33% kpi/utils/urls.py
4
83.57
-2.86% kobo/apps/audit_log/signals.py
4
45.45
-36.36% kobo/apps/openrosa/koboform/__init__.py
4
0.0
-100.0% kobo/apps/openrosa/libs/utils/storage.py
3
80.0
-20.0% kobo/apps/openrosa/apps/viewer/signals.py
3
60.0
-30.0% kobo/apps/openrosa/libs/serializers/data_serializer.py
3
60.0
-30.0% kpi/mixins/mfa.py
2
80.0
-5.71% kobo/urls.py
2
63.64
-3.64% kpi/signals.py
1
53.13
-3.13% kobo/apps/accounts/mfa/utils.py
1
75.0
-25.0% kobo/apps/audit_log/mixins.py
1
76.02
-0.27% kpi/mixins/object_permission.py
1
42.34
-1.04% kpi/renderers.py
1
81.25
-6.25% kpi/utils/drf_exceptions.py
Jobs
ID Job ID Ran Files Coverage
1 40872844392.1 29 Oct 2026 12:27PM UTC 929
55.52
2 40872844392.2 29 Oct 2026 12:28PM UTC 929
52.75
3 40872844392.3 29 Oct 2026 12:29PM UTC 931
51.3
4 40872844392.4 29 Oct 2026 12:30PM UTC 931
54.03
5 40872844392.5 29 Oct 2026 12:30PM UTC 929
49.98
6 40872844392.6 29 Oct 2026 12:30PM UTC 931
58.97
7 40872844392.7 29 Oct 2026 12:30PM UTC 929
57.85
8 40872844392.8 29 Oct 2026 12:30PM UTC 931
57.07
9 40872844392.9 29 Oct 2026 12:31PM UTC 934
66.82
10 40872844392.10 29 Oct 2026 12:33PM UTC 932
64.39
Source Files on build 40872844392
  • Tree
  • List 934
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • dc9e4d32 on github
  • Prev Build on main (#40870507338)
  • Next Build on main (#40930615355)
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