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

kobotoolbox / kpi / 15037543969
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 15 May 2025 06:21AM 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 05:43AM UTC coverage: 80.937% (+0.003%) from 80.934%
15037543969

push

github

web-flow
fix(attachmentStorage): fix UserProfile storage counter to exclude soft-deleted XForms TASK-1777 (#5687)

### 📣 Summary
Updates the management command to ensure that deleted projects (forms in
the trash) are no longer counted toward the user profile's attachment
storage usage.



### 📖 Description
Previously, when a user soft-deleted a project, the media files
associated with that form continued to be included in the UserProfile's
`attachment_storage_bytes` counter, which is used to track total storage
usage per account. This led to inconsistencies between the backend
storage counter and what users saw in the `/service_usage/` page, which
already excluded deleted forms.

This fix updates the `update_attachment_storage_bytes` management
command to exclude soft-deleted forms (`pending_delete=True`) from the
total storage calculation at the user profile level. Individual XForm
storage totals are still updated, even for trashed forms, so they remain
accurate if restored.

---------

Co-authored-by: Olivier Leger <olivierleger@gmail.com>

6230 of 9900 branches covered (62.93%)

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

23780 of 29381 relevant lines covered (80.94%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15037543969.1 15 May 2025 06:21AM UTC 654
78.82
2 15037543969.2 15 May 2025 06:22AM UTC 654
80.92
Source Files on build 15037543969
  • Tree
  • List 654
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • b2765b8f on github
  • Prev Build on main (#15031508809)
  • Next Build on main (#15038492694)
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

© 2025 Coveralls, Inc