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

kobotoolbox / kpi / 24983934715 / 6
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-2143-fix-schema-for-languages
DEFAULT BRANCH: master
Ran 27 Apr 2026 08:19AM UTC
Files 908
Run time 29s
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

27 Apr 2026 08:12AM UTC coverage: 60.257% (+6.3%) from 53.939%
24983934715.6

push

github

web-flow
fix(middleware): track v1 endpoint usage for Token-authenticated requests DEV-2025 (#6966)

### 📣 Summary
Move `V1AccessLoggingMiddleware` logic to the response phase to
correctly capture Token-authenticated API usage.

### 📖 Description
The `V1UserTracker` was failing to record activity from programmatic
scripts using Token Authentication. This occurred because Django's
`process_request` runs before the DRF view layer, leaving `request.user`
as `AnonymousUser` during the initial check.

Fix:
- Relocated the tracking logic from `process_request` to
`process_response` within `V1AccessLoggingMiddleware`.
- This ensures that `request.user` is fully populated by DRF's
authentication classes before the logging logic executes.
- Updated the logic to only track successful, authenticated requests to
the defined legacy patterns.

4651 of 11888 branches covered (39.12%)

21658 of 35943 relevant lines covered (60.26%)

0.6 hits per line

Source Files on job 24983934715.6
  • Tree
  • List 908
  • Changed 155
  • Source Changed 0
  • Coverage Changed 155
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24983934715
  • 49232d6e on github
  • Prev Job for on release/2.026.12 (#24841258195.3)
  • Next Job for on release/2.026.12 (#24985384679.6)
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