-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-08-09] [$250] Workspace switcher - WS switcher and LHN are not reset to Expensify after leaving workspace #43981
Comments
Triggered auto assignment to @johncschuster ( |
We think this issue might be related to the #vip-vsb |
ProposalPlease 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? |
ProposalPlease 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. 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?
What alternative solutions did you explore? (Optional)App/src/libs/actions/Policy/Policy.ts Line 716 in d938880
here, we also should add
|
Job added to Upwork: https://www.upwork.com/jobs/~018dbe15d720ffa01b |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
This is not the root cause. I don't see why such logic should be a part of the |
@truph01 Same note as above ^ Adding the check to the |
@s77rt How about we make a callback in onyx policy collection, then check if currently accessed policy is deleted or user is not member of the currently accessed policy 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? Proposalupdated |
@tsa321 I'd prefer not to relay on Onyx callbacks. Can we go with the same approach as reports? We have a |
@truph01 I noticed that If I select a workspace that I created and then delete it, the bug does not occur. Can you investigate that and why the bug only occurs on invited workspaces? That should help us find a better solution |
|
@truph01 Ah right. In your proposal we are not calling |
@s77rt Yes, we do not need to call App/src/libs/Navigation/NavigationRoot.tsx Lines 127 to 141 in ab2426c
|
@truph01 Makes sense! Overall the proposal looks good to me 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @cristipaval, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Same ^ |
📣 @truph01 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
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:
|
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:
|
|
Acknowledged! I'll issue payment after the regression threshold is cleared. |
$250 approved for @s77rt |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.85-4
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Precondition:
Expected Result:
Actual Result:
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
20240619_131605.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @johncschusterThe text was updated successfully, but these errors were encountered: