-
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 for payment 2024-12-11] [$250] Held expense - Empty message with reply appears after paying the unheld amount for second time #52696
Comments
Triggered auto assignment to @johncschuster ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The hold report action isn't removed from the paid expense chat and becomes empty when revisiting the report. What is the root cause of that problem?When we pay the expense report with held expense, it will optimistically remove the held expense and move it to the new optimistic expense report. Lines 6309 to 6331 in f77087f
But the issue started to happen when we did it again the second time. It's because when we optimistically add the held expense to a new expense report, we set the pending action to add (as shown above). But we don't clear it when the request is successful. So, the pending action is always true and when we optimistically delete it, it will still be shown because a pending action is always shown. App/src/libs/ReportActionsUtils.ts Lines 676 to 679 in f77087f
It becomes an empty message when we reopen it because the BE response changes the action to ADDCOMMENT instead of IOU. What changes do you think we should make in order to solve the problem?We need to clear the pending action when the request is successful.
We might need to do it for the optimistic report preview too because it also adds a pending action when created optimistically. Lines 6295 to 6302 in f77087f
We can do the same with other optimistic data that I missed. |
Job added to Upwork: https://www.upwork.com/jobs/~021859730399211188082 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
@johncschuster, @DylanDylann Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@DylanDylann please review the proposal above! |
@bernhardoj's proposal looks good to me Note for the PR phase: we need to find out all pendingAction fields and make sure it is reset in successData 🎀 👀 🎀 C+ Reviewed |
Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
There is currently a bug where the pay button doesn't show if there are held expenses. It's reported on the issue that causes it here |
PR is ready cc: @DylanDylann |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.70-9 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-12-11. 🎊 For reference, here are some details about the assignees on this issue:
|
@DylanDylann @johncschuster @DylanDylann The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:Do we agree 👍 or 👎 |
Payment Summary:Contributor: @bernhardoj due $250 via NewDot Upwork job here! Please apply |
Requested in ND. |
$250 approved for @bernhardoj |
Payment has been issued through Upwork. Thanks, everyone, for your contributions! |
Oh wait, I jumped the gun. @DylanDylann, can you please post the regression test steps if applicable? |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
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.63-3
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): applausetester+kh051115@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
In Step 8, the held expense should move to another report when only the pending amount is paid.
In Step 10, after refreshing the page, there should not be an empty message in the expense report.
Actual Result:
In Step 8, the held expense does not move to another report when only the pending amount is paid. The expense preview is marked as paid when only the unheld amount is paid.
In Step 10, after refreshing the page, there is an empty message in the expense report, which opens the held expense.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6668237_1731920941849.bandicam_2024-11-18_17-00-07-546.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @johncschusterThe text was updated successfully, but these errors were encountered: