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

kobotoolbox / kpi / 24671455478
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1494-execution-and-polling-for-bulk-actions
DEFAULT BRANCH: master
Ran 20 Apr 2026 02:18PM UTC
Jobs 10
Files 912
Run time 3min
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 Apr 2026 02:14PM UTC coverage: 82.111% (-0.06%) from 82.169%
24671455478

push

github

web-flow
feat(subsequences): batch-migrate legacy NLP supplements on deploy, guard exports DEV-1961 (#6937)

### 📣 Summary

Exports on assets with NLP data were silently failing with an
`InvalidAction` error because `SubmissionSupplement` records were stored
in a legacy schema (no `_version` key). This PR adds a management
command and a LRM job to batch-migrate those records on deploy, and
shows a clear error during the transition window.

### 👷 Description for instance maintainers

Three complementary changes ship together:

**1. Management command `migrate_submission_supplements`:** Iterates
over all `SubmissionSupplement` records still in the legacy format and
converts them to the current schema (`_version: '20250820'`). Can also
be run manually from the shell.

**2. Long-running migration (job `0023`):** Runs the management command
automatically on deploy via the existing Beat-scheduled LRM framework —
no manual intervention required.

**3. Export guard:** While the LRM is running, any async export for an
asset that still has unmigrated supplements fails with a clear message
(`Supplement data migration in progress, please retry later`) instead of
the previous cryptic `{"error": "", "error_type": "InvalidAction"}`.

7779 of 11972 branches covered (64.98%)

5 of 30 new or added lines in 4 files covered. (16.67%)

402 existing lines in 17 files now uncovered.

29579 of 36023 relevant lines covered (82.11%)

5.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
24
0.0
kobo/apps/long_running_migrations/jobs/0023_migrate_submission_supplements.py
1
81.18
-0.04% kpi/models/import_export_task.py

Coverage Regressions

Lines Coverage ∆ File
81
0.0
-93.1% kobo/apps/stripe/serializers.py
75
0.0
-41.9% kobo/apps/stripe/views.py
63
0.0
-51.64% kobo/apps/stripe/models.py
60
26.05
-50.42% kobo/apps/stripe/utils/subscription_limits.py
36
20.21
-38.3% kobo/apps/stripe/utils/billing_dates.py
19
0.0
-65.52% kobo/apps/stripe/admin.py
14
31.82
-31.82% kobo/apps/stripe/utils/limit_enforcement.py
12
35.0
-60.0% kobo/apps/stripe/utils/import_management.py
11
0.0
-44.0% kobo/apps/stripe/signals.py
8
0.0
-100.0% kobo/apps/stripe/urls.py
7
0.0
-100.0% kobo/apps/stripe/apps.py
6
0.0
-37.5% kobo/apps/stripe/utils/view_utils.py
3
61.21
-1.82% kobo/apps/organizations/models.py
3
60.53
-7.89% kobo/apps/organizations/utils.py
2
44.65
-0.38% kobo/apps/openrosa/libs/utils/logger_tools.py
1
40.85
-1.41% kobo/apps/organizations/admin/organization.py
1
92.31
-7.69% kobo/apps/user_reports/utils/migrations.py
Jobs
ID Job ID Ran Files Coverage
1 24671455478.1 20 Apr 2026 02:18PM UTC 908
52.73
2 24671455478.2 20 Apr 2026 02:19PM UTC 908
54.26
3 24671455478.3 20 Apr 2026 02:20PM UTC 908
52.94
4 24671455478.4 20 Apr 2026 02:20PM UTC 910
53.95
5 24671455478.5 20 Apr 2026 02:20PM UTC 910
55.51
6 24671455478.6 20 Apr 2026 02:20PM UTC 910
65.95
7 24671455478.7 20 Apr 2026 02:21PM UTC 908
60.27
8 24671455478.8 20 Apr 2026 02:22PM UTC 910
61.4
9 24671455478.9 20 Apr 2026 02:23PM UTC 910
54.28
10 24671455478.10 20 Apr 2026 02:23PM UTC 912
68.19
Source Files on build 24671455478
  • Tree
  • List 912
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 0b5edfb7 on github
  • Prev Build on release/2.026.12 (#24654785901)
  • Next Build on release/2.026.12 (#24788118579)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc