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

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

Build:
Build:
LAST BUILD BRANCH: dev-2344-some-users-not-able-to-submit
DEFAULT BRANCH: master
Ran 05 Jun 2026 03:52PM UTC
Files 912
Run time 39s
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: 54.823% (+1.3%) from 53.565%
27024834989.3

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

5193 of 12335 branches covered (42.1%)

20345 of 37110 relevant lines covered (54.82%)

0.55 hits per line

Source Files on job 27024834989.3
  • Tree
  • List 912
  • Changed 23
  • Source Changed 0
  • Coverage Changed 23
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