-
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
[$250] Room - Deleted workspace appears in workspace list during room creation flow #53315
Comments
Triggered auto assignment to @zanyrenney ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Deleted workspace appears in workspace list during room creation flow What is the root cause of that problem?When we try to get active policies we call App/src/pages/workspace/WorkspaceNewRoomPage.tsx Lines 63 to 65 in 2e88927
getActivePolicies checks if !!policy.name && !!policy.id` exists, and returns policies that have !!policy.name && !!policy.idLines 74 to 76 in 2e88927
A policy will have What changes do you think we should make in order to solve the problem?We should check if
What alternative solutions did you explore? (Optional)we can use
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Room - Workspace from the other user appears in workspace list during room creation flow What is the root cause of that problem?When a user A has sent an invoice to another user and the other user B paid the invoice but User A deletes this workspace the invoice will be transferred to another workspace of user B where user A is not a member and this workspace where user A is not a member is returned in the policies list from the BE and on room creation flow we are displaying it as we only check for pending delete, policy id and name existence Lines 74 to 78 in 64eaf2f
So when we create a room with it the BE will return an error as the current user is not a member of the workspace What changes do you think we should make in order to solve the problem?Here Lines 74 to 78 in 64eaf2f
we need to check that the current user is a member of the workspace (by checking the existence of role for the current user) same as we are doing here
we can then pass the Note on the above proposal:
using shouldShowPolicy instead of getActivePolicies will allow pending deletion workspaces when offline to be included in the workspaces list as we normally use shouldShowPolicy to display in workspace list page where we display pending deletion workspaces when offline with strikethrough applied. 👍 What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021863656321139042808 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
hey there @rayane-djouah please could you review the proposals above if either are suitable? Thank you! |
A kind reminder. My proposal already suggests to check for Lines 197 to 199 in 473822d
|
You have identified neither the correct problem nor the correct RCA therefore you haven't backed your solution linking to the correct RCA of the problem. You were just randomly giving several policy props as an option without any logical explanation so it is not acceptable and the reviewer will give the proper review so let's just wait for that. |
No more review seems to needed since you have already done the review on your proposal😆.
|
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: 9.0.68-2
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
In Step 10, the deleted workspace should not appear in the workspace list in room creation flow.
Actual Result:
In Step 10, the deleted workspace appears in the workspace list in room creation flow.
When room is created from the deleted workspace, error shows up.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6679809_1732872707026.20241129_171506.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rayane-djouahThe text was updated successfully, but these errors were encountered: