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

kobotoolbox / kpi / 15884288316
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 25 Jun 2025 07:08PM UTC
Jobs 1
Files 638
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

25 Jun 2025 06:32PM UTC coverage: 80.741% (+0.05%) from 80.687%
15884288316

push

github

web-flow
fix(assets): fix empty xml is returned when XLSForm is invalid DEV-576 (#5855)

### 📣 Summary
Fixes a bug where downloading the XML of an invalid XLSForm returned a
200 response with an empty file. We now returns an error if the form
fails to compile to XML.


### 📖 Description
Previously, if a user uploaded an invalid XLSForm, the system would
allow the asset to be created, and the Download XML link would appear.
However, clicking it would return a 200 response with an empty xml file.

This fix ensures that:
- The invalid XLSForm still results in a saved AssetSnapshot (for
debugging and traceability)
- The API endpoint for downloading the XML (`.xml`) now checks the
compilation status
- If the XML compilation failed (status: 'failure'), an error is
returned with a helpful message

This avoids silent failures and meets the expectation that invalid form
structure should be clearly communicated at the point of failure.

6138 of 9732 branches covered (63.07%)

5 of 5 new or added lines in 1 file covered. (100.0%)

4 existing lines in 2 files now uncovered.

23176 of 28704 relevant lines covered (80.74%)

0.81 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
75.69
0.52% kpi/renderers.py
3
93.79
-0.62% kobo/apps/stripe/views.py
Jobs
ID Job ID Ran Files Coverage
1 15884288316.1 25 Jun 2025 07:08PM UTC 638
80.74
Source Files on build 15884288316
  • Tree
  • List 638
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 87f18ae3 on github
  • Prev Build on release/2.025.14 (#15884158458)
  • Next Build on release/2.025.14 (#15912445648)
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