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-07-22] [$250] Search - "Scanning" appears in Description field when expense is scanning #44596

Closed
2 of 6 tasks
izarutskaya opened this issue Jun 28, 2024 · 23 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Monthly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Jun 28, 2024

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.3-1
Reproducible in staging?: Y
Reproducible in production?: N
Found when executing PR : #44190
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition:

  • Account has no expenses (or has expenses with no merchant).
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit a scan expense.
  4. While the expense is scanning, go to Search.

Expected Result:

"Scanning" will not appear in Description field because "Scanning" is not in Description field in transaction thread.

Actual Result:

"Scanning" appears in Description field when "Scanning" is not in Description field in transaction thread.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6526894_1719536704148.bandicam_2024-06-28_09-01-21-976.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01ed996315e0843cef
  • Upwork Job ID: 1815474885633659701
  • Last Price Increase: 2024-07-22
Issue OwnerCurrent Issue Owner: @
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

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

Copy link

melvin-bot bot commented Jun 28, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jun 28, 2024
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.

@izarutskaya
Copy link
Author

@sakluger 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.

@izarutskaya
Copy link
Author

We think this issue might be related to the #collect project.

@izarutskaya
Copy link
Author

Production
image

@etCoderDysto
Copy link
Contributor

Investigating! This seems to come from a PR I have worked on #44190

@cristipaval
Copy link
Contributor

Thanks @etCoderDysto! Assigning you to it

@cristipaval
Copy link
Contributor

@mollfpr, added you as the C+, given that you reviewed the offending PR

@etCoderDysto
Copy link
Contributor

etCoderDysto commented Jun 28, 2024

I have identified the issue. I am raising a fixing PR.

In SearchTableHeader we are displaying Description column instead of Merchant. That is because getShouldShowMerchant returns false when item.merchant === "(none)”. 


columnName: CONST.SEARCH.TABLE_COLUMNS.MERCHANT,
translationKey: 'common.merchant',
shouldShow: (data: OnyxTypes.SearchResults['data']) => SearchUtils.getShouldShowMerchant(data),
},
{
columnName: CONST.SEARCH.TABLE_COLUMNS.DESCRIPTION,
translationKey: 'common.description',
shouldShow: (data: OnyxTypes.SearchResults['data']) => !SearchUtils.getShouldShowMerchant(data),

And we are not checking if transactionItem.shouldShowMerchant is true before assigning merchant = translate('iou.receiptStatusTitle’) or 'Scanning...';. transactionItem.shouldShowMerchant is calculated by the same getShouldShowMerchant. 



let merchant = transactionItem.shouldShowMerchant ? transactionItem.formattedMerchant : description;
if (TransactionUtils.hasReceipt(transactionItem) && TransactionUtils.isReceiptBeingScanned(transactionItem)) {
merchant = translate('iou.receiptStatusTitle');

Fix: I will add && transactionItem.shouldShowMerchant to prevent assigning Scanning to merchant here

I am raising a fixing PR now

@Julesssss
Copy link
Contributor

Hey @etCoderDysto & @cristipaval, can you please tag me on the fix PR? I want to cherry-pick this and use it to test something.

@etCoderDysto
Copy link
Contributor

etCoderDysto commented Jun 28, 2024

Hey @Julesssss. I will tag you.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Jun 28, 2024
@etCoderDysto
Copy link
Contributor

@mollfpr @cristipaval
PR is ready for review.

@luacmartins
Copy link
Contributor

I don't think this needs to be a blocker. So I'll remove the labels

@luacmartins luacmartins removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 28, 2024
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Jul 22, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

This issue has not been updated in over 15 days. @sakluger, @cristipaval, @mollfpr, @etCoderDysto eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@etCoderDysto
Copy link
Contributor

We can close this. It has been over a week since the pr is deployed to production.

@luacmartins
Copy link
Contributor

Oh I think automation failed here and we still need to process the payment. Updating the issue

@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Jul 22, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

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

@melvin-bot melvin-bot bot changed the title Search - "Scanning" appears in Description field when expense is scanning [$250] Search - "Scanning" appears in Description field when expense is scanning Jul 22, 2024
@luacmartins luacmartins changed the title Search - "Scanning" appears in Description field when expense is scanning [HOLD for payment 2024-07-22] [$250] Search - "Scanning" appears in Description field when expense is scanning Jul 22, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 22, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

⚠️ This issue has had its price increased by 4x or more. Please review the issue and ensure the price is correct.

Copy link

melvin-bot bot commented Jul 22, 2024

Current assignee @mollfpr is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added the Daily KSv2 label Jul 22, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

Upwork job price has been updated to $250

@melvin-bot melvin-bot bot removed the Monthly KSv2 label Jul 22, 2024
@luacmartins luacmartins added Monthly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Jul 22, 2024
@etCoderDysto
Copy link
Contributor

Oh I think automation failed here and we still need to process the payment. Updating the issue

I don't think there are any payments to be made here. This issue was a regression from my PR. And I and C+ fixed the issue.

@luacmartins
Copy link
Contributor

Ah I see, then yes we're good to close since that'll be handled in the original issue. Thank you!

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

No branches or pull requests

7 participants