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

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

Build:
Build:
LAST BUILD BRANCH: refactor-subsequences-2025
DEFAULT BRANCH: master
Ran 08 Sep 2025 05:02PM UTC
Files 863
Run time 42s
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: 81.093% (+2.3%) from 78.787%
17557396938.2

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.

6994 of 11017 branches covered (63.48%)

26743 of 32978 relevant lines covered (81.09%)

0.81 hits per line

Source Files on job 17557396938.2
  • Tree
  • List 863
  • Changed 29
  • Source Changed 0
  • Coverage Changed 29
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