Skip to content

[HOLD for payment 2024-12-20] [$250] Wrong page when navigating back from access level page #52904

Closed

Description

@m-natarajan

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: 9.0.64-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @DylanDylann
Slack conversation (hyperlinked to channel name): ts_external_expensify_bugs

Action Performed:

  1. Go To Security Page
  2. Add Copilot
  3. Click on any user
  4. Click on "FULL" access
  5. Click on access level row
  6. Click back button

Expected Result:

The App navigate to confirmation page

Actual Result:

The App navigate to the user selection page

Workaround:

Unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Screen.Recording.2024-11-21.at.17.31.08.mov
Recording.775.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021859633840404147585
  • Upwork Job ID: 1859633840404147585
  • Last Price Increase: 2024-11-28
  • Automatic offers:
    • DylanDylann | Contributor | 105191983
Issue OwnerCurrent Issue Owner: @DylanDylann

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Nov 21, 2024
  2. melvin-bot commented on Nov 21, 2024

    @melvin-bot

    Triggered auto assignment to @puneetlath (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. NJ-2020 commented on Nov 21, 2024

    @NJ-2020
    Contributor

    Proposal

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

    What is the root cause of that problem?

    Right here we go back to add delegate page instead of going back or passing the back to param

    <HeaderWithBackButton
    title={translate('delegate.accessLevel')}
    onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_ADD_DELEGATE)}

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

    We can just invoke the goBack without passing any fallback route

    onBackButtonPress={() => Navigation.goBack()}

    Or we can pass the backTo param as the fallback route

    We can do the same approach for other pages if needed

    What alternative solutions did you explore? (Optional)

  4. nkdengineer commented on Nov 21, 2024

    @nkdengineer
    Contributor

    Edited by proposal-police: This proposal was edited at 2024-11-21 13:46:08 UTC.

    Proposal

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

    Wrong page when navigating back from access level page

    What is the root cause of that problem?

    While we are on the role page by selecting the role at the confirmation page and navigate here

    onPress={() => Navigation.navigate(ROUTES.SETTINGS_DELEGATE_ROLE.getRoute(login, role))}

    nav stack: [user page, role page]

    Then we click to back button, it will navigate to the user selection page here.

    onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_ADD_DELEGATE)}

    Because we use NAVIGATE, it will go back to the page that is already in the stack.

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

    We should do the same way we did with approver flow here, here.

    Add type PUSH to this navigation

        onPress={() => Navigation.navigate(ROUTES.SETTINGS_DELEGATE_ROLE.getRoute(login, role), CONST.NAVIGATION.ACTION_TYPE.PUSH)}
    

    onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_DELEGATE_ROLE.getRoute(login, role))}

    What alternative solutions did you explore? (Optional)

  5. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Nov 21, 2024
  6. changed the title [-]Wrong page when navigating back from access level page[/-] [+][$250] Wrong page when navigating back from access level page[/+] on Nov 21, 2024
  7. melvin-bot commented on Nov 21, 2024

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

    @melvin-bot

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

  10. melvin-bot commented on Nov 25, 2024

    @melvin-bot

    @puneetlath, @eVoloshchak Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  11. puneetlath commented on Nov 25, 2024

    @puneetlath
    Contributor

    @eVoloshchak thoughts on the proposals?

  12. 29 remaining items

  13. melvin-bot commented on Dec 13, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.75-6 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-12-20. 🎊

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

  14. melvin-bot commented on Dec 13, 2024

    @melvin-bot

    @DylanDylann @DylanDylann The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  15. moved this from Bugs and Follow Up Issues to Hold for Payment in #expensify-bugson Dec 17, 2024
  16. melvin-bot commented on Dec 20, 2024

    @melvin-bot

    Issue is ready for payment but no BZ is assigned. @abekkala you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

  17. abekkala commented on Dec 20, 2024

    @abekkala
    Contributor

    @DylanDylann please complete checklist and I can process payments due today. thanks!

  18. abekkala commented on Dec 20, 2024

    @abekkala
    Contributor

    PAYMENT SUMMARY FOR DEC 20

  19. DylanDylann commented on Dec 20, 2024

    @DylanDylann
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
    • 2b. Reported on staging (eg. found during regression or PR testing)
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [Contributor] 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: Add copilot section to security page and add copilot #47353 (comment)

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue: https://github.com/Expensify/Expensify/issues/455639

    Regression Test Proposal

    Test:

    1. Go To the Security Page
    2. Add Copilot
    3. Click on any user
    4. Click on "FULL" access
    5. Click on the access level row
    6. Click back button
    7. Verify that: The App navigates to the confirmation page

    Do we agree 👍 or 👎

  20. abekkala commented on Dec 23, 2024

    @abekkala
    Contributor

    @DylanDylann @nkdengineer payments sent and contracts ended - thank you! 🎉

  21. moved this from Hold for Payment to Done in #expensify-bugson Dec 23, 2024
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.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions