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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-deps-2d1112a488
DEFAULT BRANCH: master
Ran 05 Jun 2026 03:50PM UTC
Files 910
Run time 56s
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: 51.931% (-1.6%) from 53.565%
27024834989.1

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

4709 of 12321 branches covered (38.22%)

19268 of 37103 relevant lines covered (51.93%)

0.52 hits per line

Source Files on job 27024834989.1
  • Tree
  • List 910
  • Changed 151
  • Source Changed 0
  • Coverage Changed 151
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