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

kobotoolbox / kpi / 21639306655
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 03 Feb 2026 05:26PM UTC
Jobs 2
Files 883
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

03 Feb 2026 04:14PM UTC coverage: 81.341% (+0.02%) from 81.317%
21639306655

push

github

web-flow
feat(api): track usage of deprecated `v1` endpoints DEV-1652 (#6669)

### 📖 Description
As we prepare to remove `v1` endpoints, we need to identify which users
are still relying on them. Since these endpoints are spread across
different apps, and no existing logging provides a simple user-flagging
mechanism, this PR introduces a lightweight tracking system.

Changes:
* New Model: `V1UserTracker` (OneToOne with `User`) to store the
timestamp and the specific path of the last access.
* New Middleware: `V1AccessLoggingMiddleware` to intercept requests to
deprecated paths (`/api/v1/`, `/assets/`, etc.) and flag the user.
* Tests: Added `test_v1_tracking.py` to verify that legacy paths trigger
the flag while v2 paths do not.

Cleanup Plan:
* This table and middleware are temporary and intended to be dropped
after the `v1` removal is complete.

7198 of 11278 branches covered (63.82%)

17 of 17 new or added lines in 2 files covered. (100.0%)

27791 of 34166 relevant lines covered (81.34%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 21639306655.1 03 Feb 2026 05:26PM UTC 881
78.98
2 21639306655.2 03 Feb 2026 05:31PM UTC 883
81.3
Source Files on build 21639306655
  • Tree
  • List 883
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 2f5d5ddd on github
  • Prev Build on release/2.025.47 (#21638471058)
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