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 2025-02-06] [$250] Reports - Expense report page is closed after the payment is cancelled #55023

Open
3 of 8 tasks
vincdargento opened this issue Jan 9, 2025 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@vincdargento
Copy link

vincdargento commented Jan 9, 2025

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


Version Number: 9.0.82-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5426746&group_by=cases:section_id&group_order=asc&group_id=296775
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 - Chrome / Windows 10 - Chrome
App Component: Money Requests

Action Performed:

  1. Open the staging.new.expensify.com website.
  2. Tap on "Reports" on the bottom of the screen.
  3. Open any expense on the list.
  4. Tap on "Pay Elsewhere" button.
  5. Tap on report header.
  6. Tap on "Cancel Payment"
  7. Confirm the action on the modal displayed.

Expected Result:

After the expense payment is cancelled, the user should remain on the expense report.

Actual Result:

Expense report is closed and the user lands on expenses list again after the expense payment is cancelled.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

bug.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021878887212575034772
  • Upwork Job ID: 1878887212575034772
  • Last Price Increase: 2025-01-13
  • Automatic offers:
    • DylanDylann | Reviewer | 105710532
    • twilight2294 | Contributor | 105710535
Issue OwnerCurrent Issue Owner: @zanyrenney
@vincdargento vincdargento added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 9, 2025
Copy link

melvin-bot bot commented Jan 9, 2025

Triggered auto assignment to @zanyrenney (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.

@twilight2294
Copy link
Contributor

Edited by proposal-police: This proposal was edited at 2025-01-09 18:09:21 UTC.

Proposal

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

Expense report page is closed after the payment is cancelled

What is the root cause of that problem?

We dismiss the model hence the whole report gets dismissed:

Navigation.dismissModal();

When we open a report through the expense reports page, it is considered an RHP as a whole, hence on calling Navigation.dismissModal() , the entire RHP gets dismissed than going back

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

we should instead use Navigation.goBack();, this will make sure that we will always go back to the report page,

Note that we can also pass backTo param from the URL to goBack function, as if we refresh the screen the navigation stack is wiped away.

In ReportDetailsPage here:

IOU.cancelPayment(moneyRequestReport, chatReport);

        IOU.cancelPayment(moneyRequestReport, chatReport, backTo);

And then in IOU.ts here:

Navigation.dismissModal();

    Navigation.goBack(backTo);

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

N/A

What alternative solutions did you explore? (Optional)

We can alternatively only use Navigation.goBack() for reports opened through the expense reports page and keep calling Navigation.dismissModal() for regular full page reports. this can be done by checking if have a backTo param in the URL. but i guess the first method would be appropriate for both the cases

@melvin-bot melvin-bot bot added the Overdue label Jan 13, 2025
Copy link

melvin-bot bot commented Jan 13, 2025

@zanyrenney Whoops! This issue is 2 days overdue. Let's get this updated quick!

@zanyrenney zanyrenney added the External Added to denote the issue can be worked on by a contributor label Jan 13, 2025
Copy link

melvin-bot bot commented Jan 13, 2025

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

@melvin-bot melvin-bot bot changed the title Reports - Expense report page is closed after the payment is cancelled [$250] Reports - Expense report page is closed after the payment is cancelled Jan 13, 2025
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 13, 2025
Copy link

melvin-bot bot commented Jan 13, 2025

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

@melvin-bot melvin-bot bot removed the Overdue label Jan 13, 2025
@zanyrenney
Copy link
Contributor

@DylanDylann please could you review the proposal above when you get a minute., thanks!

@DylanDylann
Copy link
Contributor

@twilight2294's proposal looks good to me

🎀 👀 🎀 C+ Reviewed

Copy link

melvin-bot bot commented Jan 15, 2025

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

@MonilBhavsar
Copy link
Contributor

Looks good

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 15, 2025
Copy link

melvin-bot bot commented Jan 15, 2025

📣 @DylanDylann 🎉 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

Copy link

melvin-bot bot commented Jan 15, 2025

📣 @twilight2294 🎉 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 📖

@twilight2294
Copy link
Contributor

Will make a PR later today

Copy link

melvin-bot bot commented Jan 21, 2025

@MonilBhavsar, @zanyrenney, @DylanDylann, @twilight2294 Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added Overdue Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jan 21, 2025
@melvin-bot melvin-bot bot removed the Overdue label Jan 21, 2025
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jan 30, 2025
@melvin-bot melvin-bot bot changed the title [$250] Reports - Expense report page is closed after the payment is cancelled [HOLD for payment 2025-02-06] [$250] Reports - Expense report page is closed after the payment is cancelled Jan 30, 2025
Copy link

melvin-bot bot commented Jan 30, 2025

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 30, 2025
Copy link

melvin-bot bot commented Jan 30, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.91-2 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 2025-02-06. 🎊

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

Copy link

melvin-bot bot commented Jan 30, 2025

@DylanDylann @zanyrenney @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]

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 5, 2025
@zanyrenney
Copy link
Contributor

@DylanDylann please complete the checklist and ping me when you have so i can complete the payout - thanks!

@DylanDylann
Copy link
Contributor

DylanDylann commented Feb 7, 2025

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: 8ff9230#r152258433

  • [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:

Regression Test Proposal

Prerequisite

  • There is a unpaid expense

Test:

  1. Tap on "Reports" on the bottom of the screen.
  2. Open any expense on the list.
  3. Tap on "Pay Elsewhere" button. > Tap on report header > Tap on "Cancel Payment"> Confirm the action on the modal displayed.

Do we agree 👍 or 👎

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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

5 participants