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-07-22] [HOLD for payment 2024-07-17] [$250] Workspace chat - Unable to remove member from workspace chat #42928
Version Number: 1.4.78-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
Go to staging.new.expensify.com
Go to Account Settings > Workspace > click on a workspace > Invite Member > Invite a test account as a member
Go to workspace chat
Click on the chat header
Go to Members
Remove the new users - verify you see the "removed" notification in the chat
Notice the list of members is greater than the number of members (as if the removed member wasn't removed)
Expected Result:
User should be able to remove a member from the workspace
The member count should match the number of members
Actual Result:
When refreshing the browser the user isn't removed from the Members list
The member count isn't accurate
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@Christinadobrzyn FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
Please re-state the problem that we are trying to solve in this issue.
Unable to remove qa.guide@team.expensify.com from members list in a workspace. The same is the case with removing myself from my workspace. I see this behaviour for any user removal.
What is the root cause of that problem?
Behaviour seen in main branch HEAD.
OpenReport API returns list of members.
Though the RemoveFromRoom API returns 200 response, refresh of page returns back the removed user in the list.
This needs to be fixed in the backend.
However, proposing frontend fixes below.
What changes do you think we should make in order to solve the problem?
Similar the first user in the screenshot below (with a disabled checkbox), owner of the account and qa.guide@team.expensify.com users can be marked disabled, if they are not to be removable.
This is a call the product has to take. Accordingly frontend changes can be implemented.
What alternative solutions did you explore? (Optional)
[@jayeshmangwani] 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: N/A
[@jayeshmangwani] Determine if we should create a regression test for this bug. Yes
[@jayeshmangwani] 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.
Regression Test Proposal
Add a new member to a workspace
Go to the workspace chat created for that member
Press report details -> Members
Verify you cannot remove that member from the workspace chat
Activity
melvin-bot commentedon May 31, 2024
Triggered auto assignment to @Christinadobrzyn (
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.lanitochka17 commentedon May 31, 2024
@Christinadobrzyn FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
lanitochka17 commentedon May 31, 2024
We think that this bug might be related to #vip-vsp
bernhardoj commentedon Jun 1, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Unable to remove qa.guide@team.expensify.com from workspace chat members.
What is the root cause of that problem?
The BE gives us a successful response when removing it, but shows again after refresh.
What changes do you think we should make in order to solve the problem?
I think we should either disable it or not show the qa.guide@team.expensify.com at all like on the workspace members page,
App/src/pages/workspace/WorkspaceMembersPage.tsx
Lines 325 to 332 in 0cb2dc0
but with an additional check of the owner of the report.
If we want to disable it, we can use the condition and apply it here
App/src/pages/RoomMembersPage.tsx
Line 214 in 0cb2dc0
If we don't want to show it, we need to use the condition in ReportUtils.getVisibleChatMemberAccountIDs.
so it will affect the member count too.
kpadmanabhan commentedon Jun 3, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Unable to remove qa.guide@team.expensify.com from members list in a workspace. The same is the case with removing myself from my workspace. I see this behaviour for any user removal.
What is the root cause of that problem?
Behaviour seen in
mainbranchHEAD.OpenReportAPI returns list of members.Though the
RemoveFromRoomAPI returns 200 response, refresh of page returns back the removed user in the list.This needs to be fixed in the backend.
However, proposing frontend fixes below.
What changes do you think we should make in order to solve the problem?
Similar the first user in the screenshot below (with a disabled checkbox), owner of the account and qa.guide@team.expensify.com users can be marked disabled, if they are not to be removable.

This is a call the product has to take. Accordingly frontend changes can be implemented.
What alternative solutions did you explore? (Optional)
melvin-bot commentedon Jun 3, 2024
@Christinadobrzyn Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Christinadobrzyn commentedon Jun 4, 2024
Hum, what I'm able to reproduce is slightly different - the member doesn't always appear again in the chat but the member count is off. Asking QA to confirm what they see. https://expensify.slack.com/archives/C9YU7BX5M/p1717483892088549
MelvinBot commentedon Jun 4, 2024
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989
kavimuru commentedon Jun 4, 2024
Tester is seeing the same result as in the OP.
bandicam.2024-06-05.03-52-21-698.mp4
101 remaining items
Christinadobrzyn commentedon Jul 17, 2024
jayeshmangwani commentedon Jul 17, 2024
Regression Test Proposal
Do we agree 👍 or 👎
strepanier03 commentedon Jul 17, 2024
@Christinadobrzyn - I didn't realize we were both assigned to this until I'd already done the the reg test so that parts is finished 😂.
strepanier03 commentedon Jul 19, 2024
It doesn't look like @bernhardoj is due payment so I think we can just post the payment summary for this.
strepanier03 commentedon Jul 19, 2024
Payment Summary
@JmillsExpensify - Two requests incoming via New Expensify.
melvin-bot commentedon Jul 22, 2024
Payment Summary
Upwork Job
BugZero Checklist (@JmillsExpensify)
- [ ] I have paid out the Upwork contracts or cancelled the ones that are incorrectmelvin-bot commentedon Jul 22, 2024
@JmillsExpensify, @strepanier03, @jayeshmangwani, @techievivek, @Christinadobrzyn, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Christinadobrzyn commentedon Jul 22, 2024
I think we can close this since payment will be through New Expensify-
NewDot Payment summary - #42928 (comment)
Regression test - https://github.com/Expensify/Expensify/issues/413575
jayeshmangwani commentedon Jul 25, 2024
Requested $250
JmillsExpensify commentedon Jul 25, 2024
$250 approved for @jayeshmangwani
JmillsExpensify commentedon Aug 5, 2024
$250 approved for @tienifr