-
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 2023-12-04] [$500] Chat - Notification preferences page appears again after refreshing the page #31688
Comments
Job added to Upwork: https://www.upwork.com/jobs/~017688084a85a7d457 |
Triggered auto assignment to @bfitzexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
👋 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:
|
📣 @github-actions[bot]! 📣
|
Triggered auto assignment to @Julesssss ( |
Not reproducible on production 20231122_181149.mp4 |
I'm available to raise a PR immediately if assigned ProposalPlease re-state the problem that we are trying to solve in this issue.After refreshing the page, the page appears for the second time. What is the root cause of that problem?This comes from this PR #28453 The PR will (correctly) make navigate with PUSH type have PUSH type when dispatching the navigation action, see here, so the navigation here thus pushing the screen to the state one more time, because initially the navigation state is already initialized with the initial route. So when going back it will go back to the same screen. We didn't recognize this issue earlier because we used to convert 'PUSH' to 'NAVIGATE' before dispatching the navigation action. What changes do you think we should make in order to solve the problem?Before navigation in here, check if the current route is the route we're trying to navigate to (by using
That navigation is needed in case of user logged out in native device and deep link, after logged in they should be redirected to the deep link. In that case the What alternative solutions did you explore? (Optional)Straight revert is also an option but the fix for this is quick so I don't think we need to straight revert. An alternate solution is in Or we can remove |
Thanks @tienifr, assigning you now |
📣 @abdulrahuman5196 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
@abdulrahuman5196 yes, I've updated |
@abdulrahuman5196 please check slack discussion |
This seems to be a wider issue with navigation, see #31661. It affects other places in the App and it's also not that sensitive. I'm gonna remove the blocker label. |
FYI: I tested just now and the mentioned issue is also fixed by this PR. |
That's great. Can you link that issue in the PR? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - Notification preferences page appears again after refreshing the page What is the root cause of that problem?This issue and other issues are caused by a flaw in our deepLinking and a section of AuthScreens.js code itself, let's start with AuthScreens.js: So in the below code we are trying to decide whether the app is opening up completely or just refreshing App/src/libs/Navigation/AppNavigator/AuthScreens.js Lines 191 to 195 in a273354
As you can see we are deciding this based on shouldGetAllData which is decided by the following const: App/src/libs/Navigation/AppNavigator/AuthScreens.js Lines 160 to 161 in a273354
And although this looks fine on the surface, there is a problem with Now to the issue with deepLinking, in Expensify.js we are calling What changes do you think we should make in order to solve the problem?To begin with we need to fix function isLoggingInAsNewUser(transitionURL: string, sessionEmail: string): boolean {
.....
if(!paramsEmail){
return false;
} After that we can make use of the same principle used to decide if the user is refreshing while deciding whether or not to call the function openReportFromDeepLink(url, isAuthenticated, userEmail) {
....
const isLoggingInAsNewUser = SessionUtils.isLoggingInAsNewUser(url, userEmail);
const didUserLoginOrSignup = SessionUtils.didUserLogInDuringSession() || isLoggingInAsNewUser;
if(!didUserLoginOrSignup){
return;
}
InteractionManager.runAfterInteractions(() => {
..... Result |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.3-11 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 2023-12-04. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
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:
|
Please complete the BZ checklist when you get a moment @abdulrahuman5196 - thank you! |
Not a direct regression. But from chain of PRs. We already discussed the same in slack.
Not required IMO. Since it was already found during regression testing on deployment. |
Cool, agreed on all of the above. We're all done here, closing this one out, thanks everyone |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR: #31287
Version Number: v1.4.2-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:
Expected Result:
After refreshing the page, the page will not appear for the second time.
Actual Result:
After refreshing the page, the page appears for the second time.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6286955_1700652985722.20231122_193559.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: