You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-03-07] [$500] Unlink - A non-stopping spinner is displayed when unlinking secondary contact method #36618
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 1.4.42-1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers):natnael.expensify+3@gmail.com Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
Add a secondary contact method
Don't verify it
Sign out > enter the secondary contact method > click 'Continue' > click on 'Unlink' button
Click on 'the validation link here' from email
Expected Result:
Sign in page should be displayed and a 'secondary login successfully unlinked' message should be displayed
Actual Result:
A non-stoping spinner displayed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Unlink - A non-stopping spinner is displayed when unlinking secondary contact method[/-][+][$500] Unlink - A non-stopping spinner is displayed when unlinking secondary contact method[/+]on Feb 15, 2024
Please re-state the problem that we are trying to solve in this issue.
Unlink page shows loading indicator indefinitely.
What is the root cause of that problem?
There are 2 issues.
First, when we navigate to ROUTES.HOME, it will go to the bottom tab navigator screen. The bottom tab navigator for the public screen is the sign-in page.
So, navigating to ROUTES.HOME will resolve to a navigation action that looks like below. Notice that it has a screen params of HOME.
But the public screen structure for the bottom tab navigator isn't the same as the auth screen structure (not a nested navigator as shown in the first permalink above), so the navigation will never succeed.
What changes do you think we should make in order to solve the problem?
The first issue has the same root cause as #36145 and I posted a solution there too and one of the solutions is to replace Navigation.navigate with Navigation.goBack. If we use this solution, then the 2nd issue won't happen.
What alternative solutions did you explore? (Optional)
If we want to keep Navigation.navigate(ROUTES.HOME), then we need to use the alternative solution from my proposal there. Then, we need to fix the public screen bottom tab navigator structure to:
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. - No
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 - N.A.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]Unlink - A non-stopping spinner is displayed when unlinking secondary contact method[/-][+][$500] Unlink - A non-stopping spinner is displayed when unlinking secondary contact method[/+]melvin-bot commentedon Feb 15, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0167c0a20638f140b9
melvin-bot commentedon Feb 15, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (
External)melvin-bot commentedon Feb 15, 2024
Triggered auto assignment to @isabelastisser (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.lanitochka17 commentedon Feb 15, 2024
We think that this bug might be related to #wave9
CC @MitchExpensify
bernhardoj commentedon Feb 16, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Unlink page shows loading indicator indefinitely.
What is the root cause of that problem?
There are 2 issues.
First, when we navigate to ROUTES.HOME, it will go to the bottom tab navigator screen. The bottom tab navigator for the public screen is the sign-in page.
App/src/libs/Navigation/AppNavigator/PublicScreens.tsx
Lines 21 to 25 in e3331db
We have a logic here to check if the bottom tab action doesn't exist, and then we return early.
App/src/libs/Navigation/linkTo.ts
Lines 203 to 210 in 9843f66
The action will be undefined if the bottom tab screen we are targeting is the same topmost bottom tab screen, in this case, the sign-in page
App/src/libs/Navigation/linkTo.ts
Lines 94 to 102 in 9843f66
The second issue is, that the bottom tab navigator is a nested navigator.
App/src/libs/Navigation/linkingConfig/config.ts
Lines 27 to 31 in e3331db
So, navigating to ROUTES.HOME will resolve to a navigation action that looks like below. Notice that it has a screen params of HOME.

But the public screen structure for the bottom tab navigator isn't the same as the auth screen structure (not a nested navigator as shown in the first permalink above), so the navigation will never succeed.
What changes do you think we should make in order to solve the problem?
The first issue has the same root cause as #36145 and I posted a solution there too and one of the solutions is to replace
Navigation.navigatewithNavigation.goBack. If we use this solution, then the 2nd issue won't happen.What alternative solutions did you explore? (Optional)
If we want to keep
Navigation.navigate(ROUTES.HOME), then we need to use the alternative solution from my proposal there. Then, we need to fix the public screen bottom tab navigator structure to:MitchExpensify commentedon Feb 16, 2024
I don't think this is wave 9 because it is not a bug experienced on a mainline onboarding flow
rushatgabhane commentedon Feb 17, 2024
🎀👀🎀
@bernhardoj's proposal makes sense to me #36618 (comment)
22 remaining items
MitchExpensify commentedon Mar 2, 2024
Reminder set to pay on the 7th
JmillsExpensify commentedon Mar 4, 2024
Thank you! Don't forget the payment summary as well, when we get there.
MitchExpensify commentedon Mar 7, 2024
Payment summary:
C+: $500 - @rushatgabhane NewDot
C: $500 - @bernhardoj
isabelastisser commentedon Mar 7, 2024
Payment processed in Upwork for @bernhardoj - $500.
isabelastisser commentedon Mar 7, 2024
@rushatgabhane, please complete the checklist above. Thanks!
isabelastisser commentedon Mar 10, 2024
@rushatgabhane to complete the checklist. Thanks!
#36618 (comment)
isabelastisser commentedon Mar 11, 2024
@rushatgabhane, please provide an update. Thanks!
isabelastisser commentedon Mar 11, 2024
I just DM'd @rushatgabhane.
rushatgabhane commentedon Mar 11, 2024
The PR that introduced the bug has been identified. Link to the PR: Fix App show error when open unlink in Desktop App #23738
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/23738/files#r1520478915
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. - No
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 - N.A.
rushatgabhane commentedon Mar 11, 2024
Sorry it took so long
@isabelastisser checklist done
JmillsExpensify commentedon Mar 11, 2024
$500 approved based on this summary and completed checklist.
isabelastisser commentedon Mar 14, 2024
All set!