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

kobotoolbox / kpi / 19940642159
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: refactor-subsequences-2025
DEFAULT BRANCH: master
Ran 04 Dec 2025 07:35PM UTC
Jobs 2
Files 881
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

04 Dec 2025 07:02PM UTC coverage: 81.333% (-0.04%) from 81.368%
19940642159

push

github

web-flow
feat(trash): set removed users to null in audit logs DEV-1253  (#6525)

### đŸ“Ŗ Summary
Long running job that removes users ids from audit logs for removed
users

### 👀 Preview steps
1. â„šī¸ have an account with multiple audit logs
2. Remove the user, empty the user trash 
3. Go to the django shell and find the logs for the removed user,
restore the user_id based on the user_uid field in the audit logs:
```
uid = User.objects.get(username='test_username').extra_details.uid
logs = AuditLog.objects.filter(user_uid=uid)
for log in logs:
    log.user_id=user_id
    log.save()
```
4. Execute the job manually (or wait for it to run), it should show an
output like so:
```
lrm = LongRunningMigration.objects.get(name__contains='0013_set_null_for_removed_users')
lrm.execute()
    Processing chunk of 4 users ...
```
5. Check again the logs for that user to confirm the user_id is now null
```
for log in logs:
    assert log.user_id is None
```

7129 of 11192 branches covered (63.7%)

0 of 17 new or added lines in 1 file covered. (0.0%)

27549 of 33872 relevant lines covered (81.33%)

1.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
17
0.0
kobo/apps/long_running_migrations/jobs/0013_set_null_for_removed_users.py
Jobs
ID Job ID Ran Files Coverage
1 19940642159.1 04 Dec 2025 07:35PM UTC 879
78.95
2 19940642159.2 04 Dec 2025 07:40PM UTC 881
81.3
Source Files on build 19940642159
  • Tree
  • List 881
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • faf92049 on github
  • Prev Build on release/2.025.43 (#19931924257)
  • Next Build on release/2.025.43 (#19944594123)
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