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

kobotoolbox / kpi / 26953616674 / 3
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 04 Jun 2026 01:11PM UTC
Files 879
Run time 23s
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

04 Jun 2026 01:06PM UTC coverage: 53.534% (-0.03%) from 53.568%
26953616674.3

push

github

web-flow
feat(asset): allow owners to delete empty assets DEV-1988 (#7090)

### đŸ“Ŗ Summary
Allow users to delete assets they have created if there are no
submissions.


### 📖 Description
Extends permission to delete an asset to a user if:
1. They created the asset
2. They have the manage_asset permission
3. The asset has no submissions


### 💭 Notes
Both single delete and bulk delete go through the bulk serializer, so
the change had to be made there in addition to the permissions check for
the single DELETE.
Adds the ability to pass a prefetched list of ObjectPermissions to pass
to `has_perm` to avoid multiple round trips to the DB for each asset.


### 👀 Preview steps

1. â„šī¸ have an account and a project
2. Delete all submissions from the project
4. Add the account to an MMO with a different owner so the project is
transferred
5. From a terminal, DELETE to `api/v2/assets/<project_uid>` as the
account user (not the organization owner)
7. 🔴 [on main] 403
8. đŸŸĸ [on PR] the asset is deleted
9. Create another asset and make sure it has 0 submissions
10. From a terminal, POST to `/api/v2/assets/bulk` with
```
{
"payload": {
     "asset_uids": ["<asset uid>"],
     "action": "delete"
}
}
```
7. 🔴 [on main] 403
8. đŸŸĸ [on PR] the asset is deleted

5029 of 12111 branches covered (41.52%)

19357 of 36158 relevant lines covered (53.53%)

0.54 hits per line

Source Files on job 26953616674.3
  • Tree
  • List 879
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 26953616674
  • 36e7ea55 on github
  • Prev Job for on main (#26946674527.3)
  • Next Job for on main (#26967058193.3)
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