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

kobotoolbox / kpi / 27024834989
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-2248-unable-to-delete-projects
DEFAULT BRANCH: master
Ran 05 Jun 2026 03:50PM UTC
Jobs 10
Files 914
Run time 3min
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

05 Jun 2026 03:45PM UTC coverage: 81.999% (-0.006%) from 82.005%
27024834989

push

github

web-flow
fix(admin): fix timeout when viewing tokens DEV-2149 (#7119)

### đŸ“Ŗ Summary
Fix a timeout error when attempting to view individual user tokens in
Django admin.


### 💭 Notes
The built in TokenAdmin has `user` as an editable field, which requires
loading all users to create the selection dropdown. The PR makes the
`user` field read-only except on creation.
Since the original TokenAdmin is registered in DRF app code, we have to
unregister it before re-registering it with our edited version.


### 👀 Preview steps
Regression test only. Best to test with `--print-sql` running

1. â„šī¸ have a superuser account
2. Go to django admin -> Auth Token -> Token
3. Select an arbitrary token to open the editing view
4. 🔴 [on release] notice there is a query that queries the entire
auth_user table (using a cursor)
5. :red_circle: [on release] notice you are able to change the user
6. đŸŸĸ [on PR] notice all queries to auth_user are filtered
7. Delete the token
8. Create a new token for the same user
9. đŸŸĸ Ensure new token is created successfully

9235 of 12470 branches covered (74.06%)

7 of 10 new or added lines in 1 file covered. (70.0%)

30498 of 37193 relevant lines covered (82.0%)

5.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
70.73
-0.24% kpi/admin.py
Jobs
ID Job ID Ran Files Coverage
1 27024834989.1 05 Jun 2026 03:50PM UTC 910
51.93
2 27024834989.2 05 Jun 2026 03:51PM UTC 910
53.57
3 27024834989.3 05 Jun 2026 03:52PM UTC 912
54.82
4 27024834989.4 05 Jun 2026 03:52PM UTC 912
53.16
5 27024834989.5 05 Jun 2026 03:52PM UTC 910
52.18
6 27024834989.6 05 Jun 2026 03:53PM UTC 910
59.39
7 27024834989.7 05 Jun 2026 03:53PM UTC 912
66.06
8 27024834989.8 05 Jun 2026 03:55PM UTC 914
68.35
9 27024834989.9 05 Jun 2026 03:55PM UTC 912
60.53
10 27024834989.10 05 Jun 2026 03:55PM UTC 912
53.53
Source Files on build 27024834989
  • Tree
  • List 914
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • ab80d979 on github
  • Prev Build on release/2.026.21 (#26639973323)
  • Next Build on release/2.026.21 (#27147750209)
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