-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Expense - Change Workspace option available for submitted expense #59890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Triggered auto assignment to @grgia ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
Potential RCA: #58084 |
According to design doc it's correct behaviour. I've asked it here https://docs.google.com/document/d/1JZLr_5gX348cMZXNr6HUwi4QscOcDg3IY368FMAu3H4/edit?disco=AAABgi2j1Cc |
ProposalPlease 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 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 const isOpenReport = isOpenReportUtils(report);
if (isReportSubmitter && isOpenReport) {
return true;
}
const isReportApprover = isApproverUtils(policy, getCurrentUserAccountID());
const isReportPayer = isPayerUtils(getSession(), report, false, policy);
if (isReportPayer && isClosedReport) {
return true;
} App/src/libs/ReportSecondaryActionUtils.ts Lines 283 to 301 in 9298e72
Also remove 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 |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
FYI we reverted the original offending PR |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
This is expected. Users can change the workspace on a report up until the report has one level of approval on it. |
|
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. 🎊 |
I'm gonna reopen this since it's still happening. I'm seeing a |
I'm unable to reproduce this. Closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
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
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
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6796887_1744185652889.Change_WS.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: