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

kobotoolbox / kpi / 39310077726
86%
master: 76%

Build:
Build:
LAST BUILD BRANCH: release/2.026.43
DEFAULT BRANCH: master
Ran 19 Oct 2026 07:23PM 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

19 Oct 2026 07:19PM UTC coverage: 83.415% (-0.005%) from 83.42%
39310077726

push

github

web-flow
feat(auth): TOS signup checkbox DEV-3104 (#7702)

### πŸ“£ Summary

Behind feature flag! Fixed account creation being impossible on servers
that require agreeing to TOS but don't publish a link to them β€” the
agreement checkbox was missing, so every submission was rejected.

### πŸ’­ Notes

The form gated the checkbox on the document URLs, while
`SignupExtraFieldsForm.__init__` requires the field based on the
sitewide message.

Changes here:

- `useAuthEnvironment.ts` β€” exposes
`terms_of_service__sitewidemessage__exists`
- `legalAgreement.tsx` β€” gate, label and markup collapsed into a
`TermsOfServiceCheckbox`
- `RegisterForm.tsx`, `ProviderSignupForm.tsx` β€” both render it and key
their validation rule off the same flag. Provider signup posts to the
same form class, so it had the identical bug.
- `RegisterRoute.stories.tsx` β€” updated and added stories to test the
issue

@jamesrkiger issue out of scope - if no URL is published there's nothing
to click, even though the terms text exists as the sitewide message -
what do we do with this?

### πŸ‘€ Preview steps

1. ℹ️ Django admin β†’ Hub β†’ Sitewide messages β†’ add one with slug
`terms_of_service` and any body β€” this is what makes the agreement
mandatory
2. ℹ️ Django admin β†’ Constance β†’ Config β†’ leave `TERMS_OF_SERVICE_URL`
and `PRIVACY_POLICY_URL` empty
3. log out and go to `#/auth/signup`
4. πŸ”΄ [on main] there's no "I agree with the…" checkbox at all; fill
everything in and submit β†’ rejected, although nothing visibly wrong with
the form
5. 🟒 [on PR] "I agree with the Terms of Service" is there, as plain
unclickable text β€” you're agreeing on trust, which is between you and
whoever forgot to fill in the URL
6. tick it, fill the form in, submit β†’ 🟒 account created, "Confirm your
email address"
7. set both URLs in Constance β†’ Config, reload signup
8. 🟒 the checkbox now names both documents, both clickable
9. delete the `terms_of_service` sitewide message, reload signup
10. 🟒 no checkbox, and signup still goes through β€” t... (continued)

10619 of 13946 branches covered (76.14%)

33808 of 40530 relevant lines covered (83.41%)

5.5 hits per line

Coverage Regressions

Lines Coverage βˆ† File
312
0.0
-91.23% kobo/apps/openrosa/apps/viewer/pandas_mongo_bridge.py
271
45.89
-40.51% 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
121
25.41
-66.85% kobo/apps/openrosa/apps/logger/utils/attachment_restore.py
87
0.0
-87.88% kobo/apps/openrosa/libs/utils/backup_tools.py
70
37.04
-51.85% kobo/apps/openrosa/apps/logger/utils/counters.py
67
42.11
-35.26% kobo/apps/openrosa/apps/api/viewsets/xform_list_api.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
62
33.96
-58.49% kobo/apps/openrosa/apps/api/viewsets/briefcase_api.py
58
0.0
-90.63% kobo/apps/openrosa/libs/data/query.py
51
23.66
-38.93% kobo/apps/openrosa/apps/logger/utils/instance.py
49
28.57
-43.75% kobo/apps/openrosa/apps/logger/views.py
45
54.03
-36.29% kobo/apps/openrosa/apps/logger/signals.py
45
44.3
6.26% kpi/deployment_backends/openrosa_backend.py
43
46.1
-15.99% kobo/apps/openrosa/apps/viewer/models/data_dictionary.py
41
40.48
-24.4% kobo/apps/openrosa/apps/main/models/meta_data.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
39
58.33
-16.25% kobo/apps/openrosa/apps/viewer/models/parsed_instance.py
38
24.14
-32.76% kobo/apps/openrosa/apps/viewer/tasks.py
37
48.31
-31.36% kobo/apps/openrosa/apps/api/viewsets/xform_submission_api.py
36
24.49
-73.47% kobo/apps/openrosa/apps/logger/import_tools.py
33
57.26
-26.61% kobo/apps/openrosa/apps/logger/models/attachment.py
33
49.02
-32.35% kobo/apps/openrosa/apps/viewer/models/export.py
31
51.22
-37.8% kobo/apps/openrosa/libs/serializers/xform_serializer.py
30
78.05
-10.45% kobo/apps/openrosa/apps/logger/xform_instance_parser.py
29
47.87
2.7% kobo/apps/audit_log/models.py
29
56.67
-32.22% kobo/apps/openrosa/libs/renderers/renderers.py
28
28.39
-9.03% kpi/views/v2/data.py
27
0.0
-67.5% kobo/apps/openrosa/apps/django_digest_backends/cache.py
27
62.73
-2.73% kpi/permissions.py
26
27.78
-72.22% kobo/apps/openrosa/libs/utils/decorators.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
19
55.0
-14.17% kobo/apps/openrosa/libs/utils/middleware.py
18
43.9
-43.9% 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
31.71
-36.59% kobo/apps/openrosa/apps/logger/xform_fs.py
15
69.76
2.93% kpi/utils/mongo_helper.py
15
64.76
-7.62% kpi/utils/object_permission.py
14
44.0
-56.0% kobo/apps/openrosa/libs/utils/model_tools.py
13
52.56
-15.38% kpi/authentication.py
13
57.0
17.5% kpi/utils/xml.py
12
75.38
-6.15% kobo/apps/openrosa/apps/logger/models/instance.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
7
30.56
-6.48% kobo/apps/openrosa/apps/api/tools.py
7
41.67
-58.33% kobo/apps/openrosa/apps/logger/utils/attachment.py
7
66.35
12.71% kpi/deployment_backends/base_backend.py
6
83.05
-10.17% kobo/apps/openrosa/apps/logger/exceptions.py
6
69.57
-26.09% kobo/apps/openrosa/libs/permissions.py
5
34.0
-10.0% kobo/apps/data_collectors/authentication.py
5
33.1
-3.52% kobo/apps/mass_emails/user_queries.py
5
20.0
-20.0% kobo/apps/openrosa/apps/api/utils/xml.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
0.0
-38.46% kobo/apps/openrosa/apps/main/context_processors.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
84.85
-6.06% kobo/urls.py
1
78.57
44.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
31.25
-6.25% kobo/apps/openrosa/libs/utils/string.py
1
96.67
-3.33% kpi/fields/kpi_uid.py
1
91.48
29.98% kpi/models/asset.py
1
52.97
9.59% kpi/renderers.py
1
94.12
24.12% kpi/utils/django_orm_helper.py
1
94.44
-5.56% kpi/utils/files.py
Jobs
ID Job ID Ran Files Coverage
1 39310077726.1 19 Oct 2026 07:23PM UTC 916
52.86
2 39310077726.2 19 Oct 2026 07:24PM UTC 916
49.6
3 39310077726.3 19 Oct 2026 07:25PM UTC 916
43.48
4 39310077726.4 19 Oct 2026 07:25PM UTC 918
54.1
5 39310077726.5 19 Oct 2026 07:26PM UTC 918
44.75
6 39310077726.6 19 Oct 2026 07:27PM UTC 918
50.85
7 39310077726.7 19 Oct 2026 07:27PM UTC 916
58.31
8 39310077726.8 19 Oct 2026 07:29PM UTC 919
68.07
9 39310077726.9 19 Oct 2026 07:30PM UTC 918
59.38
10 39310077726.10 19 Oct 2026 07:31PM UTC 921
70.5
Source Files on build 39310077726
  • Tree
  • List 921
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage βˆ† File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 0f62eac1 on github
  • Prev Build on main (#39292791416)
  • Next Build on main (#39434816994)
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