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

kobotoolbox / kpi / 27024834989 / 2
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1470-create-tag-tracker
DEFAULT BRANCH: master
Ran 05 Jun 2026 03:51PM UTC
Files 910
Run time 36s
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: 53.57% (+0.005%) from 53.565%
27024834989.2

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

5064 of 12330 branches covered (41.07%)

19876 of 37103 relevant lines covered (53.57%)

0.54 hits per line

Source Files on job 27024834989.2
  • Tree
  • List 910
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 27024834989
  • ab80d979 on github
  • Prev Job for on release/2.026.21 (#26639973323.2)
  • Next Job for on release/2.026.21 (#27147750209.1)
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