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

[PAID] [$500] Back from request money details page does not open request money page #29056

Closed
3 of 6 tasks
kbecciv opened this issue Oct 7, 2023 · 27 comments
Closed
3 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 Internal Requires API changes or must be handled by Expensify staff

Comments

@kbecciv
Copy link

kbecciv commented Oct 7, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Open the app
  2. Open any report with request money IOU message
  3. Click on request money IOU message
  4. Click in header, it will open details page
  5. Copy the URL and logout
  6. Paste URL and login
  7. On details page, click back and observe that now app does not display report for which we had opened details page

Expected Result:

App should display report for which details page is opened in background if we login with details page URL

Actual Result:

App does not display report for which details page is opened in background if we login with details page URL

Workaround:

Unknown

Platforms:

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

  • Android / native -not testable
  • Android / Chrome
  • iOS / native -not testable
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop -not testable

Version Number: 1.3.78.3
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
Notes/Photos/Videos: Any additional supporting documentation

ios.safari.does.not.open.same.chat.in.background.mp4
mac.chrome.does.not.open.same.chat.in.background.mov
windows.chrome.same.chat.not.open.in.background.mp4
android.chrome.same.report.not.displayed.in.background.mp4
Recording.4892.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696668016454099

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0119568c805cf99a1b
  • Upwork Job ID: 1710737969784868864
  • Last Price Increase: 2023-10-07
  • Automatic offers:
    • tienifr | Contributor | 27131905
    • Dhanashree-Sawant | Reporter | 27131908
Issue OwnerCurrent Issue Owner: @burczu
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 7, 2023

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

@melvin-bot melvin-bot bot changed the title Back from request money details page does not open request money page [$500] Back from request money details page does not open request money page Oct 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 7, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0119568c805cf99a1b

@melvin-bot
Copy link

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

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

melvin-bot bot commented Oct 7, 2023

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

@abzokhattab
Copy link
Contributor

Proposal

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

Request money page is not opened on Back from request money details page

What is the root cause of that problem?

In the HeaderWithBackButton of the ReportDetailsPage we dont specify a route for the back action leaving the default bahavior of the HeaderWithBackButton .. which goes back to the home page onBackButtonPress = () => Navigation.goBack(ROUTES.HOME)

<HeaderWithBackButton title={props.translate('common.details')} />

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

We should add onBackButtonPress prop to the HeaderWithBackButton component with the report route as the default back page:

<HeaderWithBackButton
  title={props.translate("common.details")}
  onBackButtonPress={() =>
    Navigation.goBack(ROUTES.REPORT_WITH_ID.getRoute(props.report.reportID))
  }
/>

POC:

Screen.Recording.2023-10-07.at.12.15.21.PM.mov

@tienifr
Copy link
Contributor

tienifr commented Oct 9, 2023

Proposal

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

  1. App does not display report for which details page is opened in background if we login with details page URL.

  2. When going back it doesn't go back to the correct report in the details.

What is the root cause of that problem?

  1. In large screen size, we always add the CentralPaneNavigator here to show the report screen in the background, however, we don't pass the reportID as the param, so in this case it will fallback to the last opened report (which might not be the report in the details)
  2. When going back here, we're not specifying the fallback navigation to the report, so it will just dismiss the modal.

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

  1. We need to pass the report ID when adding the CentralPaneNavigator here
  • Extract the reportID from the current state/url
  • Pass as a params here in the CentralPaneNavigator route state that we add
const centralPaneNavigatorRoute = {
    name: NAVIGATORS.CENTRAL_PANE_NAVIGATOR,
    state: {
        routes: [
            {
                name: SCREENS.REPORT,
                params: {
                    reportID
                }
            }
        ]
    }
}

state.routes.splice(1, 0, centralPaneNavigatorRoute);
  1. Add the report screen of the relevant report as the fallback route in onBackButtonPress when go back here
onBackButtonPress={() =>
    Navigation.goBack(ROUTES.REPORT_WITH_ID.getRoute(props.report.reportID))
  }

Other similar screens might have this same go back issue, we should fix similarly as well.

What alternative solutions did you explore? (Optional)

NA

@strepanier03
Copy link
Contributor

Was able to repro easily. Letting this move forward naturally.

@burczu
Copy link
Contributor

burczu commented Oct 10, 2023

I've just reviewed both proposals and I like the one from @tienifr because it covers not only redirection to the appropriate report after clicking back button on the details sidebar, but also makes sure that the correct report is opened right after logging in. I think we should proceed with it.

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Oct 10, 2023

Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@francoisl
Copy link
Contributor

Agreed. Let's proceed with your proposal @tienifr.

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

The Upwork automation didn't work because it looks like the Upwork Automation - Do Not Edit section had been accidentally removed. Re-added it, trying again now.

@francoisl francoisl added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 11, 2023
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 11, 2023
@francoisl francoisl added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 11, 2023
@francoisl francoisl assigned tienifr and unassigned tienifr Oct 11, 2023
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 2023

📣 @tienifr 🎉 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 melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 20, 2023
@melvin-bot melvin-bot bot changed the title [$500] Back from request money details page does not open request money page [HOLD for payment 2023-10-27] [$500] Back from request money details page does not open request money page Oct 20, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 20, 2023

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

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 - @dhanashree-sawant - $50 via Upwork
  • Contributor that fixed the issue - @tienifr - $500 via Upwork
  • Contributor+ that helped on the issue and/or PR - @burczu - No payment, contractor

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

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 Oct 20, 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:

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 27, 2023
@strepanier03
Copy link
Contributor

@burczu - I'll close this out when we have the checklist done.

Everyone else has been paid, thank you @dhanashree-sawant and @tienifr!

@strepanier03 strepanier03 changed the title [HOLD for payment 2023-10-27] [$500] Back from request money details page does not open request money page [PAID] [$500] Back from request money details page does not open request money page Oct 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 28, 2023

@francoisl @burczu @strepanier03 @tienifr this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!

@strepanier03
Copy link
Contributor

Just waiting on checklist stuff from @burczu then this one will be closed. All good melvin.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 30, 2023
@strepanier03
Copy link
Contributor

@burczu - bump on the checklist so we can get this closed out.

Copy link

melvin-bot bot commented Nov 3, 2023

@francoisl, @burczu, @strepanier03, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Nov 4, 2023

@francoisl @burczu @strepanier03 @tienifr this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:

  • Decide whether any proposals currently meet our guidelines and can be approved as-is today
  • If no proposals meet that standard, please take this issue internal and treat it as one of your highest priorities
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

@melvin-bot melvin-bot bot added Internal Requires API changes or must be handled by Expensify staff and removed External Added to denote the issue can be worked on by a contributor labels Nov 4, 2023
Copy link

melvin-bot bot commented Nov 4, 2023

Current assignee @burczu is eligible for the Internal assigner, not assigning anyone new.

@strepanier03
Copy link
Contributor

@burczu - Please take care of the checklist so we can close this out.

Copy link

melvin-bot bot commented Nov 7, 2023

@francoisl, @burczu, @strepanier03, @tienifr Still overdue 6 days?! Let's take care of this!

@francoisl
Copy link
Contributor

Doesn't seem like this came from a regression, also probably no need for a new regression test, going to close.

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 Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

6 participants