-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-03-14] [$500] Split scan - Scan split request can be created without Merchant #37708
Comments
Triggered auto assignment to @laurenreidexpensify ( |
👋 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:
|
Triggered auto assignment to @techievivek ( |
We think that this bug might be related to #wave7-collect-submitters |
@techievivek 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. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Scan split request can be created without Merchant. What is the root cause of that problem?We don't display an error if we're editing the split bill
App/src/components/MoneyRequestConfirmationList.js Lines 277 to 279 in a79c119
What changes do you think we should make in order to solve the problem?We can remove this check to allow display error while editing split bill App/src/components/MoneyRequestConfirmationList.js Lines 277 to 279 in a79c119
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.We can complete a split in policy expense chat without filling in the merchant-required field. What is the root cause of that problem?When we press the split button, we will check first whether the required fields are empty or not. App/src/components/MoneyRequestConfirmationList.js Lines 497 to 500 in a79c119
App/src/libs/TransactionUtils.ts Lines 167 to 171 in a79c119
The merchant is only required if it's an expense request and it should be true for our case. It checks the IOU report from the transaction Lines 1418 to 1421 in 8f58898
So, the expense request check is always false, and updating the amount is enough to bypass the merchant field. What changes do you think we should make in order to solve the problem?Instead of relying on the transaction report ID, we can pass the value from the params. areRequiredFieldsEmpty(transaction, isFromExpenseReport) // or isPolicyExpenseChat and we can pass But to prevent big changes, we can keep the IOU parent report type check and the new param, so we will rely on 2 values, with the new param as the fallback value. else, we can pass anything optional like report ID that can be used to detect whether it's an expense report or not What alternative solutions did you explore? (Optional)Currently, the transaction only contains a Or We can check the transaction splits participants and check if there is a policy expense chat. This way, we don't need to add a new param. const isPolicyExpenseChat = transaction.comment.splits?.some(participant => allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${participant.chatReportID}`]?.isOwnPolicyExpenseChat) |
Job added to Upwork: https://www.upwork.com/jobs/~01718d2bb982e868c3 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
❌ There was an error making the offer to @mkhutornyi for the Contributor role. The BZ member will need to manually hire the contributor. |
@bernhardoj what is the offending PR? |
This was caused by #37393 |
PR is ready |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.48-0 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-03-14. 🎊 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
BugZero Checklist (@laurenreidexpensify)
|
Payment Summary Reviewer: @allroundexperts owed $500 via NewDot |
Not overdue, finishing up the payment ^ |
Still waiting on @bernhardoj to accept offer in upwork 👍 |
Applied to the job |
@bernhardoj the offer is still showing as Pending in Upwork - can you confirm you've accepted - Upwork Job |
Payment Summary Reviewer: @allroundexperts owed $500 via NewDot |
Final Steps: @allroundexperts pls complete checklist thanks |
Checklist
Regression test steps
Do we 👍 or 👎 ? |
$500 approved for @allroundexperts. |
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: 1.4.47-0
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
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
Action Performed:
Expected Result:
App will prevent the bill from splitting because merchant is not entered as merchant is a requirement in workspace expense.
Actual Result:
Scan split request can be created without Merchant.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6402232_1709602219456.bandicam_2024-03-05_07-02-15-673__1_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: