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 2026-04-09][$75] Expense - Report turns to skeleton loader after merging expenses offline #72076
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.2.27-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail:#71747 Email or phone of affected tester (no customers):jsdoijnsojsonidjsij@gmail.com Issue reported by: Applause Internal Team Device used: Mac 15.5 / Chrome App Component: Money Requests
Action Performed:
Go to staging.new.expensify.com
Go to workspace chat.
Create an expense in workspace chat.
Create a second report via + > Create report.
On the second report, click Add expense > Create expense.
🚨 Edited by proposal-police: This proposal was edited at 2025-10-15 14:17:44 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
The report turns to skeleton loader.
What is the root cause of that problem?
We have two transactions called A and B.
When starting the merge flow with transaction B and select transaction A, the transaction A is sourceTransaction and the transaction B is targetTransaction. But if we select the report of transaction A, we still clear the transaction A's expense report here
What changes do you think we should make in order to solve the problem?
With the flow in the RCA, if we select the report of transaction A, the targetTransaction now is transaction A and transaction B is sourceTransaction and we should clear the transaction B's expense report instead if this report only has one transaction
We should swap the source and target transaction if the selected report is the source transaction report
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
If we go with alternative solution, we can update mergeTransactionRequest test and assert the selected report is not cleared.
What alternative solutions did you explore? (Optional)
We can do the swap logic inside this function. By calculating transactionsOfSourceReport, iouActionOfSourceTransaction based on mergeTransaction.reportID. We can rename this to reportTransactionToDelete, iouActionToDelete to avoid the confusion. And then we need to update the correct the onyx data of the report which must be deleted
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 [-]Expense - Report turns to skeleton loader after merging expenses offline[/-][+][$250] Expense - Report turns to skeleton loader after merging expenses offline[/+]on Oct 11, 2025
@mallenexpensify I think there is only one regression here. #86817 is not because it can reproduce in production as I mentioned here. Could you please help to re-check and consider update the payment?
[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: Not needed
[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.
[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 Oct 8, 2025
Triggered auto assignment to @brianlee-expensify (
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.paulnjs commentedon Oct 8, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-10-15 14:17:44 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
The report turns to skeleton loader.
What is the root cause of that problem?
We have two transactions called A and B.
When starting the merge flow with transaction B and select transaction A, the transaction A is
sourceTransactionand the transaction B istargetTransaction. But if we select the report of transaction A, we still clear the transaction A's expense report hereApp/src/libs/actions/MergeTransaction.ts
Lines 221 to 230 in 52e92f7
Which causes the skeleton appears in offline because the report data is cleared
App/src/pages/TransactionMerge/ConfirmationPage.tsx
Lines 67 to 75 in 52e92f7
What changes do you think we should make in order to solve the problem?
With the flow in the RCA, if we select the report of transaction A, the
targetTransactionnow is transaction A and transaction B issourceTransactionand we should clear the transaction B's expense report instead if this report only has one transactionWe should swap the source and target transaction if the selected report is the source transaction report
App/src/pages/TransactionMerge/ConfirmationPage.tsx
Lines 67 to 75 in 52e92f7
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
If we go with alternative solution, we can update
mergeTransactionRequesttest and assert the selected report is not cleared.What alternative solutions did you explore? (Optional)
We can do the swap logic inside this function. By calculating
transactionsOfSourceReport,iouActionOfSourceTransactionbased onmergeTransaction.reportID. We can rename this toreportTransactionToDelete,iouActionToDeleteto avoid the confusion. And then we need to update the correct the onyx data of the report which must be deletedApp/src/libs/actions/MergeTransaction.ts
Lines 221 to 230 in 52e92f7
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.
[-]Expense - Report turns to skeleton loader after merging expenses offline[/-][+][$250] Expense - Report turns to skeleton loader after merging expenses offline[/+]melvin-bot commentedon Oct 11, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021976820760776060646
melvin-bot commentedon Oct 11, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
External)brianlee-expensify commentedon Oct 11, 2025
reproduced on staging.new.expensify.com
2025-10-10_18-28-00.mp4
94 remaining items
melvin-bot commentedon Apr 17, 2026
Upwork job price has been updated to $75
mallenexpensify commentedon Apr 17, 2026
Payment Summary
Contributor: @paulnjs paid $125 via Upwork
Contributor+: @parasharrajat due $125 via NewDot
There were two regressions, I just assigned you to both @parasharrajat
#86817
#86809
@paulnjs can you please accept the job below? Please reply here and tag me once you have.
https://www.upwork.com/jobs/~022045195196152526825
@parasharrajat plz complete the BZ checklist and tag me in a post once you have. Thx
paulnjs commentedon Apr 18, 2026
@mallenexpensify I think there is only one regression here. #86817 is not because it can reproduce in production as I mentioned here. Could you please help to re-check and consider update the payment?
parasharrajat commentedon Apr 19, 2026
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[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: Merge expenses phase 1 #65596 (comment)
[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: Not needed
[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.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/625790
Regression Test Proposal
Test:
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-1fae-afbb-fd13-bef9e7d6e7f4parasharrajat commentedon Apr 19, 2026
Done @mallenexpensify. Can you fix the summary?
mallenexpensify commentedon Apr 20, 2026
summary updated. @paulnjs can you please accept the job below? Please reply here and tag me once you have.
^ Test case created
paulnjs commentedon Apr 20, 2026
@mallenexpensify I accepted. Thanks!
mallenexpensify commentedon Apr 21, 2026
@paulnjs paid, summary updated above. Thx. It's for $75 with $50 bonus
parasharrajat commentedon May 20, 2026
Payment requested as per #72076 (comment)
garrettmknight commentedon May 21, 2026
$125 approved for @parasharrajat