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

[$1000] [HOLD for payment 2023-07-14] Back button is not working on select a currency page #22130

Closed
1 of 6 tasks
kavimuru opened this issue Jul 3, 2023 · 32 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@kavimuru
Copy link

kavimuru commented Jul 3, 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 > Request money
  2. Click on the currency
  3. Click on the back button at the top

Expected Result:

Back button should take user back and it should work properly

Actual Result:

Back button is not working and console error occurs

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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: 1.3.36-1
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

Recording.1134.mp4
2023-07-03.21.18.46.mp4

Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688408446305599

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01805773f0aa3fe2ec
  • Upwork Job ID: 1679105288887033856
  • Last Price Increase: 2023-07-12
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 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

OSBotify commented Jul 3, 2023

👋 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 Jul 3, 2023

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

@dangrous
Copy link
Contributor

dangrous commented Jul 3, 2023

Ah it's this line -

onBackButtonPress={() => Navigation.goBack(ROUTES.getIouRequestRoute(Navigation.getTopmostReportId()))}
- ROUTES.getIouRequestRoute() doesn't actually exist. Need to figure out what it's supposed to do and fix it...

cc @Julesssss in case you know (since it's your PR)

@jeet-dhandha
Copy link
Contributor

Proposal

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

  • Navigation from IOU's Currency Selection screen to previous screen is not working on back button press.

What is the root cause of that problem?

  • getIouRequestRoute function does not exist in ROUTES object. Probably removed when we removed IOU's paths and replace with MONEY_REQUEST's paths.

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

  • We can use getMoneyRequestRoute function instead of getIouRequestRoute function. And pass ROUTES.IOU_REQUEST as iouType.

File src/pages/iou/IOUCurrencySelection.js

<HeaderWithBackButton
    title={translate('iOUCurrencySelection.selectCurrency')}
-    onBackButtonPress={() => Navigation.goBack(ROUTES.getIouRequestRoute(Navigation.getTopmostReportId()))}
+    onBackButtonPress={() => Navigation.goBack(ROUTES.getMoneyRequestRoute(ROUTES.IOU_REQUEST))}
/>
  • We are not passing reportID as it will always navigate back to new money request.

What alternative solutions did you explore? (Optional)

  • N/A

@melvin-bot melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Jul 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

Looks like something related to react-navigation may have been mentioned in this issue discussion.

As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.

Feel free to drop a note in #expensify-open-source with any questions.

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Jul 3, 2023
@dangrous
Copy link
Contributor

dangrous commented Jul 3, 2023

@jeet-dhandha thanks for the suggestion! In this case, we actually DO need the reportID if we're requested money from inside an already existing money request, and the IOU type also changes depending on if it's a money request, bill split, etc.

You can check out the PR to see what we ended up going with!

@jeet-dhandha
Copy link
Contributor

Cool 👍 . Glad to be of Help.

@Julesssss
Copy link
Contributor

Fix PR is just awaiting a C+ review 👍

@Julesssss
Copy link
Contributor

Pr merged, now CPing

@Julesssss Julesssss removed the DeployBlockerCash This issue or pull request should block deployment label Jul 4, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 5, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-07-12] Back button is not working on select a currency page [HOLD for payment 2023-07-14] [HOLD for payment 2023-07-12] Back button is not working on select a currency page Jul 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.37-7 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 2023-07-14. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

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:

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

@dangrous
Copy link
Contributor

dangrous commented Jul 7, 2023

why did we get this checklist twice?

Answers copied here.

PR has been commented on.

I'm guessing we already have this as a regression test, but if not, it should be:

  1. Click on FAB > Request money
  2. Click on the currency
  3. Click on the back button at the top
  4. Back button should take user back and it should work properly

@Julesssss do you think we need a discussion in #expensify-bugs? I think it's just double checking any merge conflicts, which is generally the procedure, so I don't think we need anything new.

@Julesssss Julesssss changed the title [HOLD for payment 2023-07-14] [HOLD for payment 2023-07-12] Back button is not working on select a currency page [HOLD for payment 2023-07-14] Back button is not working on select a currency page Jul 10, 2023
@Julesssss
Copy link
Contributor

do you think we need a discussion in #expensify-bugs? I think it's just double checking any merge conflicts, which is generally the procedure, so I don't think we need anything new.

Nah I think we're good. This was raised by a regression test anyway.

@dangrous
Copy link
Contributor

Adding @abdulrahuman5196 so they can get paid for PR review when the time comes

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 11, 2023
@laurenreidexpensify
Copy link
Contributor

This has been on prod #22135 (comment) for 7 days, so I'm going to pay now

@laurenreidexpensify laurenreidexpensify added the External Added to denote the issue can be worked on by a contributor label Jul 12, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-07-14] Back button is not working on select a currency page [$1000] [HOLD for payment 2023-07-14] Back button is not working on select a currency page Jul 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01805773f0aa3fe2ec

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

Current assignee @laurenreidexpensify is eligible for the External assigner, not assigning anyone new.

@laurenreidexpensify laurenreidexpensify removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Jul 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 12, 2023

Current assignee @abdulrahuman5196 is eligible for the External assigner, not assigning anyone new.

@laurenreidexpensify
Copy link
Contributor

@abdulrahuman5196 pls apply here in Upwork https://www.upwork.com/jobs/~01805773f0aa3fe2ec thanks

@Nathan-Mulugeta
Copy link

Hey @laurenreidexpensify I also applied for the reporting bonus

@abdulrahuman5196
Copy link
Contributor

Thank you @laurenreidexpensify. Applied.

@melvin-bot melvin-bot bot added the Overdue label Jul 17, 2023
@abdulrahuman5196
Copy link
Contributor

Not overdue.

@laurenreidexpensify Pending on the payment on this issue

@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2023
@laurenreidexpensify
Copy link
Contributor

Apols @abdulrahuman5196 @Nathan-Mulugeta - offers now sent in Upwork

@abdulrahuman5196
Copy link
Contributor

@laurenreidexpensify accepted the invite

@Nathan-Mulugeta
Copy link

Accepted offer

@laurenreidexpensify
Copy link
Contributor

Payments issued, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

8 participants