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

kobotoolbox / kpi / 14964165104
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 12 May 2025 05:34AM UTC
Jobs 2
Files 654
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

12 May 2025 04:59AM UTC coverage: 80.914% (+0.07%) from 80.846%
14964165104

push

github

web-flow
feat(attachments): update admin model to support attachments in trash bin TASK-1546 (#5738)

### 📣 Summary
Improved the admin interface to support managing attachments in the
trash bin.



### 📖 Description
Attachments that are moved to the trash can now be viewed and managed
directly from the admin panel. This includes the ability to permanently
delete attachments from the trash ("Empty trash") or restore them ("Put
back"). These actions update relevant storage counters and are logged in
the AuditLogs. This enhancement provides better visibility and control
over trashed attachments for admins.



### 👀 Preview steps
1. Have an account and submission with an attachment.
2. Move the attachment(s) to trash using the bulk delete endpoint and
confirm that storage counters decrease:
```
DELETE api/v2/assets/<asset_id>/attachments/bulk/
{
  "attachment_uids": ["<attachment_uid>"]
}
```
3. In the admin under Trash Bin, select the trashed attachment and
choose "Empty trash". Confirm the attachment's `delete_status` is now
`deleted`.
4. Repeat the above, but select "Put back attachments". Confirm the
`delete_status` is reset to `None` and storage counters are restored.

6203 of 9867 branches covered (62.87%)

34 of 43 new or added lines in 4 files covered. (79.07%)

23719 of 29314 relevant lines covered (80.91%)

1.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
64.49
3.68% kobo/apps/trash_bin/admin.py
Jobs
ID Job ID Ran Files Coverage
1 14964165104.1 12 May 2025 05:34AM UTC 654
78.79
2 14964165104.2 12 May 2025 05:37AM UTC 654
80.89
Source Files on build 14964165104
  • Tree
  • List 654
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • eaaefd69 on github
  • Prev Build on main (#14913522443)
  • Next Build on main (#14999187649)
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