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

kobotoolbox / kpi / 17767133680
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: refactor-subsequences-2025
DEFAULT BRANCH: master
Ran 16 Sep 2025 01:52PM UTC
Jobs 2
Files 861
Run time 4min
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

16 Sep 2025 01:19PM UTC coverage: 81.138% (+0.001%) from 81.137%
17767133680

push

github

web-flow
fix(billing): enforce grace period using `datetime` on exceeded limit counters DEV-1021 (#6255)

### 📣 Summary
Fixed an issue where storage limit counters could update too early
because only the calendar date was checked. Now the system respects a
full 24-hour grace period before updating counters.


### 📖 Description
Previously, exceeded limit counters were filtered using only the date
portion of `date_modified`. This meant that if a user exceeded their
limit late in the day (e.g., 3 PM), the counter could be updated just
after midnight instead of waiting the full 24 hours.
We now compare the full `datetime` so counters are only updated once the
full grace period has passed. This ensures fairer enforcement of storage
limits and avoids premature counter increments or deletions.

6860 of 10838 branches covered (63.3%)

1 of 4 new or added lines in 1 file covered. (25.0%)

760 existing lines in 28 files now uncovered.

26571 of 32748 relevant lines covered (81.14%)

1.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
28.95
-71.05% kobo/apps/stripe/utils/limit_enforcement.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.32
-1.41% kobo/apps/organizations/admin/organization.py
1
85.0
-5.0% kpi/urls/__init__.py
1
93.62
-2.13% kpi/utils/django_orm_helper.py
2
93.53
-1.0% kobo/apps/mass_emails/tasks.py
3
63.64
-27.27% kobo/apps/accounts/utils.py
3
82.42
-1.82% kobo/apps/organizations/models.py
3
86.67
-10.0% kobo/apps/organizations/utils.py
3
90.52
-2.59% kpi/views/environment.py
4
83.33
-8.33% kobo/apps/accounts/mfa/models.py
7
0.0
-100.0% kobo/apps/stripe/apps.py
8
0.0
-100.0% kobo/apps/stripe/urls.py
10
83.33
-11.11% kobo/apps/subsequences/api_view.py
12
35.0
-60.0% kobo/apps/stripe/utils/import_management.py
12
0.0
-75.0% kobo/apps/stripe/utils/view_utils.py
14
86.07
-2.71% kobo/apps/openrosa/libs/utils/logger_tools.py
15
0.0
-100.0% kobo/apps/stripe/tasks.py
19
0.0
-65.52% kobo/apps/stripe/admin.py
23
0.0
-92.0% kobo/apps/stripe/signals.py
24
28.95
-71.05% kobo/apps/stripe/utils/limit_enforcement.py
24
75.49
-23.53% kpi/utils/usage_calculator.py
25
47.89
-35.21% kobo/apps/mass_emails/user_queries.py
27
57.97
-39.13% kobo/apps/trackers/utils.py
40
42.5
-50.0% kobo/apps/trash_bin/tasks/attachment.py
64
0.0
-98.46% kobo/apps/stripe/serializers.py
64
21.43
-76.19% kobo/apps/stripe/utils/billing_dates.py
86
26.5
-73.5% kobo/apps/stripe/utils/subscription_limits.py
111
0.0
-90.98% kobo/apps/stripe/models.py
154
0.0
-95.65% kobo/apps/stripe/views.py
Jobs
ID Job ID Ran Files Coverage
1 17767133680.1 16 Sep 2025 01:52PM UTC 861
78.81
2 17767133680.2 16 Sep 2025 01:55PM UTC 861
81.12
Source Files on build 17767133680
  • Tree
  • List 861
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 7939df40 on github
  • Prev Build on release/2.025.37 (#17743597534)
  • Next Build on release/2.025.37 (#17776264452)
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