-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-11-20] [$250] Web - Workspace - Members are unselected when refresh Add message page and go back #49256
Comments
Triggered auto assignment to @RachCHopkins ( |
@RachCHopkins FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Workspace - Members are unselected when refresh Add message page and go back What is the root cause of that problem?The What changes do you think we should make in order to solve the problem?Remove the following codes App/src/pages/workspace/WorkspaceInvitePage.tsx Lines 78 to 83 in 19d037b
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Workspace - Members are unselected when refresh Add message page and go back What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
useEffect(() => {
return () => {
if (firstRenderRef.current) {
return;
}
Member.setWorkspaceInviteMembersDraft(route.params.policyID, {});
};
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
}, [route.params.policyID]); Result |
Reproduced! |
Job added to Upwork: https://www.upwork.com/jobs/~021836242370984040873 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
@RachCHopkins, @alitoshmatov Huh... This is 4 days overdue. Who can take care of this? |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/pages/workspace/WorkspaceInvitePage.tsx Lines 79 to 81 in f8add4e
to be called unnecessarily, contributing to the current bug and impacting the app's performance. What changes do you think we should make in order to solve the problem?
App/src/pages/workspace/WorkspaceInvitePage.tsx Lines 78 to 83 in f8add4e
and use:
What alternative solutions did you explore? (Optional) |
@alitoshmatov can you take a look at this proposal please? |
Working on it |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@nyomanjyotisa Thank you for your proposal. I think your RCA is not correct, that piece of code was added to solve this exact issue |
@Krishna2323 @truph01 Thank you for your proposals. If the root cause is component mounting and unmounting multiple times, shouldn't we fix this problem rather than changing cleanup function to accommodate this multiple mounting. |
Why did you think like that? |
My proposal does not do like that. The current page's structure is |
@RachCHopkins @alitoshmatov this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@alitoshmatov I don't think multiple renders are the problem here because the component will render twice or multiple times when the onyx data changes. App/src/pages/workspace/withPolicyAndFullscreenLoading.tsx Lines 41 to 48 in 76c5c81
My alternative solution uses the same solution applied for adding the members on initial render. App/src/pages/workspace/WorkspaceInvitePage.tsx Lines 130 to 139 in d0a51b8
|
📣 @truph01 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@neil-marcellini @alitoshmatov I've created a draft PR, but I'm encountering an error in step 3 when refreshing the Add Message page. I've reached out to the author of the PR for clarification on what might be causing the issue. |
Ok sounds good. Please keep debugging yourself as well. |
@neil-marcellini, @RachCHopkins, @alitoshmatov, @truph01 Huh... This is 4 days overdue. Who can take care of this? |
PR is ready |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.60-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-11-20. 🎊 For reference, here are some details about the assignees on this issue:
|
@alitoshmatov @RachCHopkins @alitoshmatov The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
@alitoshmatov can you please do the checklist before I pay this tomorrow? |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
No regression needed |
Payment Summary:
Upwork job here |
Contributors have been paid, the contracts have been completed, and the Upwork post has been closed. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.34-2
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): applausetester+gm103117@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Members should be selected
Actual Result:
Members are deselected
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6602434_1726237027827.Recording__3926.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alitoshmatovThe text was updated successfully, but these errors were encountered: