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

kobotoolbox / kpi / 17628729072
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1497-show-most-recently-created-qual-answer
DEFAULT BRANCH: master
Ran 10 Sep 2025 11:18PM 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

10 Sep 2025 10:44PM UTC coverage: 81.139% (+0.006%) from 81.133%
17628729072

push

github

web-flow
fix(migrations): partially revert #6157; avoid renaming `_reversion_version` DEV-838 (#6229)

### 👷 Description for instance maintainers

`kpi/migrations/0070_alter_assetversion_reversion_version.py` attempted
to rename the column `_reversion_version` to `_reversion_version_id` in
the table `kpi_assetversion`. Unfortunately, this can fail for existing
databases because the column was already called `_reversion_version_id`
in the first place, owing to Django's column-naming conventions for
`model.OneToOneField`.

This change uses `db_column='_reversion_version_id'` to preserve both
the Python name of the field and the PostgreSQL column name while
changing the field type from `OneToOneField` to `IntegerField`.

### 👀 Preview steps

1. Have a local development environment with an empty database
2. Check out the `release/2.025.34` branch
3. Run `scripts/migrate.sh`
4. Observe success
5. Check out `main` (the base branch for this PR)
6. Run `scripts/migrate.sh` again
7. Observe failure (`django.db.utils.ProgrammingError: column
"_reversion_version" does not exist`)
8. Reset to an empty database
9. Repeat steps (1) through (4)
10. Check out the branch for this PR (sorry, long name:
`revert-6157-beccagraber/dev-838-remove-reversion-version`)
11. Run `scripts/migrate.sh` yet again
12. Observe success :heavy_check_mark:

6861 of 10838 branches covered (63.31%)

2 of 2 new or added lines in 1 file covered. (100.0%)

26569 of 32745 relevant lines covered (81.14%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 17628729072.1 10 Sep 2025 11:18PM UTC 861
78.81
2 17628729072.2 10 Sep 2025 11:19PM UTC 861
81.12
Source Files on build 17628729072
  • Tree
  • List 861
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • ebe7257e on github
  • Prev Build on main (#17626380988)
  • Next Build on main (#17643918469)
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