Skip to content

[HOLD for payment 2024-08-02] [$500] "Go back to home page" in LHN doesn't work when WS deleted from secondary device #36266

Closed

Description

@kavimuru

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.39-0
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):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:

Action Performed:

Prerequisite: Main and secondary devices logged in to the same user in New Expensify

  1. [Main device] Create new Workspace
  2. [Main device] Navigate to Members
  3. [Secondary device] Delete Workspace created in Main device
  4. [Main device] Click on "Go back to home page" in LHN

Expected Result:

User should be redirected to Workspaces settings.

Actual Result:

Nothing happens when user clicks on "Go back to home page" in LHN

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6373526_1707483142078.2024-02-08_23-53-05.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0170390297c07d44ce
  • Upwork Job ID: 1755993628416561152
  • Last Price Increase: 2024-02-16
Issue OwnerCurrent Issue Owner: @MitchExpensify

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    BugSomething is broken. Auto assigns a BugZero manager.
    on Feb 9, 2024
  2. changed the title [-]"Go back to home page" in LHN doesn't work when WS deleted from secondary device[/-] [+][$500] "Go back to home page" in LHN doesn't work when WS deleted from secondary device[/+] on Feb 9, 2024
  3. melvin-bot commented on Feb 9, 2024

    @melvin-bot
  4. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Feb 9, 2024
  5. melvin-bot commented on Feb 9, 2024

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann (External)

  6. melvin-bot commented on Feb 9, 2024

    @melvin-bot

    Triggered auto assignment to @MitchExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  7. kavimuru commented on Feb 9, 2024

    @kavimuru
    Author

    We think that this bug might be related to #wave8-collect-admins

  8. jeremy-croff commented on Feb 9, 2024

    @jeremy-croff
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    The Go back to home page link is not taking you back home

    What is the root cause of that problem?

    The link actions is defined to dismiss the modal it's expected to be in. The Component is FullPageNotFoundView. however we are not in a modal. This is part of navigation previous navigation changes.

    What changes do you think we should make in order to solve the problem?

    We should update the link action from onLinkPress = () => Navigation.dismissModal() to() => Navigation.goBack(ROUTES.HOME)
    This way the action semantically matches the user text, and can resolve the navigation action without erroring.

    What alternative solutions did you explore? (Optional)

  9. jeremy-croff commented on Feb 9, 2024

    @jeremy-croff
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    The Go back to home page link is not taking you back to settings

    What is the root cause of that problem?

    The link is not doing anything because the button action is trying to dismiss a modal. The Component is this logic is in is, FullPageNotFoundView. however we are not in a modal. This is part of navigation previous navigation changes.

    What changes do you think we should make in order to solve the problem?

    If we want to navigate back to the workspace settings, we want it to be specific to this flow as not all FullPageNotFoundView will want to go to settings.

    We should update the link action from onLinkPress = () => Navigation.dismissModal() to () => Navigation.goBack(ROUTES.HOME, true),
    and add a new notFound link text with copy to navigate back generically to the previous screen (and not have it say home page) if we want to go back the the previous screen, like settings.
    This true boolean on goBack uses ROUTES.HOME as a fallback if there's no previous stack to goBack to.

  10. 55 remaining items

  11. moved this from Release 1: Ideal Nav & Collect Simplfied Profile, Members, Categories, Workflows (approvals) to Done in [#whatsnext] Wave 08 - Collect Plan Adminson Feb 19, 2024
  12. melvin-bot commented on Apr 18, 2024

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  13. added
    ReviewingHas a PR in review
    and removed on May 8, 2024
  14. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Jul 26, 2024
  15. changed the title [-][$500] "Go back to home page" in LHN doesn't work when WS deleted from secondary device[/-] [+][HOLD for payment 2024-08-02] [$500] "Go back to home page" in LHN doesn't work when WS deleted from secondary device[/+] on Jul 26, 2024
  16. melvin-bot commented on Jul 26, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. melvin-bot commented on Jul 26, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.12-0 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-08-02. 🎊

    For reference, here are some details about the assignees on this issue:

    • @DylanDylann requires payment (Needs manual offer from BZ)
  18. melvin-bot commented on Jul 26, 2024

    @melvin-bot

    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:

    • [@DylanDylann] The PR that introduced the bug has been identified. Link to the PR:
    • [@DylanDylann] 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:
    • [@DylanDylann] 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:
    • [@DylanDylann] Determine if we should create a regression test for this bug.
    • [@DylanDylann] 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.
    • [@MitchExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsWeeklyKSv2

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions