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

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

Build:
Build:
LAST BUILD BRANCH: dev-1261-remove-api_v1_submissions_endpoints
DEFAULT BRANCH: master
Ran 04 Dec 2025 07:35PM UTC
Files 879
Run time 38s
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: 78.952% (-2.4%) from 81.335%
19940642159.1

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
```

6925 of 11242 branches covered (61.6%)

26737 of 33865 relevant lines covered (78.95%)

0.79 hits per line

Source Files on job 19940642159.1
  • Tree
  • List 879
  • Changed 29
  • Source Changed 0
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 19940642159
  • faf92049 on github
  • Prev Job for on release/2.025.43 (#19931924257.2)
  • Next Job for on release/2.025.43 (#19944594123.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