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

kobotoolbox / kpi / 19067757847
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 04 Nov 2025 12:27PM UTC
Jobs 2
Files 878
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

04 Nov 2025 11:53AM UTC coverage: 81.302% (-0.008%) from 81.31%
19067757847

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

7088 of 11140 branches covered (63.63%)

27384 of 33682 relevant lines covered (81.3%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19067757847.1 04 Nov 2025 12:27PM UTC 876
78.92
2 19067757847.2 04 Nov 2025 12:29PM UTC 878
81.27
Source Files on build 19067757847
  • 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 Repo
  • e89b73bc on github
  • Prev Build on main (#19042763707)
  • Next Build on main (#19070236295)
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