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
[$250] Expense - "moved this expense to your personal space" is missing sender, empty message on Reports #70444
BugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorMonthlyKSv2ReviewingHas a PR in review
Version Number: 9.2.13-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:#69959 Email or phone of affected tester (no customers):sdjonidsdjsiod@gmail.com Issue reported by: Applause Internal Team Device used: Mac 15.5 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Account has self DM and workspace.
Go to staging.new.expensify.com
Go to workspace.
Create a manual expense.
Create a new report.
Open the expense from Step 3.
Click Report.
Select the new report from Step 4.
Open the new report.
Click Report field.
Click Remove from report.
Click More > Delete.
Delete the report.
Go to self DM and open the unreported expense.
Go to Reports > Chats.
Expected Result:
In Step 13, "moved this expense to your personal space" message will show message sender.
In Step 14, there will be no empty message in Reports > Chats.
Actual Result:
In Step 13, "moved this expense to your personal space" message does not show message sender.
In Step 14, there is an empty message in Reports > Chats.
Please re-state the problem that we are trying to solve in this issue.
In Step 13, "moved this expense to your personal space" message does not show message sender.
In Step 14, there is an empty message in Reports > Chats.
What is the root cause of that problem?
The moved this expense to your personal space action doesn't show the sender because it's grouped with the previous moved action.
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)
Update canActionsBeGrouped unit test function to verify it returns false if the action is UNREPORTEDTRANSACTION/MOVEDTRANSACTION
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.
Please re-state the problem that we are trying to solve in this issue.
"moved this expense to your personal space" action is missing sender and empty message on Reports
What is the root cause of that problem?
The sender won't show if it's a consecutive message within the time limit. In our case, there is a hidden MOVEDTRANSACTION action. It doesn't show because the toReport is missing (because we already delete it), so we render nothing.
What changes do you think we should make in order to solve the problem?
We have 2 options.
The simplest one, we can just render the message even though the toReport is missing, so it will just show "moved this expense" without the report name.
The other option is to filter out in ReportActionsUtils.shouldReportActionBeVisible.
changed the title [-]Expense - "moved this expense to your personal space" is missing sender, empty message on Reports[/-][+][$250] Expense - "moved this expense to your personal space" is missing sender, empty message on Reports[/+]on Sep 15, 2025
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!
BugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorMonthlyKSv2ReviewingHas a PR in review
Activity
melvin-bot commentedon Sep 12, 2025
Triggered auto assignment to @zanyrenney (
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.nkdengineer commentedon Sep 12, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
In Step 13, "moved this expense to your personal space" message does not show message sender.
In Step 14, there is an empty message in Reports > Chats.
What is the root cause of that problem?
The
moved this expense to your personal spaceaction doesn't show the sender because it's grouped with the previous moved action.App/src/pages/home/report/ReportActionsList.tsx
Lines 650 to 655 in 5553131
displayAsGroupistruebecause we don't return early if the action is system message action and two actions are created in the short time.App/src/libs/ReportActionsUtils.ts
Lines 683 to 695 in 5553131
What changes do you think we should make in order to solve the problem?
We can return early if the action/previous action is
UNREPORTEDTRANSACTION/MOVEDTRANSACTIONApp/src/libs/ReportActionsUtils.ts
Lines 683 to 695 in 5553131
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)
Update
canActionsBeGroupedunit test function to verify it returnsfalseif the action isUNREPORTEDTRANSACTION/MOVEDTRANSACTIONReminder: 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.
bernhardoj commentedon Sep 12, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
"moved this expense to your personal space" action is missing sender and empty message on Reports
What is the root cause of that problem?
The sender won't show if it's a consecutive message within the time limit. In our case, there is a hidden MOVEDTRANSACTION action. It doesn't show because the
toReportis missing (because we already delete it), so we render nothing.App/src/pages/home/report/PureReportActionItem.tsx
Lines 1157 to 1167 in 6d9f878
It's the same case on the Reports > Chats page.
What changes do you think we should make in order to solve the problem?
We have 2 options.
The simplest one, we can just render the message even though the
toReportis missing, so it will just show "moved this expense" without the report name.The other option is to filter out in
ReportActionsUtils.shouldReportActionBeVisible.And add the
shouldReportActionBeVisibletogetReportActionsSectionsfilter logic too.App/src/libs/SearchUIUtils.ts
Lines 1336 to 1345 in 6d9f878
App/src/libs/SearchUIUtils.ts
Lines 1336 to 1345 in 6d9f878
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
If we go with the 2nd option, we can add a new test case for
shouldReportActionBeVisiblefor MOVEDTRANSACTION.melvin-bot commentedon Sep 15, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021967638906678553589
[-]Expense - "moved this expense to your personal space" is missing sender, empty message on Reports[/-][+][$250] Expense - "moved this expense to your personal space" is missing sender, empty message on Reports[/+]melvin-bot commentedon Sep 15, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 (
External)zanyrenney commentedon Sep 15, 2025
asked here: https://expensify.slack.com/archives/C049HHMV9SM/p1757956851946749
20 remaining items
bernhardoj commentedon Sep 29, 2025
PR is ready
cc: @hungvu193
melvin-bot commentedon Oct 22, 2025
This issue has not been updated in over 15 days. @chuckdries, @hungvu193, @bernhardoj, @zanyrenney 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!
hungvu193 commentedon Oct 23, 2025
Oh this is due for payment
cc @zanyrenney
zanyrenney commentedon Oct 29, 2025
Payment summary
$250 due to @hungvu193 via ND.
$250 due to @bernhardoj via ND.
bernhardoj commentedon Oct 29, 2025
Requested in ND.
quinthar commentedon Nov 2, 2025
$250 approved to @bernhardoj
JmillsExpensify commentedon Nov 3, 2025
$250 approved for @hungvu193