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 2024-11-20] [$250] Track expense - Track expense options are still present in report header after it is submitted #52240

Open
6 of 8 tasks
IuliiaHerets opened this issue Nov 8, 2024 · 20 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 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Nov 8, 2024

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.59-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch ND or hybrid app.
  2. Go to self DM.
  3. Track a manual expense.
  4. Go to Search.
  5. Tap on the track expense in Step 3.
  6. Open report header.
  7. Tap Categorize it.
  8. Select a workspace, category, enter merchant and tap Submit.
  9. Reopen the submitted expense in Step 8 in Search.
  10. Note that header subtitle is updated to the workspace expense report.
  11. Tap on the report header.

Expected Result:

Track expense options will no longer appear in report header when the report is opened in Search after it is submitted to workspace.

Actual Result:

Track expense options still appear in report header when the report is opened in Search after it is submitted to workspace.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6658621_1731057460972.ScreenRecording_11-08-2024_17-06-50_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021854881368705526819
  • Upwork Job ID: 1854881368705526819
  • Last Price Increase: 2024-11-08
  • Automatic offers:
    • nkdengineer | Contributor | 104806719
    • suneox | Contributor | 104835399
Issue OwnerCurrent Issue Owner: @jliexpensify
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Nov 8, 2024
Copy link

melvin-bot bot commented Nov 8, 2024

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

Copy link

melvin-bot bot commented Nov 8, 2024

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 Nov 8, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Nov 8, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Nov 8, 2024
Copy link
Contributor

github-actions bot commented Nov 8, 2024

👋 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.

Copy link

melvin-bot bot commented Nov 8, 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.

@Julesssss Julesssss added the External Added to denote the issue can be worked on by a contributor label Nov 8, 2024
Copy link

melvin-bot bot commented Nov 8, 2024

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

@melvin-bot melvin-bot bot changed the title Track expense - Track expense options are still present in report header after it is submitted [$250] Track expense - Track expense options are still present in report header after it is submitted Nov 8, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 8, 2024
@Julesssss
Copy link
Contributor

Possibly linked to this issue

Copy link

melvin-bot bot commented Nov 8, 2024

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

@nkdengineer
Copy link
Contributor

nkdengineer commented Nov 8, 2024

Proposal

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

Track expense options still appear in report header when the report is opened in Search after it is submitted to workspace.

What is the root cause of that problem?

After we categorize a track expense, the type of IOU action still is track. Then in the report detail of the transaction thread report, isTrackExpenseReport is still true then Track expense options are still present.

const isTrackExpenseReport = ReportUtils.isTrackExpenseReport(report);

Screenshot 2024-11-08 at 22 51 34

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

We should also check to only return true if the parent report is the selfDM

if (isThread(report)) {
    const selfDMReportID = findSelfDMReportID();
    const parentReportAction = allReportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report.parentReportID}`]?.[report.parentReportActionID];
    return !isEmptyObject(parentReportAction) && selfDMReportID === report.parentReportID && ReportActionsUtils.isTrackExpenseAction(parentReportAction);
}

return !isEmptyObject(parentReportAction) && ReportActionsUtils.isTrackExpenseAction(parentReportAction);

What alternative solutions did you explore? (Optional)

When we move a track expense to WS, we should change the type in originalMessage of the IOU action to create

@nkdengineer
Copy link
Contributor

@Julesssss I can create a PR to fix this blocker ASAP if assigned.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 8, 2024
Copy link

melvin-bot bot commented Nov 8, 2024

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

@Julesssss
Copy link
Contributor

Thanks @nkdengineer, we'll be able to review on monday

@nkdengineer
Copy link
Contributor

Thanks, will raise the PR soon.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Nov 8, 2024
@mountiny mountiny assigned suneox and unassigned sobitneupane Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

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

@Julesssss Julesssss self-assigned this Nov 11, 2024
@francoisl francoisl removed the DeployBlockerCash This issue or pull request should block deployment label Nov 11, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 11, 2024
@melvin-bot melvin-bot bot changed the title [$250] Track expense - Track expense options are still present in report header after it is submitted [HOLD for payment 2024-11-18] [$250] Track expense - Track expense options are still present in report header after it is submitted Nov 11, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

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

Copy link

melvin-bot bot commented Nov 11, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.59-3 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 2024-11-18. 🎊

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

Copy link

melvin-bot bot commented Nov 11, 2024

@suneox @jliexpensify 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 Weekly KSv2 and removed Weekly KSv2 labels Nov 13, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-11-18] [$250] Track expense - Track expense options are still present in report header after it is submitted [HOLD for payment 2024-11-20] [HOLD for payment 2024-11-18] [$250] Track expense - Track expense options are still present in report header after it is submitted Nov 13, 2024
Copy link

melvin-bot bot commented Nov 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.60-3 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 2024-11-20. 🎊

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

Copy link

melvin-bot bot commented Nov 13, 2024

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

@jliexpensify jliexpensify changed the title [HOLD for payment 2024-11-20] [HOLD for payment 2024-11-18] [$250] Track expense - Track expense options are still present in report header after it is submitted [HOLD for payment 2024-11-20] [$250] Track expense - Track expense options are still present in report header after it is submitted Nov 15, 2024
@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 18, 2024
@suneox
Copy link
Contributor

suneox commented Nov 18, 2024

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 both staging and production
  • 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: I don’t think there's a PR responsible for this, as it seems to be a missing case from when the new feature was implemented. The original author might not have been aware of the change, but I've provided a reason in the implementation PR https://github.com/Expensify/App/pull/37282/files#r1846901471

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

@suneox suneox mentioned this issue Nov 18, 2024
49 tasks
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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants