-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] QAB - Negative amount briefly displayed when Pay someone #44914
Comments
Triggered auto assignment to @JmillsExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Negative amount is shown on the report preview when pay someone. What is the root cause of that problem?The pay amount logic is, if there is a total amount from the IOU report object, then we use that amount, otherwise, we take the amount from the report preview message. App/src/components/ReportActionItem/ReportPreview.tsx Lines 206 to 232 in c5eafd3
In the OP video, we can see the amount changes from The reason it shows a negative amount is that the IOU report total is 0, so it takes the amount from the report preview message which is negative. If we see some logic related to the money request amount, we take the abs amount if it's an IOU report, which we don't do here. Lines 2408 to 2412 in c5eafd3
But, if we look into the onyx storage, the IOU report actually has a non-zero total, but the data isn't reflected in the report preview component. So, the report preview component holds the old data. It's the withOnyx bug where it doesn't give the most up-to-date data when there are multiple merges happening within a short span of time. It's similar to this issue where the policy data is undefined because What changes do you think we should make in order to solve the problem?As However, we still have one problem, that is the amount changing. After we replace it with The first amount is the optimistic amount. Then, after the send money request is completed, the send money API response returns multiple Onyx merge requests. The first request merges the IOU report data which has a Also, notice that the Because the The last few merge requests from the API response contain the correct data. (the 3rd (the correct message) and then 4th (the correct iou report total) amount is shown) This needs a BE fix. Additionally, we can make sure the amount is never be in negative by making it absolute for IOU report, App/src/components/ReportActionItem/ReportPreview.tsx Lines 218 to 230 in c5eafd3
just like we did here. Line 2412 in c5eafd3
|
@JmillsExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~01ee0d66d57ed7a8d9 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk ( |
I'll add the external label. If the solution is straightforward we can fix it. |
@bernhardoj Thanks for the proposal. Your RCA is not clear to me yet. I replace |
Hmm, you're right. Maybe there is something happened when I tested it. I just rechecked that the problem is in |
@JmillsExpensify, @brunovjk Eep! 4 days overdue now. Issues have feelings too... |
Still waiting for proposals |
Any new finds @bernhardoj ? Thank you :D |
Not yet |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@JmillsExpensify @brunovjk this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Not overdue, still looking for proposals |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Bumped on Slack for proposals |
@JmillsExpensify @brunovjk this issue is now 4 weeks old, please consider:
Thanks! |
Issue not reproducible during KI retests. (First week) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@JmillsExpensify, @brunovjk Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@JmillsExpensify can you reproduce? Thanks |
Issue not reproducible during KI retests. (Second week) |
@JmillsExpensify, @brunovjk Huh... This is 4 days overdue. Who can take care of this? |
@JmillsExpensify should we wait for mvtglobally to complete its weeks, or can we close the issue? We reopen if necessary. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@JmillsExpensify, @brunovjk Eep! 4 days overdue now. Issues have feelings too... |
This comment was marked as outdated.
This comment was marked as outdated.
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Issue not reproducible during KI retests. (Third week) |
@JmillsExpensify, @brunovjk Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I was unable to reproduce (v9.0.24-1). I believe this issue was being caused by some conflict in the server response, which is why there were times when we were able to reproduce it and others not. I didn't find anything strange about it in FE. cc: @JmillsExpensify |
@JmillsExpensify Do you think we can get someone else to reproduce and confirm that the issue still exists? Thank you. |
Let's just close. It's not reproducible for several QA runs. Thanks for reaching out via Slack! |
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: 9.0.4-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/cases/view/2990372
Issue reported by: Applause - Internal Team
Action Performed:
Precondition: user did 'Pay someone' to individual chat
Expected Result:
User navigated to chat with person he payed. Expense preview displays amount
Actual Result:
User navigated to chat with person he payed. Expense preview briefly displays negative amount (occasionally negative amount may stay)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6533418_1720122986864.pay_someone.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @brunovjkThe text was updated successfully, but these errors were encountered: