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

kobotoolbox / kpi / 14453649286 / 1
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: release/2.026.03
DEFAULT BRANCH: master
Ran 14 Apr 2025 07:42PM UTC
Files 647
Run time 37s
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

14 Apr 2025 07:05PM UTC coverage: 78.831% (-2.1%) from 80.957%
14453649286.1

push

github

web-flow
feature(attachments): add bulk deleting attachments using the row selector in table with mock api TASK-1516 TASK-1710 (#5626)

### 📣 Summary

Adds a way to bulk delete attachments for submissions through the table
view bulk options.

### 👀 Preview steps
Standard workflow:
1. Enable the `removingAttachmentsEnabled` feature flag
2. Have a survey with every media type as questions (image, video,
audio, file)
3. Submit responses to the survey with some combination of the media
types. I think the following is the simplest way to test all
permutations:
  - Submit 1 response for each media type
  - Submit 1 response that has every media type
4. Select some combination of responses via the bulk selection checkbox
5. Click "Delete media files only"
6. 🟢 Notice that the list of media files in the modal accurately
represents the available media files that can be deleted
7. 🟢 Notice that the "Delete" button is disabled until the user clicks
the acknowledgement checkbox

Some deleted files workflow:
1. Copy steps 1-3 above
2. Mock some deleted attachments
- To mock it, you can override submissions object in
`submissionsActions.getSubmissions.listen` from
`jsapp/js/actions/submissions.ts` file, like so:
     ```
     response.results.forEach((submission) => {
       submission._attachments.forEach((attachment) => {
         attachment.is_deleted = true
       })
     })
     ```
- Specifying only some responses via
`response.results[<index>]._attachments` is useful to test how many
attachments/submissions are displayed in the modal
3. Select a combination of responses that include ones with all their
attachments deleted (as done above)
4. 🟢 Notice that the list of media types in the modal only show those
that are not deleted or have the `is_deleted` tag
5. 🟢 Notice that if the user selects a submission (or a set of
submissions) with no valid attachments then the "Delete media files
only" does not appear
6. 🟢 Notice that submissions that don't have any valid attachm... (continued)

6013 of 9792 branches covered (61.41%)

22838 of 28971 relevant lines covered (78.83%)

0.79 hits per line

Source Files on job 14453649286.1
  • Tree
  • List 647
  • Changed 19
  • Source Changed 0
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 14453649286
  • 504bed7a on github
  • Prev Job for on main (#14452689498.2)
  • Next Job for on main (#14469071096.1)
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