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

[$1000] IOU - IOU is displayed as Merchant in IOU details page when IOU is created without a Merchant #25694

Closed
3 of 6 tasks
lanitochka17 opened this issue Aug 22, 2023 · 17 comments
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 22, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Go to staging.new.expensify,com
  2. Create money request without selecting a merchant
  3. Open the money request report
  4. Click on the IOU preview

Expected Result:

Merchant is not stated because money request is created without selecting a merchant

Actual Result:

IOU (or sometimes, Request) is shown for Merchant when money request is created without selecting a merchant

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome
  • MacOS / Desktop

**Version Number:**1.3.56-2

Reproducible in staging?: Yes

Reproducible in production?: No

If this was caught during regression testing, add the test name, ID and link from TestRail:

Email or phone of affected tester (no customers):

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Bug6173403_20230822_131014.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019d6df5b1911e3c11
  • Upwork Job ID: 1694136380885807104
  • Last Price Increase: 2023-08-22
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Aug 22, 2023
@OSBotify
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.

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

Triggered auto assignment to @deetergp (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@shubham1206agra
Copy link
Contributor

@deetergp Looks like its coming from here

merchant = CONST.REPORT.TYPE.IOU,

@shubham1206agra
Copy link
Contributor

Is it necessary to have merchant or we can leave it blank?

@shubham1206agra
Copy link
Contributor

Now its showing Request as merchant
Looks like its getting overridden from BE

@shubham1206agra
Copy link
Contributor

Confirmed it
IOU is coming due to optimistic transaction data
And now for blank merchant BE will pass Request as merchant

@shubham1206agra
Copy link
Contributor

shubham1206agra commented Aug 22, 2023

Proposal

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

IOU - IOU is displayed as Merchant in IOU details page when IOU is created without a Merchant

What is the root cause of that problem?

This is due to during requestMoney call we are using buildOptimisticTransaction to create optimistic report data
And we use CONST.REPORT.TYPE.IOU as the default value for merchant in the places

merchant = CONST.REPORT.TYPE.IOU,

and
merchant: merchant || CONST.REPORT.TYPE.IOU,

And for merchant becoming Request. This is coming from BE only.

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

Replace CONST.REPORT.TYPE.IOU with empty strings in buildOptimisticTransaction.
For Request, this needs to be checked from the backend.

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Aug 22, 2023
@roryabraham roryabraham added Hourly KSv2 and removed Daily KSv2 labels Aug 22, 2023
@deetergp deetergp added External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment labels Aug 22, 2023
@melvin-bot melvin-bot bot changed the title IOU - IOU is displayed as Merchant in IOU details page when IOU is created without a Merchant [$1000] IOU - IOU is displayed as Merchant in IOU details page when IOU is created without a Merchant Aug 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

Triggered auto assignment to @kadiealexander (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

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

@deetergp
Copy link
Contributor

I don't think this issue is big enough to consider it a blocker—it is pretty minor.

@deetergp deetergp added Daily KSv2 and removed Hourly KSv2 labels Aug 23, 2023
@shubham1206agra
Copy link
Contributor

@rushatgabhane Can you review my proposal?

@rushatgabhane
Copy link
Member

rushatgabhane commented Aug 23, 2023

@mountiny is this an issue? If yes, is it being internally tracked?

I think the deafult merchant should be Request, and that the backend is correct.

@rushatgabhane
Copy link
Member

rushatgabhane commented Aug 23, 2023

@mountiny should we fix this in your follow-up PRs because this is really minor and it happened because API wasn't ready when we merged merchant PR.

@tewodrosGirmaA
Copy link

Hey guys! I reported this bug in Slack before this issue was created. Could you please change the reporter's name? Thanks! Here's the link to the bug report: Bug Report Slack Link (https://expensify.slack.com/archives/C049HHMV9SM/p1692687129320969)

@luacmartins
Copy link
Contributor

This is not an issue, all requests should have a default merchant name. We're updating it to the correct merchant name in this PR

@luacmartins luacmartins self-assigned this Aug 23, 2023
@luacmartins
Copy link
Contributor

Gonna close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

9 participants