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

kobotoolbox / kpi / 19067757847 / 2
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1266-remove-kpi-v1-endpoints
DEFAULT BRANCH: master
Ran 04 Nov 2025 12:29PM UTC
Files 878
Run time 31s
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

04 Nov 2025 11:53AM UTC coverage: 81.269% (-0.009%) from 81.278%
19067757847.2

push

github

web-flow
refactor(reactQuery): standard error flow for Orval DEV-948 (#6439)

### 💭 Notes

Let's define expected behavior for API error handling on frontend as
follows (see `onErrorDefaultHandler`):
* backend owns error content: keep error messages updated in backend,
don't ignore/override them on frontend.
* frontend owns error display: ideally nicely inline, by default with a
toast using this default handler.
 
With that in mind, this PR introduces a default error handler
`onErrorDefaultHandler` for the react query and refactors all
react-query instances to use it properly. Dealing with frontend error
message overrides will be done seperately as part of DEV-1218.

Out of scope of this PR are non-react-query API calls and the backend
side for them, as both will be a long way to go.

This PR likely displays a few error toasts more than before, but I call
it `refactor` instead of `fix` because AFAIK the error handling so far
was undefined behavior and thus no expected behavior was changed. Let me
know if you disagree.

### 👀 Preview steps

1. â„šī¸ have two pending invites to your org
2. open member list in two windows side by side (switching tabs will
make react-query to refetch)
3. remove the invite in one tab
4. change the invite's role in the other tab
6. đŸŸĸ [on PR] notice a nice error toast (for ServerError)
7. invite the user again
8. in devtools set network to offline
4. change the invite's role again
6. đŸŸĸ [on PR] notice a nice error toast (for TypeError), actually two for
both mutation and invalidation

7134 of 11201 branches covered (63.69%)

27373 of 33682 relevant lines covered (81.27%)

0.81 hits per line

Source Files on job 19067757847.2
  • Tree
  • List 878
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 19067757847
  • e89b73bc on github
  • Prev Job for on main (#19042763707.2)
  • Next Job for on main (#19070236295.2)
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