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

kobotoolbox / kpi / 18658924259
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1497-show-most-recently-created-qual-answer
DEFAULT BRANCH: master
Ran 20 Oct 2025 05:22PM UTC
Jobs 2
Files 861
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

20 Oct 2025 04:47PM UTC coverage: 81.112% (-0.006%) from 81.118%
18658924259

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

6921 of 10932 branches covered (63.31%)

26715 of 32936 relevant lines covered (81.11%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18658924259.1 20 Oct 2025 05:22PM UTC 861
78.8
2 18658924259.2 20 Oct 2025 05:25PM UTC 861
81.09
Source Files on build 18658924259
  • Tree
  • List 861
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 7503a0dc on github
  • Prev Build on release/2.025.37 (#18592448143)
  • Next Build on release/2.025.37 (#18692449697)
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

© 2025 Coveralls, Inc