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

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

Build:
Build:
LAST BUILD BRANCH: refactor-subsequences-2025
DEFAULT BRANCH: master
Ran 21 Aug 2025 06:40PM UTC
Files 665
Run time 22s
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

21 Aug 2025 05:53PM UTC coverage: 81.418% (+2.5%) from 78.929%
17134834919.2

push

github

web-flow
fix(attachments): set attachment `is_deleted` flag in Mongo after auto cleanup DEV-922 (#6144)

### 📣 Summary
Ensure that when Celery task automatically deletes excess attachments,
the API correctly marks them as deleted so the UI no longer attempts to
display them.


### 📖 Description
Previously, when attachments were automatically removed because a user
exceeded their storage quota, the cleanup process only updated Postgres.
The corresponding Mongo documents were not updated, leaving the
`is_deleted` flag set to `False`.

This caused the API to continue reporting attachments as active, leading
the UI to try to fetch and display files that had already been deleted.

With this fix, the `auto_delete_excess_attachments` task also updates
Mongo using `ParsedInstance.bulk_update_attachments`, ensuring that
`is_deleted` is set to `True`. As a result, the API and UI now
immediately reflect the correct state after cleanup.

6502 of 10194 branches covered (63.78%)

24462 of 30045 relevant lines covered (81.42%)

0.81 hits per line

Source Files on job 17134834919.2
  • Tree
  • List 665
  • Changed 29
  • Source Changed 0
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 17134834919
  • 5637852b on github
  • Prev Job for on release/2.025.34 (#17128183552.1)
  • Next Job for on release/2.025.34 (#17157421434.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