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

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

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1453-run-external-process
DEFAULT BRANCH: master
Ran 05 Sep 2025 01:13PM UTC
Files 862
Run time 28s
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

05 Sep 2025 12:34PM UTC coverage: 81.082% (-0.006%) from 81.088%
17493291789.1

push

github

web-flow
feat(dataCollectors): update enketo links when assigning assets to groups DEV-798 (#6197)

### đŸ“Ŗ Summary
Create/update enketo links for data collectors when assigning assets to
data collector groups.

### 📖 Description
Create the necessary enketo links for data collectors so they can
view/submit to the assets to which their group has access.


### 💭 Notes
This PR handles the following situations: 

A deployed asset is added to a data collector group -> we generate links
for every data collector in that group to that asset's endpoints
A deployed asset is removed from a data collector group -> we remove
every link for every data collector in that group to that asset
An asset with a data collector group is deployed for the first time ->
we generate links for every data collector in that group


### 👀 Preview steps
1. â„šī¸ have a superuser account and at least one another account with a
project my_project. Also have at least one undeployed project
2. In Django admin, create 2 new data collector groups (DCG_0 and DCG_1)
with at least 2 data collectors each (DC_00, DC_01 for DCG_0 and DC_10,
DC_11 for DCG_1)
3. In Django admin, assign my_project to DCG_0
4. In redis-cli, run hget "or:http://<kobo_url>/key/<DC_00's token>"
"my_project_uid" and make note of the enketo_id you get back
5. In the browser, navigate to <enketo_url>/x/<enketo_id>. Take note of
this url
6. đŸŸĸ You should get an error message Request to
http://kf.kobo.local:8080/key/<DC_00
token>/formList?formID=<my_project_uid> failed. This means it generated
the correct request, but we haven't set up authentication yet so we
expect it to fail
7. đŸŸĸ Repeat steps 4-6 for DC_01
8. In Django admin, remove my_project from DCG_0 and assign it to DCG_1
9. Navigate to the enketo urls you used for DC_01 and DC_11
10. đŸŸĸ Both old URLs should respond with Survey with this ID not found
11. Repeat steps 4-6 for DC_11 and DC_01
12. Add the undeployed project to DCG_0
13. Deploy the project
14. Repeat steps 4-6 for DC_... (continued)

6986 of 11005 branches covered (63.48%)

26706 of 32937 relevant lines covered (81.08%)

0.81 hits per line

Source Files on job 17493291789.1
  • 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 Build 17493291789
  • a35dc708 on github
  • Prev Job for on main (#17492090878.2)
  • Next Job for on main (#17499518768.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