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

kobotoolbox / kpi / 12037744252
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1665-scim-get-list-api-endpoints
DEFAULT BRANCH: master
Ran 26 Nov 2024 08:09PM UTC
Jobs 1
Files 608
Run time 1min
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

26 Nov 2024 07:33PM UTC coverage: 80.096% (+0.03%) from 80.064%
12037744252

push

github

web-flow
fix(OpenRosa): correct detection of root node tag name for XForm surveys TASK-1258 (#5272)

### 📣 Summary
Fixes the detection of the root node tag name of the survey in the XForm
XML, respecting the name field in XLSForm settings

### 📖 Description
This bugfix addresses two issues caused by wrong detection of the root
node tag name in the "survey" section of XForm XML:
- an empty `formhub/uuid` on submission creation
- a 500 error when a form is open in Enketo (preview/collection) when a
disclaimer is set

The update ensures that the name field, if provided in the XLSForm
settings, is respected as the root node's tag name.


### 👀 Preview steps

Bug template:
1. Log in as a regular user
2. Create a project (add `name` field with custom value in the
`settings` worksheet)
3. Deploy and submit data
  1. 🔴 [on main] notice that this `formhub/uuid` is empty
  2. 🟢 [on PR] notice that this is `formhub/uuid` matches XForm uuid
  
1. Go to admin and add a disclaimer
2. Try to open the project in Enketo (preview and collection)
  1. 🔴 [on main] notice that it raises a 500 error
  2. 🟢 [on PR] notice that the form opens

### 💭 Notes
This PR relies on the fact that `id_string` and `name` are always
provided in the XForm.json field (according to existing data on
production servers).
In case of preview, If the `name` field is not supplied, the fallback
mechanism uses the asset's UID to determine the tag name (as it is in
`main`).

5643 of 9109 branches covered (61.95%)

31 of 32 new or added lines in 5 files covered. (96.88%)

21606 of 26975 relevant lines covered (80.1%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12037744252.1 26 Nov 2024 08:09PM UTC 0
80.1
Source Files on build 12037744252
Detailed source file information is not available for this build.
  • Back to Repo
  • 0474aedf on github
  • Prev Build on main (#12037464032)
  • Next Build on main (#12052745069)
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