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

kobotoolbox / kpi / 39915801072
57%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 23 Oct 2026 07:12AM UTC
Jobs 10
Files 930
Run time 2min
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

23 Oct 2026 07:07AM UTC coverage: 83.508% (+0.007%) from 83.501%
39915801072

push

github

web-flow
fix(formbuilder): resolve languages when importing library items DEV-3071 (#7707)

### 📣 Summary

Adding a multi-language question or block from the Library no longer
leaves a project with no languages defined. Kobo now asks how the
imported languages should join the ones the form already has.

### 📖 Description

What you get when the languages don't line up:

- The form has no language set yet and the Library item has several: the
import stops, and a button takes you to the project page to set the
languages first
- The form and the item have no language in common: you're told which
languages will be added, and that the existing ones will need
translating by hand
- Only some of the item's languages are new: you choose whether to add
them or drop them from the imported copy

Labels also stay with the language they were written in. Before, an item
whose languages were in a different order from the form's could land its
French labels in the Portuguese column.

### 💭 Notes

Changes here:

- `importLanguages.ts` (new) — the decision table plus
`discardAssetLanguages` for the "drop them" answer
- `ImportLanguagesModals/` (new) — the three dialogs.
`LanguagesSentence` bolds the language names and joins them in a nice
way
- `formBuilderUtils.ts` — `nullifyTranslations` now places each imported
value in the slot its own language holds in the form, matched by name
instead of position. A language the item says nothing in is left blank
rather than filled with a copy of a neighbour, which used to read like a
real translation.
- `model.inputParser.coffee` — the item's `translations` and
`translated` are merged into the open form's params, so columns the item
brings get named on save
- `surveyScope.tsx` and `EditableForm.tsx` — languages are resolved
before anything is inserted. "Manage languages" routes out of the
Formbuilder so the unsaved-changes guard can have its say
- `theme/kobo/Modal.tsx` - the close button had no accessible label
- tests: `importLanguages.t... (continued)

10716 of 14050 branches covered (76.27%)

34109 of 40845 relevant lines covered (83.51%)

5.51 hits per line

Coverage Regressions

Lines Coverage ∆ File
667
5.22
-74.11% kpi/utils/query_parser/canopy_autogenerated_parser/__init__.py
336
24.66
-45.28% kpi/models/import_export_task.py
192
34.42
-29.77% kpi/serializers/v2/asset.py
177
61.5
-30.15% kpi/models/asset.py
135
25.26
-71.05% kpi/utils/query_parser/query_parser.py
123
28.84
-33.15% kpi/views/v2/asset.py
97
30.58
-47.09% kobo/apps/project_ownership/models/transfer.py
89
30.37
-65.93% kpi/utils/mailer.py
83
32.57
-47.43% kpi/paginators.py
80
71.12
-21.8% kpi/mixins/object_permission.py
74
39.65
-11.88% kpi/deployment_backends/openrosa_backend.py
71
0.0
-65.74% kobo/apps/accounts/adapter.py
70
23.4
-74.47% kpi/utils/xlsform_preprocessors/kobomatrix_handler.py
69
38.89
-34.85% kobo/apps/openapi_validator/middleware.py
67
25.35
-31.46% kpi/filters.py
59
54.12
-13.88% kpi/deployment_backends/base_backend.py
56
14.81
-69.14% kobo/apps/reports/report_data.py
50
27.72
-49.5% kpi/password_validation.py
48
59.0
-4.5% kpi/utils/xml.py
44
37.61
-37.61% kpi/models/asset_snapshot.py
42
70.0
-24.71% kpi/utils/django_orm_helper.py
41
46.29
-9.21% kobo/apps/audit_log/models.py
40
35.43
-31.5% kpi/utils/usage_calculator.py
39
19.15
-41.49% kobo/apps/accounts/signup_fields.py
39
35.2
-31.2% kpi/models/paired_data.py
38
34.52
-45.24% kobo/apps/audit_log/base_views.py
38
41.18
-27.94% kpi/utils/autoname.py
35
18.75
-72.92% kpi/utils/xlsform_preprocessors/koborank_handler.py
34
39.25
-31.78% kobo/apps/accounts/forms.py
34
37.14
-48.57% kpi/utils/cache.py
32
53.57
-16.33% kpi/mixins/formpack_xlsform_utils.py
32
53.92
-31.37% kpi/models/asset_file.py
29
47.89
-40.85% kpi/utils/hash.py
29
21.95
-70.73% kpi/utils/xlsform_preprocessors/koboscore_handler.py
28
17.07
-68.29% kpi/utils/submission.py
27
15.52
-15.52% kobo/apps/project_ownership/utils.py
27
33.96
-50.94% kpi/fields/file.py
24
40.0
-53.33% kpi/fields/jsonschema_form_field.py
23
51.06
-48.94% kpi/views/v2/authorized_application_user.py
22
43.38
-10.05% kpi/renderers.py
21
65.45
-9.55% kpi/permissions.py
21
50.0
-45.65% kpi/serializers/v2/asset_version.py
21
23.08
-53.85% kpi/utils/asset_translation_utils.py
21
40.58
-30.43% kpi/utils/data_exports.py
21
26.47
-61.76% kpi/utils/export_cleanup.py
21
66.83
-10.24% kpi/utils/mongo_helper.py
20
56.52
-28.99% hub/models/extra_user_detail.py
20
0.0
-68.97% kobo/apps/audit_log/tasks.py
19
58.18
-34.55% kpi/signals.py
18
37.84
-48.65% kpi/serializers/v2/create_user.py
18
60.56
-25.35% kpi/utils/sluggify.py
18
37.93
-62.07% kpi/views/token.py
17
39.73
-7.76% kobo/apps/organizations/views.py
17
77.53
-19.1% kpi/deployment_backends/mock_backend.py
17
41.82
-30.91% kpi/deployment_backends/openrosa_utils.py
16
60.0
-11.43% kobo/apps/audit_log/signals.py
14
37.14
-20.0% hub/utils/i18n.py
13
26.09
-56.52% kpi/fields/relative_prefix_hyperlinked_related.py
13
46.34
-15.85% kpi/tasks.py
12
43.06
-16.67% kobo/apps/project_ownership/serializers/invite.py
12
82.76
-13.79% kpi/utils/asset_content_analyzer.py
12
22.73
-54.55% kpi/utils/bugfix.py
12
35.56
-26.67% kpi/utils/urls.py
11
59.76
-13.41% kobo/apps/project_ownership/models/invite.py
11
67.86
-19.64% kpi/context_processors.py
11
69.44
-30.56% kpi/models/asset_user_partial_permission.py
11
23.31
-3.09% kpi/serializers/v2/asset_permission_assignment.py
11
55.56
-40.74% kpi/utils/xlsform_preprocessors/base_handlers.py
10
55.42
-12.05% kobo/apps/accounts/models.py
10
60.71
-35.71% kobo/apps/audit_log/utils.py
10
14.8
-5.1% kobo/apps/subsequences/utils/versioning.py
10
77.42
-16.13% kpi/utils/kobo_to_xlsform.py
10
35.29
-58.82% kpi/utils/strings.py
9
18.63
-5.59% kobo/apps/stripe/utils/subscription_limits.py
9
35.29
-52.94% kpi/serializers/v1/authorized_application_user.py
8
47.37
-42.11% kobo/apps/accounts/templatetags/customize_email_content.py
7
61.76
-20.59% kobo/apps/storage_backends/base.py
7
32.14
-25.0% kobo/apps/subsequences/utils/supplement_data.py
7
57.14
-33.33% kpi/fields/paginated_api.py
7
53.33
-46.67% kpi/maintenance_tasks.py
7
70.37
-25.93% kpi/models/extra_project_metadata_field.py
7
72.38
-6.67% kpi/utils/object_permission.py
7
71.43
-20.0% kpi/utils/project_views.py
6
33.77
-7.79% kobo/apps/accounts/utils.py
6
20.0
-60.0% kobo/apps/openapi_validator/utils.py
6
56.22
-3.24% kobo/apps/organizations/models.py
6
43.75
-37.5% kobo/apps/project_ownership/filters.py
6
72.09
-13.95% kobo/apps/project_ownership/serializers/transfer.py
6
0.0
-100.0% kobo/apps/project_views/tasks.py
6
42.86
-42.86% kpi/mixins/asset.py
6
22.12
-5.31% kpi/utils/models.py
5
38.3
-5.32% kobo/apps/accounts/signals.py
5
30.0
-7.14% kobo/apps/organizations/permissions.py
5
46.34
-12.2% kobo/apps/organizations/tasks.py
5
53.85
-6.41% kpi/deployment_backends/kc_access/utils.py
5
57.14
-23.81% kpi/fields/writable_json.py
5
83.33
-10.42% kpi/models/asset_version.py
5
75.0
-20.83% kpi/models/authorized_application.py
5
85.71
-14.29% kpi/utils/form_versions.py
5
29.41
-14.71% kpi/utils/rename_xls_sheet.py
5
36.14
-6.02% kpi/utils/storage.py
4
77.5
-10.0% kobo/apps/kobo_auth/signals.py
4
50.0
-10.53% kobo/apps/organizations/utils.py
4
89.47
-7.02% kpi/deployment_backends/mixin.py
4
33.33
-66.67% kpi/utils/chunked_delete.py
4
80.0
-20.0% kpi/views/v1_api_gone.py
3
70.45
-6.82% kobo/apps/data_collectors/signals.py
3
89.19
-8.11% kobo/apps/project_views/models/project_view.py
3
76.47
-17.65% kpi/utils/pyxform_compatibility.py
3
61.54
-23.08% kpi/versioning.py
2
70.83
-1.67% kobo/apps/openrosa/libs/utils/middleware.py
2
91.3
-8.7% kobo/apps/project_ownership/views/invite.py
2
83.33
-6.67% kobo/urls.py
2
86.92
-1.54% kpi/exceptions.py
2
64.52
-6.45% kpi/mixins/standardize_searchable_field.py
2
96.36
-3.64% kpi/mixins/xls_exportable.py
2
90.0
-10.0% kpi/utils/absolute_paths.py
2
81.48
-7.41% kpi/utils/ssrf.py
1
44.44
-5.56% kobo/apps/accounts/templatetags/get_provider_appname.py
1
86.11
-2.78% kobo/apps/openrosa/apps/logger/fields.py
1
85.0
-5.0% kobo/settings/utils.py
1
67.95
-1.28% kpi/authentication.py
Jobs
ID Job ID Ran Files Coverage
1 39915801072.1 23 Oct 2026 07:12AM UTC 925
43.47
2 39915801072.2 23 Oct 2026 07:13AM UTC 925
49.23
3 39915801072.3 23 Oct 2026 07:13AM UTC 925
52.83
4 39915801072.4 23 Oct 2026 07:14AM UTC 927
54.05
5 39915801072.5 23 Oct 2026 07:17AM UTC 930
71.07
6 39915801072.6 23 Oct 2026 07:17AM UTC 928
68.66
7 39915801072.7 23 Oct 2026 07:19AM UTC 927
44.74
8 39915801072.8 23 Oct 2026 07:22AM UTC 925
58.22
9 39915801072.9 23 Oct 2026 07:32AM UTC 927
59.28
10 39915801072.10 23 Oct 2026 07:47AM UTC 927
50.47
Source Files on build 39915801072
  • Tree
  • List 930
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • a75890ae on github
  • Prev Build on main (#39853100453)
  • Next Build on main (#39919307690)
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