You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Awaiting Payment Sept 10th] [$250] [Held requests] Hold badge remains on paid expense until refresh the page #44616
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
@trjExpensify 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
Please re-state the problem that we are trying to solve in this issue.
The hold banner doesn't disappear until we refresh the page for a paid expense.
What is the root cause of that problem?
When we pay the expense, we don't optimistically clear the hold status of the report. The pusher or API response doesn't clear the hold status either until we reload the page (from OpenReport).
What changes do you think we should make in order to solve the problem?
BE: clears the hold status from the API response and/or pusher.
FE: Optimistically clear the hold status
In IOU.getPayMoneyRequestParams, add below optimistic data:
What the code above does is, get all the expense report transactions and clear the hold status. We only do this if the full is true which means we pay all hold and non-hold requests.
changed the title [-]Hold - Hold badge remains on paid expense until refresh the page[/-][+][Hold #42573] [Held requests] Hold badge remains on paid expense until refresh the page[/+]on Jul 1, 2024
changed the title [-][$250] [Held requests] Hold badge remains on paid expense until refresh the page[/-][+][Awaiting Payment Sept 10th] [$250] [Held requests] Hold badge remains on paid expense until refresh the page[/+]on Sep 10, 2024
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jun 28, 2024
Triggered auto assignment to @trjExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon Jun 28, 2024
@trjExpensify 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
bernhardoj commentedon Jun 28, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The hold banner doesn't disappear until we refresh the page for a paid expense.
What is the root cause of that problem?
When we pay the expense, we don't optimistically clear the hold status of the report. The pusher or API response doesn't clear the hold status either until we reload the page (from OpenReport).
What changes do you think we should make in order to solve the problem?
BE: clears the hold status from the API response and/or pusher.
FE: Optimistically clear the hold status
In
IOU.getPayMoneyRequestParams, add below optimistic data:(and revert it back in failureData)
What the code above does is, get all the expense report transactions and clear the hold status. We only do this if the
fullis true which means we pay all hold and non-hold requests.trjExpensify commentedon Jun 28, 2024
I have a feeling @robertjchen is working on fixing this already. Maybe he can confirm.
Bit of a sidebar, but for the whack copy and stuff, you're talking care of that here: #42736
robertjchen commentedon Jul 1, 2024
Yes! This should be addressed with the optimistic changes in: #42573
We can put this on hold until those changes are out and then re-test after to make sure this is fixed 👍
[-]Hold - Hold badge remains on paid expense until refresh the page[/-][+][Hold #42573] [Held requests] Hold badge remains on paid expense until refresh the page[/+]trjExpensify commentedon Jul 1, 2024
Cool, done!
68 remaining items
[-][$250] [Held requests] Hold badge remains on paid expense until refresh the page[/-][+][Awaiting Payment Sept 10th] [$250] [Held requests] Hold badge remains on paid expense until refresh the page[/+]trjExpensify commentedon Sep 10, 2024
Payments are due here today. Payment summary as follows:
Both of you can go ahead and request on NewDot, closing!
bernhardoj commentedon Sep 11, 2024
Requested in ND.
JmillsExpensify commentedon Sep 11, 2024
$250 approved for @bernhardoj
garrettmknight commentedon Sep 13, 2024
$250 approved for @getusha