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

kobotoolbox / kpi / 17493291789
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1452-new_action
DEFAULT BRANCH: master
Ran 05 Sep 2025 01:13PM 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

05 Sep 2025 12:34PM UTC coverage: 81.1% (-0.007%) from 81.107%
17493291789

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)

6938 of 10946 branches covered (63.38%)

40 of 56 new or added lines in 6 files covered. (71.43%)

6 existing lines in 4 files now uncovered.

26712 of 32937 relevant lines covered (81.1%)

1.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.67
-1.01% kpi/deployment_backends/mock_backend.py
2
74.96
-0.08% kpi/deployment_backends/openrosa_backend.py
4
82.31
-0.18% kpi/deployment_backends/base_backend.py
9
45.71
-5.9% kobo/apps/data_collectors/admin.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
81.82
18.18% kobo/apps/accounts/utils.py
1
81.69
33.8% kobo/apps/mass_emails/user_queries.py
1
95.65
37.68% kobo/apps/trackers/utils.py
3
0.0
-100.0% kobo/settings/testing_no_stripe.py
Jobs
ID Job ID Ran Files Coverage
1 17493291789.1 05 Sep 2025 01:13PM UTC 862
81.08
2 17493291789.2 05 Sep 2025 01:20PM UTC 862
78.79
Source Files on build 17493291789
  • 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
  • a35dc708 on github
  • Prev Build on main (#17492090878)
  • Next Build on main (#17499518768)
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