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-08-09] [$250] Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace #43981
Please re-state the problem that we are trying to solve in this issue.
Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace
What is the root cause of that problem?
We don't have check on currently accessed policy, whether the user is still member of the policy or the policy is not deleted, Inside callback of Onyx connect to policy collection.
What changes do you think we should make in order to solve the problem?
We can make a callback in onyx policy collection, then check if currently accessed policy is deleted or the user is not member anymore, then updateLastAccessedWorkspace(undefined);
Is this expected result? Or should we show modal if the remove member or delete workspace action are from other user?
the confirm modal could be. You are no longer member of ..... Then ask Do you want to change the workspace Expensify? ` if user is in report screen.
changed the title [-]Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace[/-][+][$250] Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace[/+]on Jun 21, 2024
changed the title [-][$250] Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace[/-][+][HOLD for payment 2024-08-09] [$250] Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace[/+]on Aug 2, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.15-9 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@s77rt] The PR that introduced the bug has been identified. Link to the PR:
[@s77rt] 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:
[@s77rt] 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:
[@s77rt] Determine if we should create a regression test for this bug.
[@s77rt] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@johncschuster] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
melvin-bot commentedon Jun 19, 2024
Triggered auto assignment to @johncschuster (
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.izarutskaya commentedon Jun 19, 2024
We think this issue might be related to the #vip-vsb
tsa321 commentedon Jun 19, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace
What is the root cause of that problem?
We don't have check on currently accessed policy, whether the user is still member of the policy or the policy is not deleted, Inside callback of Onyx connect to policy collection.
What changes do you think we should make in order to solve the problem?
We can make a callback in onyx policy collection, then check if currently accessed policy is deleted or the user is not member anymore, then updateLastAccessedWorkspace(undefined);
Is this expected result? Or should we show modal if the remove member or delete workspace action are from other user?
the confirm modal could be. You are no longer member of ..... Then ask Do you want to change the workspace Expensify? ` if user is in report screen.
truph01 commentedon Jun 19, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace switcher displays Expensify, but when opening the workspace list, Expensify is not selected.
LHN still shows the filtered chats.
What is the root cause of that problem?
In deleteWorkspace function
App/src/libs/actions/Policy/Policy.ts
Lines 335 to 340 in d938880
We have logic to update the lastAccessedWorkspacePolicyID, but we missed it in the leaveWorkspace function
What changes do you think we should make in order to solve the problem?
BaseSidebarScreencomponent:undefined, it will switch to the default policy.What alternative solutions did you explore? (Optional)
App/src/libs/actions/Policy/Policy.ts
Line 716 in d938880
here, we also should add
[-]Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace[/-][+][$250] Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace[/+]melvin-bot commentedon Jun 21, 2024
Job added to Upwork: https://www.upwork.com/jobs/~018dbe15d720ffa01b
melvin-bot commentedon Jun 21, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (
External)37 remaining items
[-][$250] Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace[/-][+][HOLD for payment 2024-08-09] [$250] Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace[/+]melvin-bot commentedon Aug 2, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 2, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.15-9 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 2024-08-09. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Aug 2, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
s77rt commentedon Aug 5, 2024
johncschuster commentedon Aug 5, 2024
Acknowledged! I'll issue payment after the regression threshold is cleared.
johncschuster commentedon Aug 7, 2024
Payment Summary
Contributor: @truph01 paid $250 via Upwork (paid on 2024-08-09)
Contributor+: @s77rt owed $250 via NewDot
johncschuster commentedon Aug 9, 2024
Payment has been issued via Upwork to @truph01. Go ahead and request payment on ND, @s77rt! Thank you both for your contributions! 🎉
JmillsExpensify commentedon Aug 9, 2024
$250 approved for @s77rt