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

kobotoolbox / kpi / 14453649286
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1453-run-external-process
DEFAULT BRANCH: master
Ran 14 Apr 2025 07:42PM UTC
Jobs 2
Files 647
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

14 Apr 2025 07:05PM UTC coverage: 80.978%. Remained the same
14453649286

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)

6135 of 9743 branches covered (62.97%)

23460 of 28971 relevant lines covered (80.98%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14453649286.1 14 Apr 2025 07:42PM UTC 647
78.83
2 14453649286.2 14 Apr 2025 07:52PM UTC 647
80.96
Source Files on build 14453649286
  • Tree
  • List 647
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 504bed7a on github
  • Prev Build on main (#14452689498)
  • Next Build on main (#14469071096)
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