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

kobotoolbox / kpi / 27157912329
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: release/2.026.21
DEFAULT BRANCH: master
Ran 08 Jun 2026 06:22PM 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

08 Jun 2026 06:18PM UTC coverage: 81.56%. Remained the same
27157912329

push

github

web-flow
feat(auditLogs): util for getting max lookback days DEV-1466 (#7122)

### 💭 Notes
Dev-only change to add a util that will calculate the maximum number of
days a user can look back for audit logs according to their
subscription.

On stripe-enabled instances, this will be part of the subscription
plans. On non-stripe instances, the maximum lookback is however long we
retain audit logs for.

### 👀 Preview steps
Make sure to have stripe enabled and sync the most recent test Stripe
data

1. â„šī¸ have an account on the community/default plan
2. Open a django shell
3. 
```
from kobo.apps.audit_log.utils import get_max_lookback_days
u = User.objects.get(username='<username>')
get_max_lookback_days(u)
```
4. đŸŸĸ [on PR] should return 60
5. Upgrade your user's subscription to the Professional plan (make sure
to resync using sync_subscriber so the local db gets updated)
7. ```get_max_lookback_days(u)```
8. đŸŸĸ should now return 90

9020 of 12253 branches covered (73.61%)

11 of 28 new or added lines in 3 files covered. (39.29%)

429 existing lines in 20 files now uncovered.

29595 of 36286 relevant lines covered (81.56%)

5.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
26.4
-50.07% kobo/apps/stripe/utils/subscription_limits.py
6
70.0
-30.0% kobo/apps/audit_log/utils.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
63
0.0
-51.64% kobo/apps/stripe/models.py
53
26.4
-50.07% kobo/apps/stripe/utils/subscription_limits.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
1
92.31
-7.69% kobo/apps/user_reports/utils/migrations.py
1
72.73
-4.55% kpi/urls/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 27157912329.1 08 Jun 2026 06:22PM UTC 879
50.18
2 27157912329.2 08 Jun 2026 06:22PM UTC 879
44.9
3 27157912329.3 08 Jun 2026 06:23PM UTC 879
53.53
4 27157912329.4 08 Jun 2026 06:24PM UTC 881
46.3
5 27157912329.5 08 Jun 2026 06:24PM UTC 881
51.55
6 27157912329.6 08 Jun 2026 06:24PM UTC 881
54.82
7 27157912329.7 08 Jun 2026 06:25PM UTC 881
66.48
8 27157912329.8 08 Jun 2026 06:26PM UTC 879
59.4
9 27157912329.9 08 Jun 2026 06:26PM UTC 881
60.59
10 27157912329.10 08 Jun 2026 06:27PM UTC 883
68.84
Source Files on build 27157912329
  • 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
  • 5929a673 on github
  • Prev Build on main (#27149856596)
  • Next Build on main (#27165102183)
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