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-11-18] [$250] iOS - Track - Unavailable workspace is shown instead of the expense title #71019
Version Number: v9.2.16-3 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail:https://test-management.browserstack.com/projects/2219752/test-runs/TR-859/folder/13176877/41237356/907089505 Email or phone of affected tester (no customers): n/a Issue reported by: Applause Internal Team Device used: iPhone 13 iOS 18.6 Hybrid App Component: User Settings
Action Performed:
Precondition:
Log in with Expensifail account.
Account has no workspace.
Account has self DM.
Open the app
2.With a user that has no workspaces - You can delete all WS to execute this TC
3.Submit a track expense in the self DM
4.On the actionable whisper options of a track expense Click on Share it with your accountant
5.Select an accountant
6.Verify the "To" field is filled with a "new" workspace
7.Enter a merchant, Category and create the expense
Expected Result:
Correct expense title is displayed after sharing an expense with an accountant
Actual Result:
Unavailable workspace is shown instead of the expense title. The correct title appears after opening expense details.
However, the report is undefined because the report (new optimistic policy expense chat) is still in reportDraft collection but we tried to get it from the report collection.
What changes do you think we should make in order to solve the problem?
First, update the getReportOrDraftReportt to accept a reportDrafts collection. Then, we pass it down from
IOURequestStepConfirmation -> getReportOption -> getReportOrDraftReport
changed the title [-]iOS - Track - Unavailable workspace is shown instead of the expense title[/-][+][$250] iOS - Track - Unavailable workspace is shown instead of the expense title[/+]on Sep 23, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.48-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@hungvu193 / @bernhardoj@kadiealexander 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]
[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: Identifying...
[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
Precondition:
Account has no workspace
Account has selfDM
Test:
Open the app
With a user that has no workspaces - You can delete all WS to execute this TC
Submit a track expense in the self DM
On the actionable whisper options of a track expense Click on Share it with your accountant
Select an accountant
Verify the "To" field is filled with a "new" workspace
Enter a merchant, Category and create the expense
Verify that the correct expense title is displayed after sharing an expense with an accountant
Activity
melvin-bot commentedon Sep 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.jliexpensify commentedon Sep 22, 2025
Android <> iOS swapsies
bernhardoj commentedon Sep 23, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Unavailable workspace is shown on the report preview and also I see it in IOU confirm page too. (the OP issue happens on all platform)
What is the root cause of that problem?
For the IOU confirm page, we get the participant (WS) report with
getReportOrDraftReport.App/src/libs/OptionsListUtils/index.ts
Line 868 in 8aa2d21
We get the report draft data from the Onyx.connect.
App/src/libs/ReportUtils.ts
Lines 1179 to 1183 in 8aa2d21
App/src/libs/ReportUtils.ts
Lines 960 to 965 in 8aa2d21
The draft data is initially empty and it won't rerender since we don't subscribe to it.
App/src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Line 243 in 8aa2d21
For the report preview issue, when we submit it to accountant, we optimistically create a new report preview and we get the policy name.
App/src/libs/ReportUtils.ts
Line 6262 in 8aa2d21
App/src/libs/ReportUtils.ts
Lines 6245 to 6246 in 8aa2d21
However, the
reportis undefined because the report (new optimistic policy expense chat) is still inreportDraftcollection but we tried to get it from thereportcollection.What changes do you think we should make in order to solve the problem?
First, update the
getReportOrDraftReporttto accept areportDraftscollection. Then, we pass it down fromIOURequestStepConfirmation -> getReportOption -> getReportOrDraftReport
App/src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Lines 243 to 246 in 8aa2d21
(make sure to add
reportDraftsto theuseMemodeps too.Next, use
getRpeortOrDraftReportinbuildOptimisticExpenseReport.App/src/libs/ReportUtils.ts
Lines 6245 to 6246 in 8aa2d21
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can test
requestMoneywith a chat report that is in thereportDraftscollection and make sure the report name has the correct value.[-]iOS - Track - Unavailable workspace is shown instead of the expense title[/-][+][$250] iOS - Track - Unavailable workspace is shown instead of the expense title[/+]melvin-bot commentedon Sep 23, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021970363780967230980
melvin-bot commentedon Sep 23, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (
External)55 remaining items
melvin-bot commentedon Nov 11, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Nov 11, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.48-1 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-11-18. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Nov 11, 2025
@hungvu193 / @bernhardoj @kadiealexander 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]
hungvu193 commentedon Nov 14, 2025
BugZero Checklist:
[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: Identifying...
[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
Precondition:
Test:
Do we agree 👍 or 👎
Testrail issue: https://github.com/Expensify/Expensify/issues/569145
kadiealexander commentedon Nov 18, 2025
Payment Summary
bernhardoj commentedon Nov 18, 2025
Requested in ND.
quinthar commentedon Nov 19, 2025
Approved $250 to @getusha
garrettmknight commentedon Nov 21, 2025
$250 approved for @hungvu193
garrettmknight commentedon Nov 21, 2025
$250 approved for @bernhardoj