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

kobotoolbox / kpi / 18658924259 / 1
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: refactor-subsequences-2025
DEFAULT BRANCH: master
Ran 20 Oct 2025 05:22PM UTC
Files 861
Run time 23s
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 2025 04:47PM UTC coverage: 78.804%. Remained the same
18658924259.1

push

github

web-flow
perf(migrations): instructions for faster migration of logger 0049 (#6389)

### 💭 Notes
Use SKIP_HEAVY_MIGRATIONS when updating the instance history table to
allow null values. We don't need to do anything else because the work
for on_delete is done in Python, not SQL, so there's no trigger or
anything that needs to be modified.


### 👀 Preview steps

1. â„šī¸ have an account and a project with some submissions
2. Edit a submission to make sure there is stuff in InstanceHistory
3. In a kpi shell, run `./manage migrate 0048 --database kobocat` to go
back a migration
4. In a kpi shell, run `SKIP_HEAVY_MIGRATIONS=True ./manage migrate 0049
--database kobocat`
5. In a postgres shell, run the sql command that is printed
6. Delete the edited submission
7. đŸŸĸ notice that the InstanceHistory objects have instance_id=None
8. In a kpi shell, run `SKIP_HEAVY_MIGRATIONS=True ./manage migrate 0048
--database kobocat` (should be a noop)
9. Locally update the code for InstanceHistory.instance to
`on_delete=models.CASCADE` and remove `null=True` to simulate reverting
the code
10. Edit and delete another submission
11. đŸŸĸ (regression test) notice the related InstanceHistory object(s) are
deleted

6736 of 10981 branches covered (61.34%)

25955 of 32936 relevant lines covered (78.8%)

0.79 hits per line

Source Files on job 18658924259.1
  • Tree
  • List 861
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 18658924259
  • 7503a0dc on github
  • Prev Job for on release/2.025.37 (#18592448143.1)
  • Next Job for on release/2.025.37 (#18692449697.2)
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