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

kobotoolbox / kpi / 39455445655
84%
master: 76%

Build:
Build:
LAST BUILD BRANCH: release/2.026.43
DEFAULT BRANCH: master
Ran 20 Oct 2026 04:18PM UTC
Jobs 10
Files 929
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

20 Oct 2026 04:12PM UTC coverage: 83.515% (+0.1%) from 83.42%
39455445655

push

github

web-flow
feat(supportTools): record form versions in submissions that spanned several versions DEV-2935 (#7710)

### 📣 Summary
Support can now repair the form version history of submissions that were
edited or sent after a new form version was deployed.

### 📖 Description
Each submission now records every form version it went through, so that
its answers can be read against the questions of each of those versions.
Submissions that were edited under a newer version, or collected offline
with an older one, before that release carry no such history. Support
can now rebuild it for a whole project, from the edit history of each
submission and the dates each version was deployed. A run only reports
what it would change unless it is told to write, and it can be followed
by the attachment restore, which then finds files stored under a
question only an intermediate version had.

A submission collected offline with an older form version and sent after
a newer one was deployed now records only the version it was collected
with. Very old submissions, which name their form version in older
fields, keep it when they are edited, and exports no longer leave out
the ones whose version was merged into another one.

### 👷 Description for instance maintainers
- New management command `restore_formversions_in_submissions
--asset-uid <uid>`. It is a dry run unless `--no-dry-run` is passed.
`--no-resume` starts over instead of resuming an interrupted run, and
`--restore-attachments` runs `restore_soft_deleted_attachments` on the
same project once every submission is walked. `-v 2` logs each batch,
`-v 3` how each submission history is rebuilt.
- New Django admin page "Form versions restore", next to "Attachment
restore", so support can launch and follow a run without shell access.
The run goes to `kpi_low_priority_queue`, writes its log and counts back
on the row, and re-queues itself when it hits the soft time limit.

⚠️ **breaking changes:** `--email` is removed from
`restore_soft... (continued)

10708 of 14036 branches covered (76.29%)

180 of 435 new or added lines in 12 files covered. (41.38%)

2 existing lines in 2 files now uncovered.

34074 of 40800 relevant lines covered (83.51%)

5.51 hits per line

Uncovered Changes

Lines Coverage ∆ File
73
25.51
kobo/apps/support_tools/utils/restorers/form_versions.py
61
33.7
kobo/apps/support_tools/utils/restorers/base.py
47
18.97
kobo/apps/support_tools/utils/helpers.py
29
26.15
5.64% kobo/apps/support_tools/tasks.py
17
28.43
kobo/apps/support_tools/utils/restorers/attachment.py
8
52.63
4.15% kobo/apps/support_tools/admin.py
8
46.67
kobo/apps/support_tools/utils/logger.py
6
14.81
2.46% kobo/apps/reports/report_data.py
5
85.71
kpi/utils/form_versions.py
1
93.48
4.19% kobo/apps/support_tools/models.py

Coverage Regressions

Lines Coverage ∆ File
1
14.81
2.46% kobo/apps/reports/report_data.py
1
52.63
4.15% kobo/apps/support_tools/admin.py
Jobs
ID Job ID Ran Files Coverage
1 39455445655.1 20 Oct 2026 04:18PM UTC 924
49.23
2 39455445655.2 20 Oct 2026 04:18PM UTC 924
43.46
3 39455445655.3 20 Oct 2026 04:19PM UTC 924
52.81
4 39455445655.4 20 Oct 2026 04:20PM UTC 926
50.46
5 39455445655.5 20 Oct 2026 04:21PM UTC 924
58.22
6 39455445655.6 20 Oct 2026 04:21PM UTC 926
44.73
7 39455445655.7 20 Oct 2026 04:21PM UTC 926
54.04
8 39455445655.8 20 Oct 2026 04:22PM UTC 926
59.28
9 39455445655.9 20 Oct 2026 04:22PM UTC 927
68.65
10 39455445655.10 20 Oct 2026 04:23PM UTC 929
71.06
Source Files on build 39455445655
  • Tree
  • List 929
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 210b8e26 on github
  • Prev Build on main (#39434816994)
  • Next Build on release/2.026.43 (#40662179242)
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