Skip to content
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-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
1 of 6 tasks
izarutskaya opened this issue Aug 30, 2023 · 75 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Aug 30, 2023

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
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

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

@OSBotify
Copy link
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.

@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

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

@paultsimura
Copy link
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)

@conorpendergrast conorpendergrast 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 Aug 30, 2023
@conorpendergrast
Copy link
Contributor

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!

@conorpendergrast conorpendergrast added Daily KSv2 Hourly KSv2 and removed Hourly KSv2 DeployBlockerCash This issue or pull request should block deployment Daily KSv2 labels Aug 30, 2023
@conorpendergrast
Copy link
Contributor

I've also cross-posted to our internal channel for this project to make sure that's correct

@StefStavri StefStavri added Hourly KSv2 and removed Daily KSv2 labels Aug 30, 2023
@youssef-lr
Copy link
Contributor

@dhairyasenjaliya could you look into this please?

@youssef-lr
Copy link
Contributor

youssef-lr commented Aug 30, 2023

I'm unable to reproduce this..

I was able to reproduce, @dhairyasenjaliya if you're around take a look please?

@conorpendergrast
Copy link
Contributor

I was able to reproduce this:

2023-08-30_16-08-06.mp4

@conorpendergrast conorpendergrast added the DeployBlockerCash This issue or pull request should block deployment label Aug 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

Current assignee @dangrous is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@dangrous
Copy link
Contributor

Great, let's do it.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

📣 @paultsimura 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

📣 @daveSeife 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Oct 30, 2023
@paultsimura
Copy link
Contributor

Thank you all, the PR is ready for review.

@paultsimura
Copy link
Contributor

@dangrous the PR is in production already (there was some weird flow: deployed to staging - prod - staging), but the automation didn't update the [HOLD for payment] title, could you please check? 🙏

@dangrous
Copy link
Contributor

So that production part is messed up, it's currently only on staging. We should get the right automated message when it's REALLY on production, hopefully!

@paultsimura
Copy link
Contributor

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

@dangrous
Copy link
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.)

@dangrous dangrous 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 Nov 15, 2023
@dangrous
Copy link
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:

@jjcoffee
Copy link
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 👎

@jjcoffee
Copy link
Contributor

Friendly bump for payment @trjExpensify 🙇

@trjExpensify
Copy link
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?

@trjExpensify
Copy link
Contributor

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

@dangrous
Copy link
Contributor

I think that's right!

@jjcoffee
Copy link
Contributor

@trjExpensify Yup, I'm good with that!

@trjExpensify
Copy link
Contributor

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

@marcochavezf
Copy link
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.

@trjExpensify
Copy link
Contributor

Cool, thanks!

Copy link

melvin-bot bot commented Mar 14, 2024

⚠️ 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
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests