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

kobotoolbox / kpi / 16742072488 / 2
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1453-run-external-process
DEFAULT BRANCH: master
Ran 05 Aug 2025 06:52AM UTC
Files 661
Run time 35s
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

05 Aug 2025 06:11AM UTC coverage: 81.211% (+2.4%) from 78.787%
16742072488.2

push

github

web-flow
feat(attachments): Add celery task to auto delete excess attachments DEV-240 (#5938)

### 📣 Summary
Adds auto_delete_excess_attachments task that soft-deletes a user’s
oldest attachments until their storage usage falls below the configured
limit. This completes the attachment cleanup workflow for users
exceeding their storage quotas.


### 📖 Description
This PR adds the `auto_delete_excess_attachments(user_id)` Celery task,
which:
- Checks if the user is exceeding their storage quota
- If so, iterates over the user's oldest attachments (`date_created`
order)
- Soft-deletes attachments using the existing `move_to_trash()` utility
- Stops once the user is back within the allowed quota

6456 of 10151 branches covered (63.6%)

24283 of 29901 relevant lines covered (81.21%)

0.81 hits per line

Source Files on job 16742072488.2
  • Tree
  • List 661
  • Changed 30
  • Source Changed 0
  • Coverage Changed 30
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 16742072488
  • 45c9b12d on github
  • Prev Job for on main (#16726115707.1)
  • Next Job for on main (#16758296653.2)
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