Closed lanitochka17 closed 3 weeks ago
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.
@jliexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
We pass the comment
as description here then LHN displays amount for description
Here we should get the merchant first then fallback to description if the merchant is empty
let comment = !isEmptyObject(linkedTransaction) ? TransactionUtils.getMerchant(linkedTransaction) || TransactionUtils.getDescription(linkedTransaction) : undefined;
OPTIONAL: we can also do the same here
The last message when we submit an expense with a merchant and description will show the description instead of the merchant.
We always use the description here. https://github.com/Expensify/App/blob/d46f21888154dc77a799e06d22e576eaece80368/src/libs/ReportUtils.ts#L3471 https://github.com/Expensify/App/blob/d46f21888154dc77a799e06d22e576eaece80368/src/libs/ReportUtils.ts#L3482
We need to follow the same logic from getTransactionReportName
which checks whether the merchant is empty or not before using it because (none) merchant is also empty.
https://github.com/Expensify/App/blob/d46f21888154dc77a799e06d22e576eaece80368/src/libs/ReportUtils.ts#L3322
let comment = !isEmptyObject(linkedTransaction) ? (!TransactionUtils.isMerchantMissing(linkedTransaction) ? TransactionUtils.getMerchant(linkedTransaction) : TransactionUtils.getDescription(linkedTransaction)) : undefined;
We can apply the same fix here https://github.com/Expensify/App/blob/d46f21888154dc77a799e06d22e576eaece80368/src/libs/ReportUtils.ts#L3373 https://github.com/Expensify/App/blob/d46f21888154dc77a799e06d22e576eaece80368/src/libs/ReportUtils.ts#L3395 https://github.com/Expensify/App/blob/d46f21888154dc77a799e06d22e576eaece80368/src/libs/ReportUtils.ts#L7193
NOTE: I think we can create a getMerchantOrDescription
so the logic is reusable.
I can repro but not sure if we made this change intentionally, so asking here: https://expensify.slack.com/archives/C036QM0SLJK/p1727826242838209
Job added to Upwork: https://www.upwork.com/jobs/~021841274388644598293
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External
)
Confirmed that this seems to be a bug:
merchant should take priority over description like the preview component
@alitoshmatov I'm OOO from 3rd to 14th, but I don't think anything is needed from me during this period. Feel free to reassign to another B0 if urgent payment is needed, otherwise I'll catch up on this issue when I get back!
@nkdengineer @bernhardoj Thank you both for proposals. Your RCA is correct and you provide with almost the same solution.
It is hard choice to make since both proposals are very similar solution, even though @bernhardoj was the second one to submit he did have small additional changes.
I think we should go with @bernhardoj's proposal since it has additional changes that we might have missed it
C+ reviewed 🎀 👀 🎀
Triggered auto assignment to @yuwenmemon, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
❌ There was an error making the offer to @alitoshmatov for the Reviewer role. The BZ member will need to manually hire the contributor.
PR is ready
cc: @alitoshmatov
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.48-2 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-10-22. :confetti_ball:
For reference, here are some details about the assignees on this issue:
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:
Payment Summary
Requested in ND.
Current assignee @alitoshmatov is eligible for the External assigner, not assigning anyone new.
Sorry, upworks is being really weird and won't let me access the job so I closed it and am trying to see if another Job is created.
@alitoshmatov waiting on checklist, and invited you to a new job here:
Paid @alitoshmatov via Upworks, just waiting on checklist
$250 approved for @bernhardoj based on this summary.
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.42-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5023024 Email or phone of affected tester (no customers): biruknew45+1278@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The conversation title in the LHN should display "[amount] for [Merchant]"
Actual Result:
The conversation title in the LHN displays "[amount] for [Description]"
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/68534efe-26e9-4652-a19d-ae6e42395f3c
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @