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

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

Build:
Build:
LAST BUILD BRANCH: anji/dev-1083-refactor-addons
DEFAULT BRANCH: master
Ran 30 Oct 2025 08:44AM UTC
Files 877
Run time 45s
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

30 Oct 2025 08:05AM UTC coverage: 81.315% (+2.4%) from 78.948%
18933945241.2

push

github

web-flow
refactor(members): adopt Orval for members and invites DEV-870 DEV-871 DEV-947 (#6090)

### 💭 Notes

Refactor organization member and invites endpoints to use generated
react-query helpers fully with invalidations and optimistic updates.

Use `setMutationDefaults` as a means to centralize invalidations and
optimistic update logic.

### 👀 Preview steps

1. have local env with a project
2. in django admin panel create and enable organization for the super
user
2. in django admin panel create another user
3. login as superuser, go to
http://kf.kobo.local/#/account/organization/members
4. invite the user
5. 🟢 notice that invite is in the list
6. in devtools, set throttling to "GPRS"
7. edit the invite's role
8. 🟢 [on pr] notice that invite in the list updates immediately
- that's [optimistic
updates](https://tanstack.com/query/latest/docs/framework/react/guides/optimistic-updates)
working
8. 🟢 [on pr] notice that api request is sent and succeeds but doesn't
re-render the page
- that's react-query's auto-reconciliation [structural
sharing](https://tanstack.com/query/latest/docs/framework/react/guides/render-optimizations#structural-sharing)
working to avoid unnecessary re-renders
9. in devtools, set throttling to "offline"
10. edit the invite's role again
8. 🟢 [on pr] notice that role in the list updates immediately..
   - that's optimistic updates working
8. 🟢 [on pr] ..but the API request fails..
9. 🟢 [on pr] ..and the role reverts to previous value
   - that's rolling back optimistic updates working

---------

Co-authored-by: Leszek Pietrzak <leszek@magicznyleszek.xyz>

7117 of 11173 branches covered (63.7%)

27334 of 33615 relevant lines covered (81.31%)

0.81 hits per line

Source Files on job 18933945241.2
  • Tree
  • List 877
  • Changed 29
  • Source Changed 0
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 18933945241
  • 3498d6b9 on github
  • Prev Job for on main (#18913905814.1)
  • Next Job for on main (#18955393458.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