-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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-07] [LOW] [P2P] [$500] IOU - Delay in updating green dot and total amount when the net amounts cancel each other out for 2 users #33774
Comments
Job added to Upwork: https://www.upwork.com/jobs/~017d07091eedfc5a43 |
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.green dot should be removed when the net amount is 0 in iou What is the root cause of that problem?inside the Line 1596 in 48953d0
What changes do you think we should make in order to solve the problem?we need to add the following condition: if ( optionOrReport?.iouReportAmount === 0) {
return false;
} also, we might add a condition that for the delay in the message in point 7, this is a backend pusher issue |
ProposalPlease re-state the problem that we are trying to solve in this issue.The green dot of the parent chat report doesn't update immediately. What is the root cause of that problem?This is happening because we do not update the As a result, the chat report's green dot is displayed because of this check: Lines 1614 to 1617 in a74cc7a
What changes do you think we should make in order to solve the problem?In hasOutstandingChildRequest: iouReport.total !== 0, Lines 307 to 319 in 433bc47
We need to do the same on the money request removal: ...(shouldDeleteIOUReport
? [
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${chatReport.reportID}`,
value: {
hasOutstandingChildRequest: false,
iouReportID: null,
lastMessageText: ReportActionsUtils.getLastVisibleMessage(iouReport.chatReportID, {[reportPreviewAction.reportActionID]: null}).lastMessageText,
lastVisibleActionCreated: lodashGet(ReportActionsUtils.getLastVisibleAction(iouReport.chatReportID, {[reportPreviewAction.reportActionID]: null}), 'created'),
},
},
]
: [
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${chatReport.reportID}`,
value: {
hasOutstandingChildRequest: updatedIOUReport.total !== 0,
},
},
]), Lines 2422 to 2435 in 433bc47
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
We have to compare We should do the same when deleting money request as well here (checking both
(or we can check that What alternative solutions did you explore? (Optional)NA |
@jliexpensify, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@lanitochka17 I don't think the title is very clear. Am I correct in my understanding that the title should be something like: EDIT: Tagged Gabi in #vip-split here - https://expensify.slack.com/archives/C05RECHFBEW/p1704162130168679 |
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@thienlnam @mobilify @shubham1206agra The recent change indicates that |
@mountiny Can you clarify the above comment? |
Well regarding that line, thats about request money and setting the GBR optimistically which only happens in the workspace/ expense report case. You cannot request money from yourself in IOU case |
Aha, thank you for clarifying! |
@thienlnam @jliexpensify @mountiny @shubham1206agra @tienifr this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
Not overdue! |
@shubham1206agra Hi, looks like you need to review the PR? |
I am OOO right now. Will review it on 30th |
@mountiny @thienlnam The current solution does not work if the currency in which money is requested is different the default currency of the user. Should we skip these cases as it seems impossible from FE to fix these cases? |
If there is mix of currencies on the report or the report has different currency compared to the expense itself, then yes we cannot do much about it offline in App |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.45-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-03-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:
|
Payment Summary
|
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:
|
Paid and job closed |
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. |
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.19-1
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: Applause - Internal Team
Slack conversation:
Action Performed:
Precondition: User A has requested money from User B
Expected Result:
In Step 3, once the net owe becomes 0, the green dot for the main chat in LHN will disappear
In Step 7, the new amount should update instantly
Actual Result:
In Step 3, once the net owe becomes 0, the green dot for the main chat in LHN does not disappear, unless the main chat is visited
In Step 7, the total amount remains at 0, unless the report is revisited
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6328606_1703873451494.20231229_081427.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: