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

kobotoolbox / kpi / 17557396938 / 1
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 08 Sep 2025 04:59PM UTC
Files 863
Run time 30s
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

08 Sep 2025 04:22PM UTC coverage: 78.801% (+0.01%) from 78.787%
17557396938.1

push

github

web-flow
feat(dataCollectors): create authentication class for data collectors DEV-787 (#6203)

### 💭 Notes
Developer-only changes. Sets up the authentication class we will use to
authenticate DataCollectors, who have authentication tokens but are not
actual Django users.
Since we need some kind of user to verify permissions, we create a new
"fake" user class, DataCollectorUser, that inherits from AnonymousUser.
This type of user has a list of assets it is allowed to view/submit to.
When we authenticate, we grab the token from the url and use it to look
up a DataCollector object. If there is one, we create a new
DataCollectorUser and give it a list of assets corresponding to the
assets belonging to the DataCollector's group. This DataCollecotrUser's
only permissions are PERM_ADD_SUBMISSION on any asset in its whitelist.

### 👀 Preview steps
None, dev-only.

6759 of 11007 branches covered (61.41%)

25987 of 32978 relevant lines covered (78.8%)

0.79 hits per line

Source Files on job 17557396938.1
  • Tree
  • List 863
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 17557396938
  • 6dfdcd79 on github
  • Prev Job for on main (#17499518768.1)
  • Next Job for on main (#17557578065.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