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

kobotoolbox / kpi / 27291118493
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-2254-endpoint-to-return-audio-length
DEFAULT BRANCH: master
Ran 10 Jun 2026 04:46PM UTC
Jobs 10
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

10 Jun 2026 04:41PM UTC coverage: 81.577% (+0.02%) from 81.559%
27291118493

push

github

web-flow
feat(auditLogs): filter list endpoints by lookback DEV-1461 (#7137)


### đŸ“Ŗ Summary
Restrict API endpoints for audit logs to only look back the number of
days allowed by the user's subscription.


### 📖 Description
Restricts the following endpoints:
- audit logs
- access logs (personal and global)
- project history logs (project-specific and global)
If stripe is not enabled, the number of days allowed is set based on the
log retention settings of the server.

### Notes
One small inheritance change, AccessLogViewSet now inherits from
AllAccessLogViewSet to avoid having to write the same queryset twice.
The unit testing around the access log view set is quite comprehensive
so there is not much fear of regression, and it was also tested locally.


### 👀 Preview steps

1. â„šī¸ have an admin account and a project
2. â„šī¸ Ensure you have access logs and project history logs that are at
least 3 days old
3. In Django admin, update the default plan (or whatever plan you admin
user is on) to have `"log_lookback_days_limit": "2"` in the metadata
4. đŸŸĸ For each of the following endpoints, ensure there are no logs older
than 2 days old:
  * /api/v2/audit-logs/
  * /api/v2/access-logs/me/
  * /api/v2/access-logs/
  * /api/v2/project-history-logs/
  * /api/v2/assets/<asset_uid>/history/

9027 of 12260 branches covered (73.63%)

8 of 23 new or added lines in 1 file covered. (34.78%)

442 existing lines in 20 files now uncovered.

29627 of 36318 relevant lines covered (81.58%)

5.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
65.69
-6.34% kobo/apps/audit_log/views.py

Coverage Regressions

Lines Coverage ∆ File
81
0.0
-93.1% kobo/apps/stripe/serializers.py
75
0.0
-41.9% kobo/apps/stripe/views.py
65
26.4
-52.0% kobo/apps/stripe/utils/subscription_limits.py
63
0.0
-51.64% kobo/apps/stripe/models.py
36
20.21
-38.3% kobo/apps/stripe/utils/billing_dates.py
19
0.0
-65.52% kobo/apps/stripe/admin.py
16
84.8
-2.93% kobo/apps/openrosa/libs/utils/logger_tools.py
16
31.82
-36.36% kobo/apps/stripe/utils/limit_enforcement.py
12
35.0
-60.0% kobo/apps/stripe/utils/import_management.py
11
0.0
-44.0% kobo/apps/stripe/signals.py
9
0.0
-29.03% kobo/apps/stripe/utils/manual_subscription.py
8
0.0
-100.0% kobo/apps/stripe/urls.py
7
0.0
-100.0% kobo/apps/stripe/apps.py
6
0.0
-100.0% kobo/apps/stripe/exceptions.py
6
0.0
-37.5% kobo/apps/stripe/utils/view_utils.py
3
31.43
-2.86% kobo/apps/organizations/admin/organization.py
3
61.21
-1.82% kobo/apps/organizations/models.py
3
60.53
-7.89% kobo/apps/organizations/utils.py
2
53.38
-0.48% kobo/apps/audit_log/models.py
1
65.69
-6.34% kobo/apps/audit_log/views.py
Jobs
ID Job ID Ran Files Coverage
1 27291118493.1 10 Jun 2026 04:46PM UTC 879
44.88
2 27291118493.2 10 Jun 2026 04:46PM UTC 879
50.16
3 27291118493.3 10 Jun 2026 04:46PM UTC 879
53.49
4 27291118493.4 10 Jun 2026 04:47PM UTC 881
46.28
5 27291118493.5 10 Jun 2026 04:48PM UTC 881
54.79
6 27291118493.6 10 Jun 2026 04:49PM UTC 879
59.43
7 27291118493.7 10 Jun 2026 04:49PM UTC 881
66.49
8 27291118493.8 10 Jun 2026 04:49PM UTC 881
51.53
9 27291118493.9 10 Jun 2026 04:50PM UTC 881
60.62
10 27291118493.10 10 Jun 2026 04:51PM UTC 883
68.85
Source Files on build 27291118493
  • Tree
  • List 883
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • ca97c16d on github
  • Prev Build on main (#27285921303)
  • Next Build on main (#27299045056)
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