Skip to content

[HOLD for payment 2023-11-21][$1000] FAB - After a refresh, clicking back button on the 'I am a teacher' page does not take you back to the previous page #26282

Closed

Description

@izarutskaya

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Click on FAB
  2. Click Save the World > I am a teacher
  3. Click on the Update email address button
  4. Refresh page.
  5. Click on the back button

Expected Result:

Clicking back takes you to the 'I am a teacher' page

Actual Result:

Clicking back take you to profile page

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: v1.3.59-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

Notes/Photos/Videos: Any additional supporting documentation

T139backbutton-1.mp4
Recording.1382.mp4

Expensify/Expensify Issue URL:

Issue reported by: @daveSeife

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693399672874879

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e00165b404e4216b
  • Upwork Job ID: 1696904936518942720
  • Last Price Increase: 2023-10-30
  • Automatic offers:
    • jjcoffee | Reviewer | 27440202
    • paultsimura | Contributor | 27440206
    • daveSeife | Reporter | 27440209
Issue OwnerCurrent Issue Owner: @trjExpensify

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Aug 30, 2023
  2. melvin-bot commented on Aug 30, 2023

    @melvin-bot

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

  3. melvin-bot commented on Aug 30, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. OSBotify commented on Aug 30, 2023

    @OSBotify
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. melvin-bot commented on Aug 30, 2023

    @melvin-bot

    Triggered auto assignment to @dangrous (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  6. paultsimura commented on Aug 30, 2023

    @paultsimura
    Contributor

    Proposal

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

    After refreshing a page on "I am a teacher > Update email" drawer, the "Go Back" button returns to Profile settings

    What is the root cause of that problem?

    On refresh, the navigation has no information about the previous page, so the goBack function navigates to the fallback route: ROUTES.SETTINGS_PROFILE

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

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

    Pass a URL parameter backTo while opening the "Edit Email" page, and use it as a fallback route for the "Go back" button:

    const navigateBackTo = lodashGet(props.route, 'params.backTo', '');
    ...
    <HeaderWithBackButton
                    ...
                    onBackButtonPress={() => Navigation.goBack(navigateBackTo)}
                />
    

    What alternative solutions did you explore? (Optional)

  7. changed the title [-]FAB - Clicking back button on the 'I am a teacher' page does not take you back to the previous page[/-] [+]FAB - After a refresh, clicking back button on the 'I am a teacher' page does not take you back to the previous page[/+] on Aug 30, 2023
  8. conorpendergrast commented on Aug 30, 2023

    @conorpendergrast

    FYI @youssef-lr @StefStavri

    I don't think this needs to be an Hourly or Deploy Blocker because this is a beta feature that's part of wave7. I'll change those labels now, but change them back if you disagree!

  9. 98 remaining items

  10. paultsimura commented on Nov 15, 2023

    @paultsimura
    Contributor

    @dangrous it was deployed to prod yesterday: #30608 (comment), but the automation did not work still.

  11. dangrous commented on Nov 15, 2023

    @dangrous
    Contributor

    hrm, you're right - I'll update the title but I'll see if I can get the rest of them to run again (e.g. checklist, etc.)

  12. changed the title [-][$1000] FAB - After a refresh, clicking back button on the 'I am a teacher' page does not take you back to the previous page[/-] [+][HOLD for payment 2023-11-21][$1000] FAB - After a refresh, clicking back button on the 'I am a teacher' page does not take you back to the previous page[/+] on Nov 15, 2023
  13. dangrous commented on Nov 16, 2023

    @dangrous
    Contributor

    Okay so no way to get it automatically, annoyingly. @trjExpensify just be aware that we'll have to figure out who needs what at the end of this. I believe it will be @paultsimura as contributor, @jjcoffee as C+, @daveSeife as reporter

    And, copying the checklist here:

    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:

    • [@jjcoffee] The PR that introduced the bug has been identified. Link to the PR:
    • [@jjcoffee] 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:
    • [@jjcoffee] 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:
    • [@jjcoffee] Determine if we should create a regression test for this bug.
    • [@jjcoffee] 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.
    • [@trjExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  14. jjcoffee commented on Nov 17, 2023

    @jjcoffee
    Contributor
    • The PR that introduced the bug has been identified. Link to the PR: N/A - a fallback route was never provided
    • 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: N/A
    • 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. Yes - easy enough to test
    • 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.

    Regression Test Proposal

    1. Open FAB and go to Save the World -> I am a teacher
    2. Click on the Update email address button
    3. Refresh page
    4. Click on the back button
    5. Verify that you are taken back to the previous screen (i.e. the 'I am a teacher' page)

    Do we agree 👍 or 👎

  15. jjcoffee commented on Nov 22, 2023

    @jjcoffee
    Contributor

    Friendly bump for payment @trjExpensify 🙇

  16. trjExpensify commented on Nov 22, 2023

    @trjExpensify
    Contributor

    Okay, so this is fun!

    • Grandfathered base rates on this as the issue was created before the cut off on August 30th with the first change.
    • No #urgency bonus because the PR was created on Oct 30th, after the second program change to remove that on Oct 24th.

    By my calculations then:

    As for the regression test. It seems a bit niche in isolation, IMO. Though, @JmillsExpensify @marcochavezf as part of the STW doc wrap-up, have tests been given to Applause for the core flow? Marco, I know you were looking at pointing to a test policy to allow for testing at some point?

  17. trjExpensify commented on Nov 22, 2023

    @trjExpensify
    Contributor

    @jjcoffee @dangrous let me know if you agree on the payouts and I'll action on settling up.

  18. dangrous commented on Nov 22, 2023

    @dangrous
    Contributor

    I think that's right!

  19. jjcoffee commented on Nov 23, 2023

    @jjcoffee
    Contributor

    @trjExpensify Yup, I'm good with that!

  20. trjExpensify commented on Nov 23, 2023

    @trjExpensify
    Contributor

    Perfect. Settled up with all three of you. Closing, thanks!

  21. marcochavezf commented on Nov 23, 2023

    @marcochavezf
    Contributor

    I know you were looking at pointing to a test policy to allow for testing at some point?

    Yeah, this is the GH for the QA tests, but we're still figuring out how to flip the policyID and public room reportID for testing.

  22. trjExpensify commented on Nov 23, 2023

    @trjExpensify
    Contributor

    Cool, thanks!

  23. melvin-bot commented on Mar 14, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringExternalReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions