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

kobotoolbox / kpi / 25421334516 / 10
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-2128-fix-cast-issue
DEFAULT BRANCH: master
Ran 06 May 2026 07:17AM UTC
Files 910
Run time 24s
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

06 May 2026 07:05AM UTC coverage: 53.992% (+1.6%) from 52.364%
25421334516.10

push

github

web-flow
feat(frontend): setup default invalidations DEV-2010 (#6985)

### 💭 Notes

A code change for future. An aftermath of #6936. Added default
invalidations for few orval generated API hooks.

Changes here:
- `survey-data.ts` → `useAssetsPairedDataDestroy` invalidates the paired
data list for the asset on settled
- `manage-projects-and-library-content.ts` → new file;
`useAssetsPartialUpdate` invalidates both the paginated assets list and
the specific asset item on settled

### 👀 Preview steps

Setup:

1. Use DevTools → **Network** tab
2. Open a project that has **Connect Projects** enabled

Test 1 → `useAssetsPairedDataDestroy` invalidates the paired-data list

1. Navigate to Project → Settings → Connect Projects
2. Make sure at least one source project is already attached
3. Clear the Network log
4. Click Remove on an attached source and confirm
5. 🟢 You should see a `DELETE
/api/v2/assets/<uid>/paired-data/<paired-uid>/` request complete with
`204`
6. 🟢 Immediately after, a `GET /api/v2/assets/<uid>/paired-data/`
request fires automatically — this is the invalidation refetch
7. 🟢 Notice the removed source disappears from the list without a manual
page reload

Test 2 → `useAssetsPartialUpdate` invalidates the asset list and item

1. Stay on the same Connect Projects panel
2. Clear the Network log
3. Toggle the Share data switch (on → off, or off → on).
4. 🟢 A `PATCH /api/v2/assets/<uid>/` request fires with `200`
5. 🟢 After it completes, two refetch requests fire:
- `GET /api/v2/assets/` (the paginated list — `invalidatePaginatedList`)
   - `GET /api/v2/assets/<uid>/` (the specific asset — `invalidateItem`)
6. 🟢 Notice the sharing state reflects the server response. Other parts
of the UI that depend on the asset would also pick up the refreshed data

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Paulo Amorim <pauloamorimbr@gmail.com>

4824 of 12079 branches covered (39.94%)

19654 of 36402 relevant lines covered (53.99%)

0.54 hits per line

Source Files on job 25421334516.10
  • Tree
  • List 910
  • Changed 206
  • Source Changed 0
  • Coverage Changed 206
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25421334516
  • c14722b0 on github
  • Prev Job for on main (#25420629542.2)
  • Next Job for on main (#25423037411.9)
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