-
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-08-13] [HOLD for payment 2024-08-07] [$250] Split - Split amount shows 0.00 in LHN when splitting an expense with no chat history #45855
Comments
Triggered auto assignment to @Christinadobrzyn ( |
@Christinadobrzyn 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 |
We think that this bug might be related to #vip-split |
ProposalPlease re-state the problem that we are trying to solve in this issue.Split - Split amount shows owes 0.00 in LHN when splitting an expense with no chat history and after all expense paid. What is the root cause of that problem?Here App/src/components/LHNOptionsList/OptionRowLHNData.tsx Lines 62 to 69 in 0673b9b
The App/src/libs/OptionsListUtils.ts Lines 699 to 708 in 0673b9b
the In the code at: App/src/components/LHNOptionsList/OptionRowLHNData.tsx Lines 62 to 69 in 0673b9b
the When a user receives a split bill message, as detailed App/src/libs/OptionsListUtils.ts Lines 699 to 708 in 0673b9b
the getReportPreviewMessage function does not retrieve the correct message because lastIOUMoneyReportAction is undefined. This occurs because the onyxUpdates from Pusher have not completed yet. Once the onyxUpdates are complete, the OptionItem does not re-render because it does not depend on the reportActions of the iouReport . As a result, it will continue to display 0.00 until the user receives new messages or navigates to another report, triggering a re-render of the LHNData .
What changes do you think we should make in order to solve the problem?We should add a dependency for the The code could be: function getIOUReportIDOfLastAction(report) {
const lastAction = visibleReportActionItems[report.reportID];
if (ReportActionUtils.isReportPreviewAction(lastAction)) {
return getReportOrDraftReport(ReportActionUtils.getIOUReportIDFromReportActionPreview(lastAction))?.reportID;
}
} We could name it Then in const iouReportIDOfLastAction = OptionsListUtils.getIOUReportIDOfLastAction(itemFullReport);
const itemIouReportReportActions = !!iouReportIDOfLastAction ? reportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${iouReportIDOfLastAction}`] : undefined; This addition ensures that the Next, add Result:macos-web-d.mp4Alternative solutionsWe could add dependency of the |
I'm not able to reproduce this, I see the correct amount in the LHN of the split user. ![]() I'll ask QA for some more details on how to reproduce this. #45855 |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
2024-07-22.22.53.33.mp4 |
I'm not getting the same results - I see the actual amount that was split in the LHN but it sounds like QA has been able to reproduce this so we'll keep moving it forward. Starting with this as an |
Job added to Upwork: https://www.upwork.com/jobs/~01756b0cd389a7093c |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk ( |
I will reproduce and review proposal first thing in the morning. |
@Christinadobrzyn another way to reproduce it:
|
I was able to reproduce the issue consistently. |
@brunovjk this is the test branch: https://github.com/tsa321/App/tree/fixLhnDisplaysOwes000 |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @brunovjk 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
@brunovjk PR is ready |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.14-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 2024-08-07. 🎊 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:
|
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.16-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-08-13. 🎊 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:
|
Regression Test Proposal:
Do we agree 👍 or 👎 |
Payouts due:
Regression test - https://github.com/Expensify/Expensify/issues/418884 |
We've got a few more days before payday. |
tomorrow is day 7 so we'll pay out based on this payment summary - #45855 (comment) |
Payment day - paid based on this payment summary Closing as complete |
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.10-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
(Important : Make sure that you haven't opened the chat with user A)
Expected Result:
The split expense preview in LHN shows the correct split amount
Actual Result:
The split expense amount in the LHN message preview shows 0.00 (Message preview is "User B owes 0.00)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6548229_1721493192166.2024-07-20_19_08_12.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ChristinadobrzynThe text was updated successfully, but these errors were encountered: