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

kobotoolbox / kpi / 19001516134
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1452-new_action
DEFAULT BRANCH: master
Ran 01 Nov 2025 07:55PM UTC
Jobs 2
Files 861
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

01 Nov 2025 07:21PM UTC coverage: 81.131% (+0.009%) from 81.122%
19001516134

push

github

web-flow
fix(assets): handle anonymous user access on asset snapshot list DEV-1105 (#6433)

### 📣 Summary
Fixes an issue where anonymous users received a 500 error when accessing
the asset snapshots list endpoint. Anonymous requests now safely return
an empty response instead of causing a server error.

Backport of https://github.com/kobotoolbox/kpi/pull/6409


### 📖 Description
Previously, the `/api/v2/asset_snapshots/` endpoint raised a server
error when accessed anonymously, because the code attempted to access
`organization.is_admin_only()` even when no organization was associated
with the user.
This PR updates the filtering logic to handle anonymous users gracefully
and adds a unit test to ensure no 500 error occurs in such cases.

6941 of 10953 branches covered (63.37%)

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

26762 of 32986 relevant lines covered (81.13%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19001516134.1 01 Nov 2025 07:55PM UTC 861
78.83
2 19001516134.2 01 Nov 2025 07:59PM UTC 861
81.11
Source Files on build 19001516134
  • Tree
  • List 861
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 6a11318c on github
  • Prev Build on release/2.025.37 (#19000834151)
  • Next Build on release/2.025.37 (#19001559349)
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