-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Workspace - Admin-users are displayed in the #Admins room members list after being deleted #56525
Comments
Triggered auto assignment to @bfitzexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Removed admin is still displayed on the admins room members. What is the root cause of that problem?When we remove the member from workspace, the API still return the removed user as the member of the admins report. This is a BE issue. However, on the FE, we also don't optimistically remove the user from the admins room. We currently only optimistically remove the user from the announce rooms. App/src/libs/actions/Policy/Member.ts Line 329 in 33a03bf
What changes do you think we should make in order to solve the problem?This should be fixed on the BE. For the optimistic part, we can create a new function called App/src/libs/actions/Policy/Member.ts Line 245 in 33a03bf
To use
This will optimistically mark the member as removed. We will need to add this when removing members ( For role update, we will only remove if we update the role to user/member.
I notice that we also don't optimistically add the admin to the admins room. If we would like to do it too, we can again follow a similar logic to App/src/libs/actions/Policy/Member.ts Line 678 in 33a03bf
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can test |
@bfitzexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~021889445311434361818 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
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.0.95-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Issue reported by: Applause Internal Team
Device used: Mac 15.2/Safari
App Component: Workspace Settings
Action Performed:
Expected Result:
Admin-users are not displayed in the #Admins room members list after being deleted from the workspace
Actual Result:
Admin-users are displayed in the #Admins room members list after being deleted from the workspace
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6735801_1738893869509.Recording__580.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @s77rtThe text was updated successfully, but these errors were encountered: