-
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
[HOLD #48400][$250] Expense - RBR doesn't disappear Instantly after paying held expense #48397
Comments
Triggered auto assignment to @twisterdotcom ( |
We think that this bug might be related to #vip-bills |
@twisterdotcom 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 |
Edited by proposal-police: This proposal was edited at 2024-09-02 13:47:25 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.RBR doesn't disappear Instantly after paying held expense What is the root cause of that problem?In getPayMoneyRequestParams, we unhold transactions when we process a payment, but we don't clear transaction violation("hold"). This is why we're still seeing RBR. Lines 6725 to 6734 in 9aca655
![]() What changes do you think we should make in order to solve the problem?We should also clear the transaction violation "hold" here. We can do something like this
We also need to include failure data here. What alternative solutions did you explore? (Optional) |
Yes, I recreated this. rbr.expense.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~021831729851068678041 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.After paying the held expense in step 6, the RBR in the preview persists. The red dot only disappears after clicking on the preview and returning to the chat. What is the root cause of that problem?When we pay money request, we unhold all transactions. But we don't clear the hold violation in optimistic data and after the API is complete, BE also doesn't clear the hold violation of the transaction then RBR still displays. Lines 6725 to 6734 in 65c0f41
This bug also happens when we approve money request but it only happens in offline, after the API is complete, BE returns violation of transaction that cleared the hold violation Lines 7018 to 7023 in 65c0f41
What changes do you think we should make in order to solve the problem?We should clear the hold violation when we pay/approve all requests. To prevent duplicate code, we can create a util to get the optimistic data for this case
Then we can use this in both places here
Lines 6725 to 6734 in 65c0f41
Lines 7018 to 7023 in 65c0f41
OPTIONAL: BE should also clear the hold violation when returning the data in What alternative solutions did you explore? (Optional) |
@twisterdotcom, @abdulrahuman5196 Huh... This is 4 days overdue. Who can take care of this? |
@abdulrahuman5196 how are we doing on the reviews here? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Hi @twisterdotcom, I am having multiple items on my plate. Kindly assign it to a different C+. Unassigning myself. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ikevin127 ( |
📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@thienlnam this might be a duplicate of #48400. I think we should fix it now, and if it's a dupe we can handle it in that other issue |
Ah yeah, actually this does look like a dupe and the other issue already has an assignee |
@cead22 I think we should clear the hold violation in optimistic data if we paid full instead of adding |
There's a 3rd dupe of this issue that might be fixed in similar fashion, only difference being it's a split instead of hold: Please confirm if this would be fixed by selected proposal from #48400 so we know whether to close it. |
@twisterdotcom, @thienlnam, @ikevin127 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@ikevin127 That looks like it would also be solved by #48400 The steps don't look reproducible because it's probably because the expense needs to have a violation |
This issue has not been updated in over 15 days. @twisterdotcom, @thienlnam, @ikevin127 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! |
#48400 is closed now so I'll try to retest this. |
Retesting. |
Yeah, fixed. 48397.mp4 |
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.27-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
After paying the held expense in step 6, the RBR in the preview should disappear instantly.
Actual Result:
After paying the held expense in step 6, the RBR in the preview persists. The red dot only disappears after clicking on the preview and returning to the chat.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6589914_1725218970132.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @twisterdotcomThe text was updated successfully, but these errors were encountered: