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

kobotoolbox / kpi / 14757004560
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 30 Apr 2025 03:03PM UTC
Jobs 2
Files 653
Run time 278min
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

30 Apr 2025 02:26PM UTC coverage: 80.858% (+0.008%) from 80.85%
14757004560

push

github

web-flow
feat(attachments): new endpoint to bulk delete all attachments from a submission TASK-1524 (#5705)

### đŸ“Ŗ Summary
Add new endpoint which allows users to delete all attachments from a
submission.

### 📖 Description

ENDPOINT: `/api/v2/assets/<asset_uid>/data/<data_id>/attachments/bulk/`
- Users can only make DELETE requests to this endpoint
- Users must have either partial or full edit_submission permissions in
order to delete attachments

### 👀 Preview steps
1. â„šī¸ have account and a project that has multiple attachments
2. Make some submissions with a few attachments
4. đŸŸĸ Make a `DELETE` request and verify that you receive a `200 OK`
response with the message: "X attachments deleted"
6. Check out the database 
7. Verify that the Attachments are no longer present 
8. Verify that AttachmentTrash.objects.all().count() should be a least 1
(or more)
11. Share the project with **another user** and grant them permission to
edit submissions
12. đŸŸĸ Make a `DELETE` request as ** another user** and verify that you
receive a `200 OK`
13.  Grant  **partial user** partial permissions to edit submissions
12. đŸŸĸ Make a `DELETE` request as ** partial user** and verify that you
receive a `200 OK`

---------

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

6161 of 9808 branches covered (62.82%)

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

23575 of 29156 relevant lines covered (80.86%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14757004560.1 30 Apr 2025 03:03PM UTC 653
78.72
2 14757004560.2 30 Apr 2025 03:04PM UTC 653
80.84
Source Files on build 14757004560
  • Tree
  • List 653
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • cda38ac6 on github
  • Prev Build on main (#14755269238)
  • Next Build on main (#14759199675)
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