-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: reduced unnecessary API calls on workspace features #61169
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
fix: reduced unnecessary API calls on workspace features #61169
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
@mountiny kindly reminder (pending your review) |
@mountiny could you review it again? Conflicts resolved. |
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.
Thank you! On all the other workspace settings pages, we do not have any extra calls right?
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
I haven’t noticed any, but if something comes up, feel free to assign me - I have the context and can take care of it quickly. |
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.45-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.45-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.45-21 🚀
|
// useFocus would make getWorkspaceMembers get called twice on fresh login because policyEmployee is a dependency of getWorkspaceMembers. | ||
useEffect(() => { | ||
if (!isFocused) { | ||
return; | ||
} | ||
getWorkspaceMembers(); | ||
setSelectedEmployees([]); |
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.
This seems like a main
merge conflict. @martasudol Can you please raise a quick PR and remove this line
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.
@s77rt was this handled? @martasudol
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.
Sorry folks, I don't follow. What's the conflict? I verified and in main
it works correctly.
Explanation of Change
This PR provides a fix for redundant API calls on report fields & members workspace pages.
Fixed Issues
$#61061
Tests
Same for
Report Fields
page.Offline tests
Same as Tests.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
N/AAndroid: mWeb Chrome
N/AiOS: Native
N/AiOS: mWeb Safari
N/AMacOS: Chrome / Safari
Nagranie.z.ekranu.2025-04-30.o.13.04.26.mov
MacOS: Desktop
N/A