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

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

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1453-run-external-process
DEFAULT BRANCH: master
Ran 14 Apr 2025 06:50PM UTC
Files 647
Run time 18s
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

14 Apr 2025 06:13PM UTC coverage: 78.831% (-0.02%) from 78.846%
14452689498.1

push

github

web-flow
refactor(attachments): expose uid instead of pk in the data API endpoint TASK-1522  (#5642)

### 💭 Notes

Exposes `uid` field in the attachments API response and also removed
`instance`, `xform`, and `id` fields.
The data API response for attachments now looks like this:

```
_attachments": [
        {
            "download_url": "<http://kf.kobo.local/api/v2/assets/amgRCC32PRBWSuxtthtvro/data/23/attachments/attund5vyh8rSr5QM86uPwUj/>",
            "download_large_url": "<http://kf.kobo.local/api/v2/assets/amgRCC32PRBWSuxtthtvro/data/23/attachments/attund5vyh8rSr5QM86uPwUj/large/>",
            "download_medium_url": "<http://kf.kobo.local/api/v2/assets/amgRCC32PRBWSuxtthtvro/data/23/attachments/attund5vyh8rSr5QM86uPwUj/medium/>",
            "download_small_url": "<http://kf.kobo.local/api/v2/assets/amgRCC32PRBWSuxtthtvro/data/23/attachments/attund5vyh8rSr5QM86uPwUj/small/>",
            "mimetype": "image/jpeg",
            "filename": "test/attachments/6c8611aa5ed349cc88da7d32fe4a9933/39e76a6d-380d-424c-b6f9-2d0a15a6985d/IMG_8891-12_10_59.jpg",
            "uid": "attund5vyh8rSr5QM86uPwUj",
            "question_xpath": "Point_and_shoot_Use_camera_to_take_a_photo"
        }
]

```

### 👀 Preview steps

1. â„šī¸ have account and a project
2. Make some submissions with attachments
3. Check out the data attachments api:
`https://[kpi]/api/v2/assets/<asset_uid>/data/<data_id>/attachments/<attachment_id>/`
4. Notice that on main the `<attachment_id>` uses the `pk`
5. Checkout this branch
6. đŸŸĸ now notice that the `<attachment_id>` uses the `uid`
7. Make sure that you can still access the attachment using the `pk`
8. Ensure you can make submissions with attachments
9. Ensure you can edit the attachment

6013 of 9792 branches covered (61.41%)

22838 of 28971 relevant lines covered (78.83%)

0.79 hits per line

Source Files on job 14452689498.1
  • Tree
  • List 647
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 14452689498
  • 708db308 on github
  • Prev Job for on main (#14452645680.1)
  • Next Job for on main (#14453649286.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