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

[Due for payment 2025-02-25] Track expense-RHP reopens after changing category on confirm page & clicking back button twice #56804

Open
8 tasks done
mitarachim opened this issue Feb 13, 2025 · 21 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Weekly KSv2

Comments

@mitarachim
Copy link

mitarachim commented Feb 13, 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.98-0
Reproducible in staging?: Yes
Reproducible in production?: No
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: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.0 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to self DM.
  3. Submit an expense to self DM.
  4. Click Categorize it.
  5. If upgrade modal appears, upgrade it and click Got it, thanks.
  6. Select a category.
  7. On confirmation page, click Category field.
  8. Select a different category.
  9. Click RHP back button.
  10. Click RHP back button again.

Expected Result:

RHP will dismiss.

Actual Result:

RHP returns to confirmation page.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6741352_1739405431348.20250213_080711.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @jliexpensify
@mitarachim mitarachim added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 DeployBlockerCash This issue or pull request should block deployment labels Feb 13, 2025
Copy link

melvin-bot bot commented Feb 13, 2025

Triggered auto assignment to @techievivek (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Feb 13, 2025

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

Copy link

melvin-bot bot commented Feb 13, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 13, 2025
@melvin-bot melvin-bot bot added the Daily KSv2 label Feb 13, 2025
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.

@thelullabyy
Copy link
Contributor

Proposal

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

RHP returns to confirmation page.

What is the root cause of that problem?

We navigate to a confirmation screen in:

Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CONFIRMATION.getRoute(action, iouType, transactionID, report.reportID));

when editing the category, so in the stack, there are two confirmation screens.

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

The condition to call the navigate function:

if (action === CONST.IOU.ACTION.CATEGORIZE) {

can be updated to:

        if (action === CONST.IOU.ACTION.CATEGORIZE && !backTo) {

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

It is navigation issue, don't need test.

What alternative solutions did you explore? (Optional)

@jliexpensify
Copy link
Contributor

@techievivek pretty sure this isn't a deploy blocker, right?

@mountiny
Copy link
Contributor

FYI most likely related to https://expensify.slack.com/archives/C01GTK53T8Q/p1739435484596829?thread_ts=1739328522.587109&cid=C01GTK53T8Q and we are discussing and working on solutions for this

@mountiny mountiny assigned mountiny and unassigned techievivek Feb 13, 2025
@mountiny mountiny added Hourly KSv2 and removed Daily KSv2 labels Feb 13, 2025
@mountiny
Copy link
Contributor

I think this should be quick to fix while I agree its not the most critical issue we have and could be demoted if necessary. But lets try to fix it

@WojtekBoman
Copy link
Contributor

I believe it will solve this issue #56804 (comment)

@mountiny
Copy link
Contributor

@WojtekBoman could someone please raise a PR for this one? thank you!

@thelullabyy
Copy link
Contributor

@mountiny If my solution can address the issue and an external member can work on this issue, I can raise a PR.

@mountiny
Copy link
Contributor

@thelullabyy going to handle this with SWM as they worked on this one, thank you for offering help

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Feb 14, 2025
@Julesssss
Copy link
Contributor

Merged PR, CPing here.

@thelullabyy
Copy link
Contributor

@Julesssss The merged PR reflects the solution I suggested earlier. I understand it’s not an external issue, but would it be possible to consider a small payment for my involvement in this case?

@Julesssss
Copy link
Contributor

@Julesssss The merged PR reflects the solution I suggested earlier. I understand it’s not an external issue, but would it be possible to consider a small payment for my involvement in this case?

I'll leave that decision to @mountiny as he has more context, I'm just merging the existing discussed PR.

@m-natarajan
Copy link

Not reproducible

Recording.36.3.mp4

@mountiny mountiny removed the DeployBlockerCash This issue or pull request should block deployment label Feb 17, 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 Feb 18, 2025
@melvin-bot melvin-bot bot changed the title Track expense-RHP reopens after changing category on confirm page & clicking back button twice [Due for payment 2025-02-25] Track expense-RHP reopens after changing category on confirm page & clicking back button twice Feb 18, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 18, 2025
Copy link

melvin-bot bot commented Feb 18, 2025

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

Copy link

melvin-bot bot commented Feb 18, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.99-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-25. 🎊

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

Copy link

melvin-bot bot commented Feb 18, 2025

@dukenv0307 @jliexpensify @dukenv0307 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]

@dukenv0307
Copy link
Contributor

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
  • 2b. Reported on staging (deploy blocker)
  • 2c. 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: None

  • [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: N/A

  • [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. Yes

Regression Test Proposal Template
  • [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

Test:

  1. Launch the app
  2. Go to self DM.
  3. Submit an expense to self DM.
  4. Click Categorize it.
  5. If upgrade modal appears, upgrade it and click Got it, thanks.
  6. Select a category.
  7. On confirmation page, click Category field.
  8. Select a different category.
  9. Click RHP back button.
  10. Click RHP back button again.
  11. Verify if the RHP has been dismissed.

Do we agree 👍 or 👎

@jliexpensify
Copy link
Contributor

Payment Summary

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. Engineering Weekly KSv2
Projects
Status: No status
Development

No branches or pull requests

9 participants