-
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
[$500] Chat - When navigating to chat via URL, user has to tap on back arrow twice to return to LHN #40743
Comments
Triggered auto assignment to @robertjchen ( |
Triggered auto assignment to @alexpensify ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@alexpensify 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. |
We think this bug might be related to #vip-vsb |
Job added to Upwork: https://www.upwork.com/jobs/~01178464ec2ad2a33e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 ( |
We are getting close to deploying, I am going to demote this issue because:
|
Upwork job price has been updated to $500 |
ProposalPlease re-state the problem that we are trying to solve in this issue.User remains in the chat, has to tap on back arrow once again to return to the LHN. What is the root cause of that problem?When we open a report by deep link, we will navigate to the report here and it will call App/src/libs/actions/Report.ts Line 2437 in 915a1b6
Let see this condition here. We're comparing the params object of App/src/libs/Navigation/linkTo.ts Line 156 in 915a1b6
That makes we move to this case and then another report screen is opened because the App/src/libs/Navigation/linkTo.ts Line 176 in 915a1b6
What changes do you think we should make in order to solve the problem?We should only compare the reportID param as we did in the past instead of comparing the value of
or
App/src/libs/Navigation/linkTo.ts Line 156 in 915a1b6
What alternative solutions did you explore? (Optional)Or we can set
App/src/libs/Navigation/AppNavigator/Navigators/CentralPaneNavigator/BaseCentralPaneNavigator.tsx Line 42 in 915a1b6
|
Updated proposal to add alternative solution. |
@nkdengineer Thanks for your proposal! I agree with your RCA but I have concerns about your main solution - the That said, I think we can go with @nkdengineer 's proposal. 🎀👀🎀 C+ reviewed |
Current assignee @robertjchen is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Reports are opening twice when accessed via deep-linking by logged-in users or when the report is public. What is the root cause of that problem?When a user opens a report via deep-link, the openReportFromDeepLink function is called. This function includes However, this setup does not account for situations where the user is already signed in or the report is public. In these cases, the user won't be redirected to the sign-in page, and the report will be opened so the What changes do you think we should make in order to solve the problem?To address this issue, we should first check if the report is already open before initiating another navigation to the same report. We can achieve this by utilizing the const topmostReportId = Navigation.getTopmostReportId();
if (topmostReportId === reportID) {
return;
} |
Hi @eh2077, I would appreciate your feedback on my proposal. I believe we should not navigate to the report from the beginning if it is already open. |
@abzokhattab At the first glance, I'm not convinced your RCA and I have concerns about your solution - will it just avoid opening RHP screens? I could be wrong and I'll take a deeper look later. Sorry, I'll be offline in following hours. |
i will clarify it more. thanks
The part inside the InteractionManager.runAfterInteractions is intended for scenarios where an unauthenticated user accesses a private report using deeplinking (as mentioned in this comment). in this case, the user will be directed to the sign-in page and then be redirected to the report afterward However, this code does not account for situations where the user is already signed in or the report is public, in those cases the user won't be redirected to the sign-in page and the report will be already opened causing unnecessary navigation and thus opening the report twice. Does that answer your question? please let me know |
The solution here #40743 (comment) will cause the regression if we open the sub page of report i.e. report detail page by deep link. Actually, in |
@abzokhattab Thanks for your comment. I partially agreed with your RCA and I tested your solution. It fixes the issue and also avoids my concerns about opening RHP screens - the |
@nkdengineer Thanks for sharing your thoughts!
Yes, I agreed with you. This issue is ideal to be fixed in the |
According to the discussions above^, I tend to stick to the original review decision #40743 (comment) @robertjchen All yours. 🎀👀🎀 C+ reviewed |
Current assignee @robertjchen is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Appreciate the proposals and discussions here! 🙇 After reviewing, I think we will go with @nkdengineer 's proposal |
📣 @eh2077 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Weekly Update: Waiting for this one to go to Production |
Waiting for automation here |
@eh2077 - can you please confirm if there is any more action here? It looks like the automation didn't kick in, and I believe that the 7-day mark is today. I need to move forward with the payment process, but I want to double-check. Thanks! |
@nkdengineer - can you update me if there is any other action here? Thanks! |
Checklist
cc @alexpensify |
Payouts due: 2024-05-13 - delayed due to automation failure
Upwork job is here. This was treated as a High and is the reason for the payment amount. I've closed the job and paid everyone via Upwork. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.64-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4501393
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
Action Performed:
Expected Result:
User should redirected back to the LHN.
Actual Result:
User remains in the chat, has to tap on back arrow once again to return to the LHN.
Also reproducible when logging in via conversation direct URL.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6457935_1713817481164.Record_2024-04-22-22-07-59.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: