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
[HOLD for payment 2024-05-01] [$500] Workspace – “Submitted $amount” system message appears for a moment when Employee submit IOU #38579
@garrettmknight 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
changed the title [-]Workspace – “Submitted $amount” system message appears for a moment when Employee submit IOU[/-][+][$500] Workspace – “Submitted $amount” system message appears for a moment when Employee submit IOU[/+]on Mar 19, 2024
We can move this change to getIOUReportActionMessage (only updating SUBMITTED case)
And moreover We can think of more complex logic especially to determine the first and last fragments, especially the last because the way display name and login are displayed depend on their existence.
What alternative solutions did you explore? (Optional)
A discussion in #expensify-bugs 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
Determine if we should create a regression test for this bug: No
This is a minor bug, so I don't think we need a regression test for it. Instead, we need to ensure that the optimistic data from the client matches what is returned from the server to avoid this kind of bug in the future.
Activity
melvin-bot commentedon Mar 19, 2024
Triggered auto assignment to @garrettmknight (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.lanitochka17 commentedon Mar 19, 2024
@garrettmknight 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
garrettmknight commentedon Mar 19, 2024
Confirmed the bug - I think it fits in #wave-collect.
[-]Workspace – “Submitted $amount” system message appears for a moment when Employee submit IOU[/-][+][$500] Workspace – “Submitted $amount” system message appears for a moment when Employee submit IOU[/+]melvin-bot commentedon Mar 19, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01304a705cb67bed22
melvin-bot commentedon Mar 19, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (
External)FitseTLT commentedon Mar 19, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace – “Submitted $amount” system message appears for a moment when Employee submit IOU
What is the root cause of that problem?
The optimistic submited report action contains
messagewith only one fragment ofsubmitted amountApp/src/libs/actions/IOU.ts
Lines 3893 to 3894 in 0d700c3
App/src/libs/ReportUtils.ts
Lines 3175 to 3176 in 0d700c3
What changes do you think we should make in order to solve the problem?
The optimistic submitted report action should have all the message fragments same as what the BE returns
like
Submitted to account can be taken from
policy.ownerAccountIDso We can updatebuildOptimisticSubmittedReportActiontoWe can move this change to
getIOUReportActionMessage(only updatingSUBMITTEDcase)And moreover We can think of more complex logic especially to determine the first and last fragments, especially the last because the way display name and login are displayed depend on their existence.
What alternative solutions did you explore? (Optional)
53 remaining items
hungvu193 commentedon May 2, 2024
This is a minor bug, so I don't think we need a regression test for it. Instead, we need to ensure that the optimistic data from the client matches what is returned from the server to avoid this kind of bug in the future.
melvin-bot commentedon May 8, 2024
@garrettmknight, @pecanoro, @hungvu193, @FitseTLT Whoops! This issue is 2 days overdue. Let's get this updated quick!
pecanoro commentedon May 9, 2024
@garrettmknight All yours!
situchan commentedon Oct 8, 2025
Am I eligible for partial compensation?
I fully reviewed proposals and 🎀 here and I went OOO while waiting for PR to be raised.
mallenexpensify commentedon Oct 8, 2025
Payment Summary
Contributor+: @situchan due $250 via Upwork
@situchan can you please accept the job below? Please reply here and tag me once you have.
https://www.upwork.com/jobs/~021976061167883058467
situchan commentedon Oct 9, 2025
Accepted thanks
garrettmknight commentedon Oct 9, 2025
@mallenexpensify paid out.