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

kobotoolbox / kpi / 17557396938
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1452-new_action
DEFAULT BRANCH: master
Ran 08 Sep 2025 04:59PM UTC
Jobs 2
Files 863
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

08 Sep 2025 04:22PM UTC coverage: 81.112% (+0.01%) from 81.1%
17557396938

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.

6946 of 10958 branches covered (63.39%)

37 of 41 new or added lines in 1 file covered. (90.24%)

26749 of 32978 relevant lines covered (81.11%)

1.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
90.24
kobo/apps/data_collectors/authentication.py
Jobs
ID Job ID Ran Files Coverage
1 17557396938.1 08 Sep 2025 04:59PM UTC 863
78.8
2 17557396938.2 08 Sep 2025 05:02PM UTC 863
81.09
Source Files on build 17557396938
  • 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 Repo
  • 6dfdcd79 on github
  • Prev Build on main (#17499518768)
  • Next Build on main (#17557578065)
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