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

kobotoolbox / kpi / 18280972546
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1272-migrations-discrepancy
DEFAULT BRANCH: master
Ran 06 Oct 2025 01:07PM UTC
Jobs 2
Files 862
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

06 Oct 2025 12:33PM UTC coverage: 81.128% (+0.03%) from 81.099%
18280972546

push

github

web-flow
feat(dataCollectors): allow DCs access to read-only OpenRosa endpoints DEV-788 (#6258)

### đŸ“Ŗ Summary
Allow data collectors to view surveys in Enketo.


### 📖 Description
Updates the OpenRosa endpoints to allow urls of the form
`/key/<token>/endpoint` and provide the correct response if the data
collector with the relevant token is part of a group that has access to
the xform.


### 💭 Notes
Updates the read-only OpenRosa endpoints (list, manifest, media, and
download) to accept requests with the token in the URL, using the new
DataCollectorTokenAuthentication class and checking to make sure the
DataCollectorUser has access to the xform via their group.


### 👀 Preview steps

1. â„šī¸ have an account and a project with at least one image
2. In django admin, create a data collector group with at least one data
collector
3. Assign the project to the data collector
4. In redis, get the enketo id with 'get
"or:kf.kobo.local:8080/key/<dc_token>,<asset_uid>"'
5. Go to http://ee.kobo.local/x/<enketo_id>
6. đŸŸĸ [on PR] The survey should load. Note the image may not properly
load if using kobo-compose but that's a pre-existing problem
7. Check the kpi logs
8. đŸŸĸ [on PR] There should be requests to
`/key/token/formList?formID=<xformid>`,
`/key/token/xformsManifest/<xform_pk>`, and
`/key/token/forms/<xform_pk>/form.xml`

6952 of 10964 branches covered (63.41%)

42 of 42 new or added lines in 3 files covered. (100.0%)

26787 of 33018 relevant lines covered (81.13%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18280972546.1 06 Oct 2025 01:07PM UTC 862
78.8
2 18280972546.2 06 Oct 2025 01:10PM UTC 862
81.11
Source Files on build 18280972546
  • Tree
  • List 862
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 3d082a4e on github
  • Prev Build on main (#18245722864)
  • Next Build on main (#18282321595)
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