-
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-04-25] [$500] Back to home leads to recent chat instead of LHN after opening non-existing profile #38390
Comments
Triggered auto assignment to @anmurali ( |
@anmurali 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. |
We think that this bug might be related to #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The most recent chat is shown when going back from not found profile page. What is the root cause of that problem?When we open an RHP page, in this case, the profile page, it will try to find the matching bottom tab, matching central pane screen, and the RHP itself and "push" them all to the stack. App/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts Lines 162 to 166 in e9c112a
To find the matching central pane, it will check the mapping here, App/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts Lines 132 to 144 in e9c112a
but in our case, a profile page doesn't have any mapping. We can't map a profile page to any central pane. Because the matching central pane is undefined, we use a default one and that is a report screen without any
So, when we press back, we will see the most recent report chat. This is useful for desktop view since a central pane screen is always visible, but it's not for a small screen. I can't reproduce the app navigates back to the not found page on dev (only on staging, maybe fixed). What changes do you think we should make in order to solve the problem?For a small screen, if there is no matching central pane, we shouldn't push the default, that is the report screen to the navigation.
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Profile page, back to home leads to recent chat instead of LHN What is the root cause of that problem?We are not setting the value of Line 131 in 8b54aff
What changes do you think we should make in order to solve the problem?set <FullPageNotFoundView
shouldShow={shouldShowBlockingView || CONST.RESTRICTED_ACCOUNT_IDS.includes(accountID)}
onLinkPress={() => {
Navigation.goBack(ROUTES.HOME);
}}
> What alternative solutions did you explore? (Optional) |
@anmurali Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I cannot reproduce on Staging or Production. I see the |
@anmurali hi, it's still reproducible, can you recheck, please? Screen.Recording.2024-03-19.at.13.31.36.movNotice that it goes back to report/chat screen instead of LHN. |
Issue is still reproducible on the latest build 1.4.57-2 0-02-01-5f68f73f9a6f56b253929cf49e651111cdb66963ca6c38c5370a4088f55ebe5c_f9f3703862c082fc.mp4Record_2024-03-27-20-51-50.mp4 |
Ah I see in mWeb what you mean. I missed that. |
Job added to Upwork: https://www.upwork.com/jobs/~01d8b170d82d50a998 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 ( |
reviewing 👀 |
@bernhardoj RCA makes most sense to me and the solution also works well! Their proposal looks good to me! 🎀 👀 🎀 C+ reviewed |
PR is ready cc: @ishpaul777 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.62-17 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-04-25. 🎊 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:
|
@bernhardoj is paid. @ishpaul777 can you complete the checklist so I can release your payment as well? |
Bump @ishpaul777 |
The PR that introduced the bug has been identified. Link to the PR: #37421 The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: https://github.com/Expensify/App/pull/37421/files#r1582555183 A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A Determine if we should create a regression test for this bug. - I dont think so. If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again. - Incase we do need one, steps to repro and expected result in OP looks good! |
Sorry for delay completed checklist! |
Woo! Thanks @ishpaul777. All you @anmurali 🎉 |
gentle bump @anmurali 😄 |
completed all payments! |
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: v1.4.52-5
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/4424104
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
User should be redirected back to LHN
Actual Result:
User is redirected to the most recent chat instead of LHN.
Hmm.. it's not here page is displayed twice.
Partially reproducible in Prod:
User is also redirected to the most recent chat instead of LHN, but not here page is shown once.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6414170_1710450722340.Record_2024-03-14-21-21-17.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: