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

kobotoolbox / kpi / 17134834919
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 21 Aug 2025 06:35PM UTC
Jobs 2
Files 665
Run time 2min
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.438% (-0.007%) from 81.445%
17134834919

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.

6454 of 10135 branches covered (63.68%)

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

24468 of 30045 relevant lines covered (81.44%)

1.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
42.5
-0.92% kobo/apps/trash_bin/tasks/attachment.py
Jobs
ID Job ID Ran Files Coverage
1 17134834919.1 21 Aug 2025 06:35PM UTC 665
78.92
2 17134834919.2 21 Aug 2025 06:40PM UTC 665
81.42
Source Files on build 17134834919
  • Tree
  • List 665
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 5637852b on github
  • Prev Build on release/2.025.34 (#17128183552)
  • Next Build on release/2.025.34 (#17157421434)
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