- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 206
 
refactor(members): adopt Orval for members and invites DEV-870 DEV-871 DEV-947 #6090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    708a733    to
    563a626      
    Compare
  
    dba2f08    to
    3eade12      
    Compare
  
    563a626    to
    8ec43e0      
    Compare
  
    3eade12    to
    fc8085c      
    Compare
  
    8ec43e0    to
    006359a      
    Compare
  
    fc8085c    to
    cb8f9de      
    Compare
  
    006359a    to
    3a900e6      
    Compare
  
    cb8f9de    to
    bfbd9e4      
    Compare
  
    3a900e6    to
    847c7b4      
    Compare
  
    b411641    to
    2fa3321      
    Compare
  
    60b1e32    to
    e6aee5a      
    Compare
  
    c8aaa26    to
    6964d89      
    Compare
  
    6964d89    to
    56a365a      
    Compare
  
    e6aee5a    to
    1461192      
    Compare
  
    
    
  Akuukis 
      added a commit
      that referenced
      this pull request
    
      Aug 28, 2025 
    
    
      
  
    
      
    
  
…93 (#6083) ### 💭 Notes Generate react-query helpers from API with Orval. By it's own does nothing. See these few refactors, the rest is for now unused generated files: - `jsapp/js/api.ts` - `package.json` - `package-lock.json` Configuration is split across these files: - `orval.config.js` - `jsapp/js/api/orval.mutator.ts` - `jsapp/js/api/orval.operationName.ts` - `scripts/generate_api.sh` - `.github/workflows/openapi.yml` See other refactor PRs that use these helpers to call API: - #6090 ### 👀 Preview steps 1. run kobo-install locally 2. `./run.py -cf run --rm kpi ./scripts/generate_api.sh` to re-generate helpers 3. notice that helpers are regenerated 4. click around so that some APIs are called the old way 5. notice that it still works and the refactors didn't break anything
56a365a    to
    7bca51f      
    Compare
  
    7441a31    to
    9adbd62      
    Compare
  
    18f0058    to
    b9c7201      
    Compare
  
    
              
                    magicznyleszek
  
              
              approved these changes
              
                  
                    Oct 28, 2025 
                  
              
              
            
            
09966a3    to
    6536e86      
    Compare
  
    6536e86    to
    9204577      
    Compare
  
    
              
                    magicznyleszek
  
              
              requested changes
              
                  
                    Oct 29, 2025 
                  
              
              
            
            
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found one problem in the UI:
- As org owner go to 
#/account/organization/members - Use "Invite members" button and in modal invite a member (e.g. "josh" as "Admin")
 - In the list of members, for "josh" use "…" button and "Remove invitation"
 - 🟢 Notice the "Invitation removed" notification
 - 🔴 Notice that "josh" still appears in the list
 - Switch to different browser tab
 - Switch back
 - 🟢 Notice that reactQuery triggers refetch and "josh" disappears from the list
 
d18ca4f    to
    3f62c19      
    Compare
  
    
              
                    magicznyleszek
  
              
              approved these changes
              
                  
                    Oct 29, 2025 
                  
              
              
            
            
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it works :) Found one typo
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
💭 Notes
Refactor organization member and invites endpoints to use generated react-query helpers fully with invalidations and optimistic updates.
Use
setMutationDefaultsas a means to centralize invalidations and optimistic update logic.👀 Preview steps