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
Expense - Change Workspace option available for submitted expense #59890
Version Number: v9.1.25-0 Reproducible in staging?: Yes Reproducible in production?: No If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: No, reproducible on hybrid only If this was caught during regression testing, add the test name, ID and link from TestRail:https://expensify.testrail.io/index.php?/tests/view/5901011 Issue reported by: Applause Internal Team Device used: Windows 10 / Chrome App Component: Workspace Settings
Action Performed:
Precondition: Employee has 2 workspaces
Open the First WS with 2 expenses in submitted and submit status
Click on the More button on the expense in the Submitted status
Click on the Change Workspace
Change the submitted expense to the second workspace
Click on the More button on the expense in the Submit status
Click on the Change Workspace
Select the second workspace
Expected Result:
The change workspace option only displays for an expense in the Submit status
Actual Result:
The change workspace option display for a submitted expense and after click on it display an error message
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
Change Workspace option available for submitted expense
What is the root cause of that problem?
RCA for this issue is, whether change workspace option should be visible or not is determined from ReportSecondaryActionUtils.isChangeWorkspaceAction function.
In which change workspace is made visible even when report is processing ie. submitted/approved but not paid yet.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.26-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
changed the title [-][Due for payment 2025-04-18] Expense - Change Workspace option available for submitted expense[/-][+]Expense - Change Workspace option available for submitted expense[/+]on Apr 25, 2025
I'm gonna reopen this since it's still happening. I'm seeing a 401 Not allowed to set this magic reportNameValuePair error in the API. I'll take a look at it.
Activity
melvin-bot commentedon Apr 9, 2025
Triggered auto assignment to @grgia (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Apr 9, 2025
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Apr 9, 2025
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
grgia commentedon Apr 9, 2025
Potential RCA: #58084
jnowakow commentedon Apr 9, 2025
According to design doc it's correct behaviour. I've asked it here https://docs.google.com/document/d/1JZLr_5gX348cMZXNr6HUwi4QscOcDg3IY368FMAu3H4/edit?disco=AAABgi2j1Cc
cc @luacmartins
ChavdaSachin commentedon Apr 9, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Change Workspace option available for submitted expense
What is the root cause of that problem?
RCA for this issue is, whether
change workspaceoption should be visible or not is determined from ReportSecondaryActionUtils.isChangeWorkspaceAction function.In which
change workspaceis made visible even when report is processing ie. submitted/approved but not paid yet.App/src/libs/ReportSecondaryActionUtils.ts
Lines 284 to 288 in 9298e72
What changes do you think we should make in order to solve the problem?
Remove
isProcessingReportandisReportApprovedchecks here and only showchange workspaceoption for open or closed reports.App/src/libs/ReportSecondaryActionUtils.ts
Lines 283 to 301 in 9298e72
Also remove
isReportApprovedcheck here.App/src/libs/ReportSecondaryActionUtils.ts
Line 313 in 9298e72
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
NA
16 remaining items
melvin-bot commentedon Apr 11, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Apr 11, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.26-10 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-04-18. 🎊
[-][Due for payment 2025-04-18] Expense - Change Workspace option available for submitted expense[/-][+]Expense - Change Workspace option available for submitted expense[/+]luacmartins commentedon Apr 25, 2025
I'm gonna reopen this since it's still happening. I'm seeing a
401 Not allowed to set this magic reportNameValuePairerror in the API. I'll take a look at it.luacmartins commentedon May 1, 2025
I'm unable to reproduce this. Closing.