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-01-03] [$125] Split Bill - Merchant must have the same value after creating the split bill #29691

Closed
6 tasks done
kbecciv opened this issue Oct 16, 2023 · 35 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff

Comments

@kbecciv
Copy link

kbecciv commented Oct 16, 2023

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: 1.3.84.7
Reproducible in staging?: y
Reproducible in production?: y
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
Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697047715565069

Action Performed:

  1. Click FAB button
  2. Click request money
  3. Enter amount => Next
  4. Click split 2 users
  5. Click add to split
  6. Click show more => Merchant, Observe that the default value is "Request"
  7. Click split
  8. Click Split preview
  9. Click show more, in merchant, Observe "Split with...."

Expected Result:

Merchant must have the same value after creating the split bill

Actual Result:

There is a difference between the merchant after splitting the bill, when they create the merchant the value is "Request" but when the slit bill is created the merchant has the value "Split with...."

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

Android: Native
Screen.Recording.2023-10-12.at.16.01.35.1.mov
Android: mWeb Chrome
Screen.Recording.2023-10-12.at.15.47.34.1.mov
iOS: Native
RPReplay_Final1697100622.MP4
iOS: mWeb Safari
RPReplay_Final1697100658.MP4
MacOS: Chrome / Safari
Screen.Recording.2023-10-12.at.01.09.35.mov
Recording.5015.mp4
MacOS: Desktop
Screen.Recording.2023-10-12.at.15.49.12.mov

View all open jobs on GitHub

@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

Triggered auto assignment to @trjExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

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

melvin-bot bot commented Oct 16, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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

@sicarius97
Copy link

sicarius97 commented Oct 16, 2023

Proposal

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

Instead of taking in the user input in the merchant field (by default "Request") in the split bill screen, it automatically defaults to "Split with [participants]".

What is the root cause of that problem?

The cause of this issue is that in this code the merchant is automatically formatted on splits to the above mentioned:

App/src/libs/actions/IOU.js

Lines 914 to 927 in a456ef9

const splitTransaction = TransactionUtils.buildOptimisticTransaction(
amount,
currency,
CONST.REPORT.SPLIT_REPORTID,
comment,
'',
'',
'',
`${Localize.translateLocal('iou.splitBill')} ${Localize.translateLocal('common.with')} ${formattedParticipants} [${DateUtils.getDBTime().slice(0, 10)}]`,
undefined,
undefined,
undefined,
category,
);

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

Instead of automatically formatting it to the "Split with [participants]" by default like it is currently, line 922 above should instead take in the submitted user input when building the transaction so that it reflects that value on submission like it does for the other fields. Specifically, that line and one other just need to be changed to the input prop var merchant .

@trjExpensify
Copy link
Contributor

Oh interesting, I think @youssef-lr should have solved this.

@youssef-lr youssef-lr changed the title Split Bill - Merchant must have the same value after creating the split bill [$125] Split Bill - Merchant must have the same value after creating the split bill Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@trjExpensify trjExpensify added External Added to denote the issue can be worked on by a contributor and removed 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 labels Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

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

melvin-bot bot commented Oct 16, 2023

Current assignee @aimane-chnaif is eligible for the External assigner, not assigning anyone new.

@trjExpensify
Copy link
Contributor

Summin' up with Upwork to create this job. Sigh..

@youssef-lr youssef-lr self-assigned this Oct 16, 2023
@youssef-lr youssef-lr added Internal Requires API changes or must be handled by Expensify staff and removed 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 labels Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

Current assignee @aimane-chnaif is eligible for the Internal assigner, not assigning anyone new.

@youssef-lr
Copy link
Contributor

Sorry @sicarius97 this needs to be internal as we also hardcode that merchant in the backend, so even if you send the merchant from the frontend it won't be used.

@sicarius97
Copy link

@youssef-lr Gotcha, no worries. I saw it looked like you had merged some updates for the one on one splits that seemed to be the correct requested format as well

@sicarius97
Copy link

If there is any part of that or the TS transition I can contribute to, let me know!

@youssef-lr
Copy link
Contributor

@trjExpensify I missed a Web-E PR that I have locally that's needed, as well as an App PR, will work on these now and request a review shortly.

Copy link

melvin-bot bot commented Nov 27, 2023

This issue has not been updated in over 15 days. @youssef-lr, @trjExpensify, @aimane-chnaif 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!

@aimane-chnaif
Copy link
Contributor

@youssef-lr is OOO until this week

Copy link

melvin-bot bot commented Nov 29, 2023

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

Copy link

melvin-bot bot commented Dec 11, 2023

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

Copy link

melvin-bot bot commented Dec 26, 2023

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

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Monthly KSv2 labels Dec 27, 2023
@melvin-bot melvin-bot bot changed the title [$125] Split Bill - Merchant must have the same value after creating the split bill [HOLD for payment 2024-01-03] [$125] Split Bill - Merchant must have the same value after creating the split bill Dec 27, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 27, 2023
Copy link

melvin-bot bot commented Dec 27, 2023

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

Copy link

melvin-bot bot commented Dec 27, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.17-8 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 2024-01-03. 🎊

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:

Copy link

melvin-bot bot commented Dec 27, 2023

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:

  • [@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
  • [@aimane-chnaif] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@aimane-chnaif] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@aimane-chnaif] Determine if we should create a regression test for this bug.
  • [@aimane-chnaif] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@trjExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jan 2, 2024
@trjExpensify
Copy link
Contributor

👋 @aimane-chnaif checklist time, please!

@aimane-chnaif
Copy link
Contributor

Not able to find offending PR. There were back and forth changes related to merchant field.

Regression Test Proposal

  1. Create a manual split with contacts and make sure you set a merchant and a description
  2. Verify that split preview shows the merchant but not the description
  3. Create another split by supplying only the description, not merchant
  4. Verify that the description is shown in the preview
  5. Click on split preview detail
  6. Verify that merchant is not set

@aimane-chnaif
Copy link
Contributor

Payment will be handled in #29732

@trjExpensify
Copy link
Contributor

Nice, so similarly I think the regression test will get added holistically with the project. So we can close this now.

@namhihi237
Copy link
Contributor

@trjExpensify i think i can receive bonus as a reporter

@trjExpensify
Copy link
Contributor

Yup, Oct 24th the program change went into effect, so I've sent you an offer of $50 for the bug report.

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. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

8 participants