-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-06-28] [HOLD for payment 2024-06-24] [$250] Workspace - Empty screen when transferring ownership of the workplace #43143
Comments
Triggered auto assignment to @johncschuster ( |
@johncschuster 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.Blank view when going to transfer ownership page. What is the root cause of that problem?When we press transfer owner, it will request a check and navigate to the check page with a default error param of App/src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx Lines 131 to 134 in 198b473
After the check is done, it will check whether the error param passed to the page is the same as the error from the check that we request before. App/src/pages/workspace/members/WorkspaceOwnerChangeCheck.tsx Lines 44 to 51 in 198b473
If it's not the same, we don't display anything, but if it's the same, we will display the text to explain the error. In our case, I get a However, the app is supposed to update the error params when the check is done (in a useEffect). There is currently 2 places that do this. One in the check page itself, App/src/pages/workspace/members/WorkspaceOwnerChangeWrapperPage.tsx Lines 51 to 54 in 198b473
and the other one is in the member details page. App/src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx Lines 94 to 97 in 198b473
This dupe logic can be cleaned up. However, a recent change from #42335 doesn't allow to perform a navigate to the same screen even if the params is different (in our case the error param). App/src/libs/Navigation/linkTo/index.ts Lines 180 to 183 in 198b473
So, the error param is never updated. What changes do you think we should make in order to solve the problem?First of all, I'd to suggest a cleanup to the dupe error check logic. First, remove the exception of no billing card error here, we want to update any error we got App/src/pages/workspace/members/WorkspaceOwnerChangeWrapperPage.tsx Lines 51 to 53 in 198b473
Why the exception is there in the first place? I believe that's because initially, no billing card has a separate page to show the error. In this commit, you can see that when we press transfer owner, it won't immediately navigate us to the owner change check page. Instead, it will wait for the request to done first and if it's error, it checks whether it's a no billing card error or other errors. If it's no billing card error, it will navigate to no billing card error page, otherwise it will go to WORKSPACE_OWNER_CHANGE_CHECK, which is the page that we use now for all errors. Then, we can remove the one from the member detail page. App/src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx Lines 87 to 97 in 198b473
Now, the real solution to the issue is that we need to allow to navigate to the same screen if the params are different. We can follow a similar check as we already have here. App/src/libs/Navigation/linkTo/index.ts Lines 75 to 81 in 198b473
Or, we can use |
Job added to Upwork: https://www.upwork.com/jobs/~019cbfaae4a7b3b66e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 ( |
Reviewing proposals |
This isn’t a bug with straightforward root cause and fix - it's related to subtle navigation feature and function. So, I'll need to take more time to understand the root cause. |
I'll prioritise this tmr. |
I think @bernhardoj 's RCA is correct and their solution to include route parameters check for SideModalNavigator also makes sense to me. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @madmax330, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @eh2077 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @eh2077 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.84-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-06-24. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.85-7 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-06-28. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@eh2077 can you address the BZ Checklist please? Thank you! |
I have issued payment. We're just waiting on the completion of the BZ Checklist. |
@eh2077 bump on this. Can you complete the BZ Checklist so we can button this one up? Thank you! |
Sure I'll complete the checklist by tomorrow thank you |
Checklist
Regression test
Do we agree 👍 or 👎 |
Thanks for completing that, @eh2077! |
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: 1.4.79-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4593414&group_by=cases:section_id&group_order=asc&group_id=229065
Email or phone of affected tester (no customers): applausetester+47pronin@applause.expensifail.com
Issue reported by: Applause - Internal Team
Action Performed:
As User A:
As User B:
Expected Result:
Success screen should be displayed
Actual Result:
Empty screen appears with no-name button before success screen
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6502388_1717571511325.video_40.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @johncschusterThe text was updated successfully, but these errors were encountered: