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 2023-09-04] [$1000] Split Bill - All user names are showing in IOU #25640

Closed
6 tasks done
lanitochka17 opened this issue Aug 22, 2023 · 35 comments
Closed
6 tasks done
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

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. Access staging.new.epensify.com
  2. Sign into a valid account
  3. Split bill

Expected Result:

User expects that the preview shows the users images and not names

Actual Result:

All split bill user names and date is displayed in the IOU

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • Windows / 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

Bug6172869_On_Staging Bug6172869_On_PROD

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/~017a8059f6b6485a78
  • Upwork Job ID: 1693876610499690496
  • Last Price Increase: 2023-08-22
  • Automatic offers:
    • jjcoffee | Reviewer | 26263054
    • s-alves10 | Contributor | 26263056
@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 @robertjchen (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@pradeepmdk
Copy link
Contributor

pradeepmdk commented Aug 22, 2023

Proposal

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

Split Bill - All user names are showing in IOU

What is the root cause of that problem?

Screenshot 2023-08-22 at 7 09 38 AM

merchant: TransactionUtils.getMerchant(transaction),

based on its showing the merchant name
this pr enabled the merchant https://github.com/Expensify/App/pull/25449/files

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

`${Localize.translateLocal('iou.splitBill')} ${Localize.translateLocal('common.with')} ${formattedParticipants} [${DateUtils.getDBTime().slice(0, 10)}]`,

here we are generating the merchant and pass

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

and here we are using that

{requestMerchant && (
<View style={[styles.flexRow]}>
<Text style={[styles.textLabelSupporting, styles.mb1, styles.lh16]}>{requestMerchant}</Text>
</View>
)}

!_.isEmpty(requestMerchant) && requestMerchant === CONST.REPORT.TYPE.IOU 

we need to add a condition here it will show only CONST.REPORT.TYPE.IOU,

@melvin-bot melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Aug 22, 2023
@s-alves10
Copy link
Contributor

s-alves10 commented Aug 22, 2023

Proposal

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

All user names appears in split bill

What is the root cause of that problem?

This is a regression from this PR

We create merchant info optimistically when we create split bill here

`${Localize.translateLocal('iou.splitBill')} ${Localize.translateLocal('common.with')} ${formattedParticipants} [${DateUtils.getDBTime().slice(0, 10)}]`,

We show merchant info below

{requestMerchant && (
<View style={[styles.flexRow]}>
<Text style={[styles.textLabelSupporting, styles.mb1, styles.lh16]}>{requestMerchant}</Text>
</View>
)}

This is the root cause

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

I don't think we need to show merchant information in money request preview

Replacing the merchant part in the MoneyRequestPreview will solve the issue

with

 {!props.isBillSplit && requestMerchant && ( 
     <View style={[styles.flexRow]}> 
         <Text style={[styles.textLabelSupporting, styles.mb1, styles.lh16]}>{requestMerchant}</Text> 
     </View> 
 )}

This works as expected

What alternative solutions did you explore? (Optional)

@robertjchen robertjchen added the External Added to denote the issue can be worked on by a contributor label Aug 22, 2023
@melvin-bot melvin-bot bot changed the title Split Bill - All user names are showing in IOU [$1000] Split Bill - All user names are showing in IOU Aug 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

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

@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 @michaelhaxhiu (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 - @jjcoffee (External)

@robertjchen
Copy link
Contributor

Looks like we have a few proposals here already, let's see if we can get a fix reviewed and out as soon as possible

@pradeepmdk
Copy link
Contributor

@robertjchen Proposal updated #25640 (comment)

@situchan situchan mentioned this issue Aug 22, 2023
59 tasks
@jjcoffee
Copy link
Contributor

@pradeepmdk I'm not sure I understand why we would want to display requestMerchant if it's equal to CONST.REPORT.TYPE.IOU; I think that would just display iou.

@s-alves10 Could you explain what part of the PR you linked caused the regression?

@jjcoffee
Copy link
Contributor

@s-alves10 Perfect, thanks! I don't think removing the merchant info altogether is the correct solution here as it's definitely intended for it to display for requests.

@pradeepmdk
Copy link
Contributor

pradeepmdk commented Aug 22, 2023

@jjcoffee Yes I agree it will display always IOU so that is not a correct solution,

solution

the merchant show is a newly added feature. I think we should remove this one

`${Localize.translateLocal('iou.splitBill')} ${Localize.translateLocal('common.with')} ${formattedParticipants} [${DateUtils.getDBTime().slice(0, 10)}]`,

because this is not a 'merchant' here

but IOU is default value either we can remove it or we can show the default IOU value.

merchant will come from here and use only requestMoney page
Screenshot 2023-08-22 at 2 22 58 PM

IOU.setMoneyRequestMerchant(value.moneyRequestMerchant);

function getMoneyRequestInformation(report, participant, comment, amount, currency, created, merchant, payeeAccountID, payeeEmail, receipt = undefined, existingTransactionID = null) {

merchant,

@jjcoffee
Copy link
Contributor

@pradeepmdk We do want to display the merchant for money requests, just not for splitting bills (the merchant feature is disabled for splits for now).

Still open for proposals that deal with this issue specifically for split bills!

@jjcoffee
Copy link
Contributor

Bumped on Slack for more proposals.

@s-alves10
Copy link
Contributor

Proposal

Updated

@pradeepmdk
Copy link
Contributor

@pradeepmdk We do want to display the merchant for money requests, just not for splitting bills (the merchant feature is disabled for splits for now).

Still open for proposals that deal with this issue specifically for split bills!

then we can use this!props.isBillSplit && requestMerchant i think @s-alves10 already updated this

@melvin-bot melvin-bot bot removed 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

📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

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

@jjcoffee
Copy link
Contributor

@s-alves10 If you have any issues with slow Android build times, please just raise the PR so I can make a head-start on testing. Thanks!

@s-alves10
Copy link
Contributor

Okay

@s-alves10
Copy link
Contributor

@jjcoffee

PR is created as draft.
I'm testing on various platforms now. Will have it ready for review in an hour or 2.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Aug 22, 2023
@s-alves10
Copy link
Contributor

@jjcoffee

PR is ready for review

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

🎯 ⚡️ Woah @jjcoffee / @s-alves10, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @s-alves10 got assigned: 2023-08-22 13:32:48 Z
  • when the PR got merged: 2023-08-22 17:30:43 UTC

On to the next one 🚀

@marcaaron marcaaron removed the DeployBlockerCash This issue or pull request should block deployment label Aug 23, 2023
@jjcoffee
Copy link
Contributor

Not sure why the automation didn't kick in here, but the PR was deployed to production 2023-08-24. @michaelhaxhiu can you update the title to hold for payment for 2023-08-31? Thanks!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 28, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Split Bill - All user names are showing in IOU [HOLD for payment 2023-09-04] [$1000] Split Bill - All user names are showing in IOU Aug 28, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 28, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 28, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 28, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.57-6 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 2023-09-04. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 Daily KSv2 labels Sep 4, 2023
@jjcoffee
Copy link
Contributor

jjcoffee commented Sep 5, 2023

@michaelhaxhiu Gentle bump for payment on this. Thanks!

@michaelhaxhiu
Copy link
Contributor

I apologize for the delay!

@michaelhaxhiu
Copy link
Contributor

both paid, closing!

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

9 participants