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

kobotoolbox / kpi / 24983934715
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-2143-fix-schema-for-languages
DEFAULT BRANCH: master
Ran 27 Apr 2026 08:17AM UTC
Jobs 10
Files 912
Run time 2min
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: 82.119% (+0.9%) from 81.17%
24983934715

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.

7784 of 11978 branches covered (64.99%)

6 of 6 new or added lines in 1 file covered. (100.0%)

68 existing lines in 5 files now uncovered.

29590 of 36033 relevant lines covered (82.12%)

5.78 hits per line

Coverage Regressions

Lines Coverage ∆ File
52
61.29
-23.96% kpi/utils/xml.py
10
30.12
-12.05% kpi/utils/storage.py
4
75.12
-1.95% kpi/utils/mongo_helper.py
1
75.0
-6.25% kpi/utils/drf_exceptions.py
1
86.67
-0.95% kpi/utils/object_permission.py
Jobs
ID Job ID Ran Files Coverage
1 24983934715.1 27 Apr 2026 08:17AM UTC 908
52.72
2 24983934715.2 27 Apr 2026 08:17AM UTC 908
54.25
3 24983934715.3 27 Apr 2026 08:18AM UTC 910
53.94
4 24983934715.4 27 Apr 2026 08:19AM UTC 910
55.5
5 24983934715.5 27 Apr 2026 08:19AM UTC 908
52.96
6 24983934715.6 27 Apr 2026 08:19AM UTC 908
60.26
7 24983934715.7 27 Apr 2026 08:19AM UTC 910
65.97
8 24983934715.8 27 Apr 2026 08:20AM UTC 910
61.38
9 24983934715.9 27 Apr 2026 08:21AM UTC 912
68.2
10 24983934715.10 27 Apr 2026 08:22AM UTC 910
54.3
Source Files on build 24983934715
  • Tree
  • List 912
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 49232d6e on github
  • Prev Build on release/2.026.12 (#24841258195)
  • Next Build on release/2.026.12 (#24985384679)
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