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

kobotoolbox / kpi / 18933945241
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 30 Oct 2025 08:40AM UTC
Jobs 2
Files 877
Run time 4min
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.348%. Remained the same
18933945241

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>

7071 of 11112 branches covered (63.63%)

27345 of 33615 relevant lines covered (81.35%)

1.6 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
85.0
-5.0% kpi/urls/__init__.py
1
93.62
-2.13% kpi/utils/django_orm_helper.py
3
90.52
-2.59% kpi/views/environment.py
24
75.73
-23.3% kpi/utils/usage_calculator.py
Jobs
ID Job ID Ran Files Coverage
1 18933945241.1 30 Oct 2025 08:40AM UTC 875
78.95
2 18933945241.2 30 Oct 2025 08:44AM UTC 877
81.31
Source Files on build 18933945241
  • Tree
  • List 877
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 3498d6b9 on github
  • Prev Build on main (#18913905814)
  • Next Build on main (#18955393458)
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