Skip to content

[Due for payment 2025-03-24] [Due for payment 2025-03-11] [$250] Split Expense-Merchant field is shown instead of Distance and Rate fields for split distance #57462

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

Closed
6 of 8 tasks
izarutskaya opened this issue Feb 26, 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. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Feb 26, 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: v9.1.6-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/5489528
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Windows 10/ Chrome, Samsung S23FE/ Android 14
App Component: Money Requests

Action Performed:

Precondition:
Run with accounts on the @applause.expensifail.com domain in a group chat.

Steps:

  1. Navigate to https://staging.new.expensify.com/
  2. Go to any chat group
  3. Create a split distance expense
  4. Click on the expense preview

Expected Result:

The Distance and Rate fields are displayed for split distance expense.

Actual Result:

The Merchant field is displayed instead of the Distance and Rate fields for split distance expense.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6719996_1737473504473.Split_distance_expense.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021895166068007101327
  • Upwork Job ID: 1895166068007101327
  • Last Price Increase: 2025-02-27
  • Automatic offers:
    • gijoe0295 | Contributor | 106318614
Issue OwnerCurrent Issue Owner: @CortneyOfstad
@izarutskaya izarutskaya added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Feb 26, 2025
Copy link

melvin-bot bot commented Feb 26, 2025

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

@gijoe0295
Copy link
Contributor

gijoe0295 commented Feb 26, 2025

🚨 Edited by proposal-police: This proposal was edited at 2025-02-26 12:08:46 UTC.

Proposal

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

Merchant field is shown instead of Distance and Rate fields for split distance

What is the root cause of that problem?

We did not evaluate the isDistanceRequest param.

<MoneyRequestConfirmationList

causing the merchant to show and distance to hide:

const shouldShowMerchant = shouldShowSmartScanFields && !isDistanceRequest && !isTypeSend && !isPerDiemRequest;

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

Evaluate the isDistanceRequest param and pass to MoneyRequestConfirmationList in SplitBillDetailsPage.

isDistanceRequest={isDistanceRequest(transaction)}

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

None

What alternative solutions did you explore? (Optional)

None

@CortneyOfstad
Copy link
Contributor

CortneyOfstad commented Feb 27, 2025

Was able to recreate this within my mobile app on iPhone as well, so getting eyes on this.

Single, non-split transactions had Distance listed instead of Merchant, while the split mileage transaction had Merchant listed.

@CortneyOfstad CortneyOfstad added the External Added to denote the issue can be worked on by a contributor label Feb 27, 2025
@melvin-bot melvin-bot bot changed the title Split Expense-Merchant field is shown instead of Distance and Rate fields for split distance [$250] Split Expense-Merchant field is shown instead of Distance and Rate fields for split distance Feb 27, 2025
Copy link

melvin-bot bot commented Feb 27, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 27, 2025
Copy link

melvin-bot bot commented Feb 27, 2025

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

@CortneyOfstad
Copy link
Contributor

@c3024 Looks we have a proposal above ^^^ Thanks!

@c3024
Copy link
Contributor

c3024 commented Feb 28, 2025

@gijoe0295 's RCA and fix suggested in their proposal looks to good to me.

🎀 👀 🎀 C+ reviewed!

Copy link

melvin-bot bot commented Feb 28, 2025

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

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

melvin-bot bot commented Feb 28, 2025

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

Copy link

melvin-bot bot commented Mar 4, 2025

⚠️ 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.

@CortneyOfstad
Copy link
Contributor

@cristipaval any update on the deploy blocker?^^^

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 4, 2025
@melvin-bot melvin-bot bot changed the title [$250] Split Expense-Merchant field is shown instead of Distance and Rate fields for split distance [Due for payment 2025-03-11] [$250] Split Expense-Merchant field is shown instead of Distance and Rate fields for split distance Mar 4, 2025
Copy link

melvin-bot bot commented Mar 4, 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 Mar 4, 2025
Copy link

melvin-bot bot commented Mar 4, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.8-1 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-03-11. 🎊

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

Copy link

melvin-bot bot commented Mar 4, 2025

@c3024 @CortneyOfstad @c3024 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]

@cristipaval
Copy link
Contributor

@cristipaval any update on the deploy blocker?^^^

The fix for this issue uncovered the other issue revealed at the QA phase. The root cause existed before, so we shouldn't apply any penalties here.

@CortneyOfstad
Copy link
Contributor

Thanks @cristipaval!

@c3024 — please complete the checklist as soon as you can to avoid any delay in payment tomorrow. Thanks!

@c3024
Copy link
Contributor

c3024 commented Mar 10, 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:

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

Precondition:

  • User has a group chat.

Test:

  1. Go to any group chat.
  2. Create a split distance expense.
  3. Press the expense preview to open the expense details.
  4. Verify that the Distance & Rate fields are displayed in the expense details.

Do we agree 👍 or 👎

@CortneyOfstad
Copy link
Contributor

Payment Summary

@c3024 – to be paid $250 via NewDot
@gijoe0295 — paid $250 via Upwork

Regression Test

https://github.com/Expensify/Expensify/issues/479506

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Mar 17, 2025
@melvin-bot melvin-bot bot changed the title [Due for payment 2025-03-11] [$250] Split Expense-Merchant field is shown instead of Distance and Rate fields for split distance [Due for payment 2025-03-24] [Due for payment 2025-03-11] [$250] Split Expense-Merchant field is shown instead of Distance and Rate fields for split distance Mar 17, 2025
Copy link

melvin-bot bot commented Mar 17, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.13-5 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-03-24. 🎊

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

Copy link

melvin-bot bot commented Mar 17, 2025

@c3024 @CortneyOfstad @c3024 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]

@JmillsExpensify
Copy link

$250 approved for @c3024

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

No branches or pull requests

6 participants