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
[Due for payment 2025-09-19] [$250] mWeb/Chrome - LHN - No GBR shown in ws chat after deleting report #69031
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
Version Number: 9.1.97-2 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers):Sintayewkindu7@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Navigating to staging.new.expensify.com
Create Workspace
Submit expense
Note there is GBR in LHN
Create a report in the workspace
Note there is GBR still
Delete the report created in step 5
Navigate to LHN
Expected Result:
GBR still exist as the expense exist in WS chat
Actual Result:
GBR is not shown after deleting Report until navigating to the WS chat
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Android: App
Android: mWeb Chrome
iOS: App
iOS: mWeb Safari
iOS: mWeb Chrome
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:
Android: App
Android: mWeb Chrome
iOS: App
iOS: mWeb Safari
iOS: mWeb Chrome
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceBug6923022_1755790540071.Recording_20250821_172755.mp4
without checking if action is required from the user after that iou report is deleted
What changes do you think we should make in order to solve the problem?
We need to only reset it if there is no hasOutstandingChildRequest after the deletion of the iou report so we can recalculate it via hasIOUToApproveOrPay like we do here
But hasIOUToApproveOrPay only includes the case of approve and pay action but BE considers a request as outstanding for the case of submit action too so we will update it to hasIOUToSubmitApproveOrPay to consider the submit case too (but if needed we can apply the submit case only for our case via a param but I suggest it applies to other cases we using it currently)
we will pass the deletedReportPreviewActionID
BTW alternatively we can utilize the already existing param updatedIouReport instead by passing the deleted iouReport with pending deletion set and use it instead of deletedReportPreviewActionID in the above.
Note: We are using hasIOUToApproveOrPay here for approve action and hasOutstandingChildRequest here for pay action to recalculate hasOutstandingChildRequest of the chatReport and there is no basic difference in the functions because hasIOUToApproveOrPay takes the updatedIOUReport and hasOutstandingChildRequest takes the iouReport that was paid to recalcaulate the new value based on the changes linked to the respective actions. So I recommend to join this two functions together and use them to recalculate in all cases needed. We can easily handle it via a param updatedIOUReportOrDelettedIOUReportID which can have Report or string type and if string is passed we know that we should not consider the passed iou report id in the calculation. I also see other cases where we are wrongly resetting hasOutstandingChildRequest instead of recalculating it, for instance, for the case of delete the only money request of an iou report here
Therefore, we should use a centrialized DRY single function in all cases needed to recalculate hasOutstandingChildRequest instead of resetting in all cases needed 👍
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can add a test for deleteAppReport that it doesn't reset hasOutstandingChildRequest of the chatReport while there is action required from the user.
What alternative solutions did you explore? (Optional)
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
We can add test for the deleteAppReport to cover this scenario
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
changed the title [-]mWeb/Chrome - LHN - No GBR shown in ws chat after deleting report[/-][+][$250] mWeb/Chrome - LHN - No GBR shown in ws chat after deleting report[/+]on Aug 25, 2025
changed the title [-][$250] mWeb/Chrome - LHN - No GBR shown in ws chat after deleting report[/-][+][Due for payment 2025-09-19] [$250] mWeb/Chrome - LHN - No GBR shown in ws chat after deleting report[/+]on Sep 12, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.12-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@thesahindia@jliexpensify 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]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: Not from one specific PR
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
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 Aug 22, 2025
Triggered auto assignment to @jliexpensify (
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.FitseTLT commentedon Aug 22, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
mWeb/Chrome - LHN - No GBR shown in ws chat after deleting report
What is the root cause of that problem?
We are resetting
hasOutstandingChildRequestof the chatReport when deleting the reportApp/src/libs/actions/Report.ts
Lines 5063 to 5067 in d7214c5
without checking if action is required from the user after that iou report is deleted
What changes do you think we should make in order to solve the problem?
We need to only reset it if there is no hasOutstandingChildRequest after the deletion of the iou report so we can recalculate it via
hasIOUToApproveOrPaylike we do hereApp/src/libs/actions/IOU.ts
Line 9674 in d7214c5
But hasIOUToApproveOrPay only includes the case of approve and pay action but BE considers a request as outstanding for the case of submit action too so we will update it to
hasIOUToSubmitApproveOrPayto consider the submit case too (but if needed we can apply the submit case only for our case via a param but I suggest it applies to other cases we using it currently)we will pass the deletedReportPreviewActionID
App/src/libs/actions/IOU.ts
Lines 9586 to 9600 in d7214c5
BTW alternatively we can utilize the already existing param
updatedIouReportinstead by passing the deleted iouReport with pending deletion set and use it instead ofdeletedReportPreviewActionIDin the above.App/src/libs/actions/Report.ts
Line 5066 in d7214c5
Note: We are using hasIOUToApproveOrPay here for approve action and hasOutstandingChildRequest here for pay action to recalculate hasOutstandingChildRequest of the chatReport and there is no basic difference in the functions because hasIOUToApproveOrPay takes the updatedIOUReport and hasOutstandingChildRequest takes the iouReport that was paid to recalcaulate the new value based on the changes linked to the respective actions. So I recommend to join this two functions together and use them to recalculate in all cases needed. We can easily handle it via a param
updatedIOUReportOrDelettedIOUReportIDwhich can have Report or string type and if string is passed we know that we should not consider the passed iou report id in the calculation. I also see other cases where we are wrongly resetting hasOutstandingChildRequest instead of recalculating it, for instance, for the case of delete the only money request of an iou report hereApp/src/libs/actions/IOU.ts
Lines 8244 to 8246 in d7214c5
Therefore, we should use a centrialized DRY single function in all cases needed to recalculate
hasOutstandingChildRequestinstead of resetting in all cases needed 👍What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can add a test for deleteAppReport that it doesn't reset hasOutstandingChildRequest of the chatReport while there is action required from the user.
What alternative solutions did you explore? (Optional)
nkdengineer commentedon Aug 22, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
GBR is not shown after deleting Report until navigating to the WS chat
What is the root cause of that problem?
We are setting
hasOutstandingChildRequestasfalsehereApp/src/libs/actions/Report.ts
Lines 5063 to 5073 in 91f5892
It leads to us not having
requiresAttentionhereApp/src/libs/actions/OnyxDerived/configs/reportAttributes.ts
Lines 132 to 138 in 91f5892
=> We don't have the field
brickRoadStatusinreportAttributesOnyx dataApp/src/libs/actions/OnyxDerived/configs/reportAttributes.ts
Lines 145 to 148 in 91f5892
=> we don't have
brickRoadIndicatoringetOptionDatafunctionApp/src/libs/SidebarUtils.ts
Line 692 in 91f5892
What changes do you think we should make in order to solve the problem?
We should reset the
hasOutstandingChildRequestbase on the same existing logic that we have inIOU.tshereApp/src/libs/actions/IOU.ts
Lines 9091 to 9108 in 91f5892
getHasOutstandingChildRequesthasOutstandingChildRequestinoptimisticDataWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
We can add test for the
deleteAppReportto cover this scenarioReminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
dubielzyk-expensify commentedon Aug 25, 2025
Yeah seems like a bug given there should be a GBR for the submit action, right? @trjExpensify for confirmation
jliexpensify commentedon Aug 25, 2025
Thanks for confirming Jon - that makes sense re: the submit action.
[-]mWeb/Chrome - LHN - No GBR shown in ws chat after deleting report[/-][+][$250] mWeb/Chrome - LHN - No GBR shown in ws chat after deleting report[/+]melvin-bot commentedon Aug 25, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021959775776292267733
25 remaining items
[-][$250] mWeb/Chrome - LHN - No GBR shown in ws chat after deleting report[/-][+][Due for payment 2025-09-19] [$250] mWeb/Chrome - LHN - No GBR shown in ws chat after deleting report[/+]melvin-bot commentedon Sep 12, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Sep 12, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.12-4 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 2025-09-19. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Sep 12, 2025
@thesahindia @jliexpensify 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]
jliexpensify commentedon Sep 19, 2025
@thesahindia bumping you for the checklist please
jliexpensify commentedon Sep 19, 2025
Payment Summary
https://www.upwork.com/jobs/~021959775776292267733
jliexpensify commentedon Sep 19, 2025
Paid and job closed
melvin-bot commentedon Sep 19, 2025
Payment Summary
Upwork Job
BugZero Checklist (@jliexpensify)
thesahindia commentedon Sep 20, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: Not from one specific PR
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test:
Do we agree 👍 or 👎
garrettmknight commentedon May 21, 2026
$250 approved for @thesahindia