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

kobotoolbox / kpi / 16119048341
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1452-new_action
DEFAULT BRANCH: master
Ran 07 Jul 2025 02:35PM 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

07 Jul 2025 01:58PM UTC coverage: 80.761% (+0.004%) from 80.757%
16119048341

push

github

web-flow
fix(attachments): include older xpaths in data api DEV-596 (#5862)

### 📣 Summary
Ensure we show the correct xpath for attachments submitted under older
versions of a survey..


### 📖 Description
There is a bug in KPI wherein if an image question was moved into a
group and the survey had responses from before and after the move, a red
exclamation mark would show up in cells containing attachments from
before the move. Part of the problem was that, for these attachments,
the API was returning empty xpaths. The remaining part of the problem is
in the front-end, but this PR fixes the API response.

### 💭 Notes
Updates the deployment backends to fetch all attachment xpaths using a
new `get_all_attachment_xpaths` that goes through all versions of an
asset and gets the xpaths of all attachment questions. Passes the result
to `_rewrite_json_attachment_urls` so we don't have to call the method
again for every submission. Removes the old `get_attachment_xpaths`
method and replaces all usages with passing the results of the new
method.

6142 of 9734 branches covered (63.1%)

14 of 15 new or added lines in 4 files covered. (93.33%)

23192 of 28717 relevant lines covered (80.76%)

0.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
64.06
0.0% kobo/apps/subsequences/utils/deprecation.py
Jobs
ID Job ID Ran Files Coverage
1 16119048341.1 07 Jul 2025 02:35PM UTC 638
80.76
Source Files on build 16119048341
  • Tree
  • List 638
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • fe400dc3 on github
  • Prev Build on release/2.025.14 (#16061126583)
  • Next Build on release/2.025.14 (#16119690201)
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