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

kobotoolbox / kpi / 39633761410
86%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 21 Oct 2026 04:23PM UTC
Jobs 10
Files 930
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

21 Oct 2026 04:19PM UTC coverage: 83.509% (+0.002%) from 83.507%
39633761410

push

github

web-flow
refactor(auth): cleanup 2fa flow code before switching to allauth DEV-1876 (#7704)

### đŸ“Ŗ Summary

The two-factor authentication section now refreshes as soon as you
change something, so the setup date appears without reloading the page,
and the buttons that submit a token show a spinner while they work.

### 💭 Notes

Changes here:

- **`jsapp/js/actions/mfaActions.ts`** — deleted Reflux code
- **`jsapp/js/account/security/mfa/mfa.api.ts`** (new) — react-query
hooks over the same `/api/v2/auth/mfa/*` endpoints as before - added
TODO comments to adjust code after backend part is fixed in DEV-3109
- **`mfaSection.component.tsx`** — class → function component
- **`mfaModals.tsx`** — class → function component
- **`mfaSection.stories.tsx`, `mfaModals.stories.tsx`,
`endpoints/mfa.mocks.ts`** (new) — few basic stories

### 👀 Preview steps

1. â„šī¸ have an account, 2FA enabled on the instance, and an authenticator
app handy
2. go to Account Settings → Security → Two-factor authentication
3. switch 2FA on, and on the QR screen press "Enter key manually"
4. đŸŸĸ notice the secret key reads normally, then press "Take me back to
QR code"
5. scan the code, type the token from your app, press Next
6. đŸŸĸ [on PR] notice the button shows a spinner while it works
7. 🔴 [on main] notice nothing acknowledges the press until the next
screen appears
8. press "Download codes", then "I saved my codes"
9. 🔴 [on main] notice the "Authenticator app" row has no date beside it
until you reload the page
10. đŸŸĸ [on PR] notice the date is there right away
11. press "Generate new" beside Recovery codes, press Next on the
notice, type a wrong token, press Next
12. đŸŸĸ notice "Incorrect token" under the field and the modal staying put
13. type a correct token, download the new codes, close the modal
14. press "Reconfigure", press Next on the notice, type a correct token
15. đŸŸĸ notice you land straight on a fresh QR code, without the modal
closing and reopening
16. finish the setup, then switch 2... (continued)

10719 of 14054 branches covered (76.27%)

34121 of 40859 relevant lines covered (83.51%)

5.51 hits per line

Coverage Regressions

Lines Coverage ∆ File
39
39.5
-10.5% kpi/utils/xml.py
34
12.68
-47.89% kpi/utils/sluggify.py
32
0.0
0.0% kobo/apps/accounts/adapter.py
26
77.37
-13.68% kobo/apps/openrosa/apps/api/viewsets/xform_list_api.py
22
44.0
-44.0% kobo/apps/data_collectors/authentication.py
22
79.66
-16.1% kobo/apps/openrosa/apps/api/viewsets/xform_submission_api.py
18
30.77
-23.08% kpi/deployment_backends/kc_access/utils.py
11
15.69
-10.78% kobo/apps/data_collectors/utils.py
10
47.73
-18.18% kobo/apps/data_collectors/signals.py
10
40.0
-40.0% kobo/apps/openrosa/apps/api/utils/xml.py
10
38.04
11.4% kpi/deployment_backends/openrosa_backend.py
9
47.62
-21.43% kobo/apps/markdownx_uploader/models.py
9
34.56
-6.62% kpi/utils/autoname.py
9
0.0
-90.0% kpi/utils/fuzzy_int.py
8
86.46
30.95% kobo/apps/openrosa/libs/utils/logger_tools.py
7
67.74
-22.58% kobo/apps/data_collectors/models.py
7
29.09
-12.73% kpi/deployment_backends/openrosa_utils.py
6
89.02
-7.32% kobo/apps/openrosa/libs/serializers/xform_serializer.py
6
37.5
-31.25% kobo/apps/openrosa/libs/utils/string.py
6
62.5
-37.5% kobo/apps/organizations/signals.py
6
72.0
1.17% kpi/urls/__init__.py
5
45.17
1.57% kobo/apps/audit_log/models.py
5
88.89
-4.44% kobo/apps/openrosa/libs/renderers/renderers.py
5
53.51
-2.7% kobo/apps/organizations/models.py
4
47.37
-6.48% kobo/apps/accounts/templatetags/customize_email_content.py
3
67.5
-7.5% kobo/apps/openrosa/apps/django_digest_backends/cache.py
3
70.3
11.44% kpi/mixins/object_permission.py
3
79.31
-2.3% kpi/utils/asset_content_analyzer.py
2
81.54
9.74% kobo/apps/openrosa/apps/logger/models/instance.py
2
87.8
-4.88% kobo/apps/openrosa/libs/filters.py
2
69.17
14.17% kobo/apps/openrosa/libs/utils/middleware.py
2
53.65
9.41% kpi/deployment_backends/base_backend.py
2
52.55
0.51% kpi/mixins/formpack_xlsform_utils.py
2
54.55
0.0% kpi/signals.py
1
92.45
-0.94% kobo/apps/openrosa/apps/api/viewsets/briefcase_api.py
1
88.5
24.04% kobo/apps/openrosa/apps/logger/xform_instance_parser.py
1
76.4
44.94% kpi/deployment_backends/mock_backend.py
1
75.0
-6.25% kpi/utils/drf_exceptions.py
Jobs
ID Job ID Ran Files Coverage
1 39633761410.1 21 Oct 2026 04:23PM UTC 925
49.23
2 39633761410.2 21 Oct 2026 04:24PM UTC 925
52.83
3 39633761410.3 21 Oct 2026 04:25PM UTC 925
43.48
4 39633761410.4 21 Oct 2026 04:26PM UTC 925
58.22
5 39633761410.5 21 Oct 2026 04:26PM UTC 927
44.74
6 39633761410.6 21 Oct 2026 04:26PM UTC 927
54.05
7 39633761410.7 21 Oct 2026 04:27PM UTC 927
50.47
8 39633761410.8 21 Oct 2026 04:29PM UTC 928
68.67
9 39633761410.9 21 Oct 2026 04:30PM UTC 927
59.28
10 39633761410.10 21 Oct 2026 04:31PM UTC 930
71.07
Source Files on build 39633761410
  • Tree
  • List 930
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • f38b27c8 on github
  • Prev Build on main (#39457136072)
  • Next Build on main (#39646710107)
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