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

kobotoolbox / kpi / 15043309330
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 15 May 2025 11:40AM UTC
Jobs 2
Files 654
Run time 1min
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

15 May 2025 11:03AM UTC coverage: 80.988% (+0.03%) from 80.956%
15043309330

push

github

web-flow
fix(attachments): fix user profile counter bug on attachment deletion after project transfer TASK-1828 (#5756)

### 📣 Summary
Fixes a bug where storage counter on `UserProfile` was not updated
correctly when deleting or restoring attachments after transferring a
project to a new owner.


### 📖 Description
There was a bug affecting attachment storage usage tracking: when a
project was transferred to a new owner, the storage counter on the new
owner's `UserProfile` object was not updated correctly if attachments
were later trashed or restored.

This PR updates the attachment trash logic to ensure that ownership is
correctly reassigned before applying any storage counter updates. It
also adds a unit test to verify the correctness of counter updates
during transfer, trash, and restore operations.

6237 of 9901 branches covered (62.99%)

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

6 existing lines in 4 files now uncovered.

23808 of 29397 relevant lines covered (80.99%)

1.6 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
81.82
18.18% kobo/apps/accounts/utils.py
1
84.85
36.36% kobo/apps/mass_emails/user_queries.py
1
95.16
35.48% kobo/apps/trackers/utils.py
3
0.0
-100.0% kobo/settings/testing_no_stripe.py
Jobs
ID Job ID Ran Files Coverage
1 15043309330.1 15 May 2025 11:40AM UTC 654
80.97
2 15043309330.2 15 May 2025 11:41AM UTC 654
78.87
Source Files on build 15043309330
  • Tree
  • List 654
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 1d590c8a on github
  • Prev Build on main (#15042957034)
  • Next Build on main (#15043587852)
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