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

kobotoolbox / kpi / 42672520531
57%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 09 Nov 2026 06:21PM UTC
Jobs 5
Files 890
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

09 Nov 2026 06:15PM UTC coverage: 81.213% (-4.7%) from 85.877%
42672520531

push

github

web-flow
refactor(processing): handle capped list counts DEV-2633 (#7776)

### đŸ“Ŗ Summary

Adjust single processing to remove "Item X of N" position indicator when
list count is not available.

### 💭 Notes

The submission list API can now return `count` as `'many'` (past
`API_LIMITED_COUNT_MAX`) or `'unknown'` (when the count query times
out).
- "Item X of N" is built from two neighbour queries: one for submissions
newer than the current one and one for older. X is the newer count + 1,
and N is both counts + 1. The two counts are capped separately, so if
either one isn't an exact number, the whole position is hidden. We
didn't want to show "Item X" on its own.
- The count area always keeps its space, so the text can come back on a
later load (e.g. after a temporary `'unknown'`) without the header
shifting.
- The loading spinner now sits over the prev/next buttons instead of in
the count area. Whether there will be any text isn't known until loading
finishes, so the spinner goes on the controls that are actually disabled
while loading.
- Added `SelectSubmission.tests.tsx`, covering exact counts, the
first/last item, and `'many'`/`'unknown'` on either side.

### 👀 Preview steps

1. â„šī¸ have an account and a project with at least 4 submissions
containing an audio question
2. open single processing for the audio question on any submission
3. đŸŸĸ notice "Item X of N" with the correct position
4. click the up/down arrows
5. đŸŸĸ notice the spinner shows over the arrows while loading, and the
position updates
6. set `API_LIMITED_COUNT_MAX=1` in the environment and restart the
server
7. open single processing again on any submission
8. đŸŸĸ notice the "Item X of N" text is gone, but its space is kept, so
the question selector doesn't move
9. click the up/down arrows
10. đŸŸĸ notice navigation still works, and the spinner still shows over
the arrows while loading

10005 of 13651 branches covered (73.29%)

32093 of 39517 relevant lines covered (81.21%)

2.83 hits per line

Coverage Regressions

Lines Coverage ∆ File
303
0.0
-91.54% kobo/apps/openrosa/apps/viewer/pandas_mongo_bridge.py
254
48.3
-41.03% kobo/apps/openrosa/libs/utils/logger_tools.py
206
19.7
-62.42% kobo/apps/openrosa/libs/utils/export_tools.py
93
42.11
-48.95% kobo/apps/openrosa/apps/api/viewsets/xform_list_api.py
70
37.04
-51.85% kobo/apps/openrosa/apps/logger/utils/counters.py
66
33.33
-59.46% kobo/apps/openrosa/apps/viewer/views.py
63
33.96
-59.43% kobo/apps/openrosa/apps/api/viewsets/briefcase_api.py
61
0.0
-63.54% kobo/apps/openrosa/apps/logger/tasks.py
59
48.31
-50.0% kobo/apps/openrosa/apps/api/viewsets/xform_submission_api.py
54
24.51
-52.94% kobo/apps/openrosa/apps/logger/views.py
52
57.0
-2.0% kpi/utils/xml.py
51
23.66
-38.93% kobo/apps/openrosa/apps/logger/utils/instance.py
45
54.03
-36.29% kobo/apps/openrosa/apps/logger/signals.py
45
44.26
4.68% kpi/deployment_backends/openrosa_backend.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
28.85
-69.23% kobo/apps/openrosa/apps/logger/import_tools.py
34
47.87
1.57% kobo/apps/audit_log/models.py
34
55.42
-40.96% kobo/apps/openrosa/libs/renderers/renderers.py
33
57.26
-26.61% kobo/apps/openrosa/apps/logger/models/attachment.py
33
52.87
-37.93% kobo/apps/openrosa/apps/viewer/models/export.py
32
61.88
-17.68% kobo/apps/openrosa/apps/viewer/models/data_dictionary.py
32
67.36
-16.58% kobo/apps/openrosa/apps/viewer/models/parsed_instance.py
30
0.0
-75.0% kobo/apps/openrosa/apps/django_digest_backends/cache.py
30
26.67
-50.0% kobo/apps/openrosa/libs/utils/image_tools.py
29
84.88
-11.24% kobo/apps/openrosa/apps/logger/xform_instance_parser.py
29
28.3
-9.12% kpi/views/v2/data.py
27
34.0
-54.0% kobo/apps/data_collectors/authentication.py
27
62.73
-2.73% kpi/permissions.py
26
27.78
-72.22% kobo/apps/openrosa/libs/utils/decorators.py
24
75.13
-12.44% kobo/apps/openrosa/apps/logger/models/xform.py
22
54.92
-16.39% kobo/apps/openrosa/libs/utils/middleware.py
22
32.26
-17.74% kobo/apps/openrosa/libs/utils/viewer_tools.py
22
68.22
-3.74% kpi/utils/mongo_helper.py
21
36.36
-63.64% kobo/apps/openrosa/libs/utils/user_auth.py
20
43.9
-48.78% kobo/apps/openrosa/libs/filters.py
17
16.22
-45.95% kobo/apps/openrosa/apps/logger/utils/database_query.py
17
41.94
-54.84% kobo/apps/openrosa/libs/authentication.py
15
20.0
-60.0% kobo/apps/openrosa/apps/api/utils/xml.py
15
34.38
-46.88% kobo/apps/openrosa/apps/logger/xform_fs.py
15
64.76
-7.62% kpi/utils/object_permission.py
14
76.72
-7.41% kobo/apps/openrosa/apps/logger/models/instance.py
13
52.56
-15.38% kpi/authentication.py
12
58.11
-16.22% kobo/apps/openrosa/apps/main/models/meta_data.py
11
63.57
3.57% kobo/apps/audit_log/signals.py
11
45.16
-17.74% kpi/views/v2/attachment.py
10
30.12
-6.02% kpi/utils/storage.py
9
41.18
-52.94% kpi/utils/viewset_mixins.py
8
50.0
-50.0% kobo/apps/openrosa/libs/utils/model_tools.py
7
32.61
-15.22% kobo/apps/openrosa/apps/api/tools.py
7
41.67
-58.33% kobo/apps/openrosa/apps/logger/utils/attachment.py
7
30.0
-70.0% kobo/apps/openrosa/libs/utils/string.py
7
66.9
13.29% kpi/deployment_backends/base_backend.py
6
83.93
-10.71% kobo/apps/openrosa/apps/logger/exceptions.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
72.22
-27.78% kobo/apps/openrosa/apps/logger/models/daily_xform_submission_counter.py
5
75.0
-25.0% kobo/apps/openrosa/apps/logger/models/monthly_xform_submission_counter.py
5
66.67
-33.33% kobo/apps/openrosa/apps/viewer/signals.py
5
50.0
-50.0% kobo/apps/openrosa/libs/mixins/openrosa_headers_mixin.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
60.0
-30.0% kobo/apps/openrosa/libs/serializers/data_serializer.py
3
60.0
-30.0% kpi/mixins/mfa.py
2
86.49
0.0% kobo/urls.py
1
50.0
-3.13% kobo/apps/accounts/mfa/utils.py
1
81.82
48.05% kobo/apps/audit_log/base_views.py
1
75.0
-25.0% kobo/apps/audit_log/mixins.py
1
92.86
32.14% kobo/apps/audit_log/utils.py
1
96.67
-3.33% kpi/fields/kpi_uid.py
1
92.22
30.46% kpi/models/asset.py
1
53.0
10.14% kpi/renderers.py
1
94.12
22.94% kpi/utils/django_orm_helper.py
1
75.0
-6.25% kpi/utils/drf_exceptions.py
Jobs
ID Job ID Ran Files Coverage
1 42672520531.1 09 Nov 2026 06:21PM UTC 885
54.42
2 42672520531.2 09 Nov 2026 06:22PM UTC 887
51.3
3 42672520531.3 09 Nov 2026 06:22PM UTC 885
49.92
4 42672520531.4 09 Nov 2026 06:22PM UTC 885
59.48
5 42672520531.5 09 Nov 2026 06:23PM UTC 890
68.99
Source Files on build 42672520531
  • Tree
  • List 890
  • Changed 65
  • Source Changed 0
  • Coverage Changed 65
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 68331a02 on github
  • Prev Build on main (#42669932504)
  • Next Build on main (#42682915821)
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