App icon indicating copy to clipboard operation
App copied to clipboard

Web - Default rooms are showing for removed users

Open kbecciv opened this issue 4 years ago • 17 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Issue was found when executing PR: https://github.com/Expensify/App/pull/8684

Action Performed:

  1. Create a workspace with user 1
  2. Go to the Manage members tab of the workspace, invite user 2
  3. Login to user 2 via incognito window, verify that there is an #announce chat room shown in LHN
  4. Navigate back to user 1 session, remove user 2 from the policy
  5. Navigate back to user 2 session

Expected Result:

Make sure you cannot see any default rooms from the workspace (verify the #announce chat room is no longer shown in the LHN

Actual Result:

Announce default rooms from the workspace is shown in the LHN. It's disappeared only logout > login user.

Workaround:

Unknow

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.56

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers): 1. [email protected] 2. [email protected]

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

https://user-images.githubusercontent.com/93399543/164511967-8bae7a88-6dfd-4652-ae24-f5733a8a8953.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause

Slack conversation:

View all open jobs on GitHub

kbecciv avatar Apr 21 '22 16:04 kbecciv

Triggered auto assignment to @Luke9389 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

melvin-bot[bot] avatar Apr 21 '22 16:04 melvin-bot[bot]

@kbecciv, I've noticed that it's hard for me to parse the issues you create. Would you try to focus on more clear titles? For example, this one could be Default rooms are showing for removed users, or something like that. Know that you can always provide more detail in the description, so don't feel like you need to jam it all into the title.

Also, did you reload the page after step 5 of the Actions Performed?

Luke9389 avatar Apr 21 '22 22:04 Luke9389

@Luke9389 Sorry for confusion, I will keep the titles simple and clear as you mention above. Yes, tester reloaded the page after step 5.

https://user-images.githubusercontent.com/93399543/164572301-5c5ded9c-b78a-44fd-828f-2ddd6a6191f6.mp4

kbecciv avatar Apr 21 '22 23:04 kbecciv

Can you retest this now that this PR is live? https://github.com/Expensify/Web-Expensify/pull/33568

Luke9389 avatar Apr 22 '22 20:04 Luke9389

@kbecciv bump on my last comment

Luke9389 avatar May 23 '22 23:05 Luke9389

@Luke9389 Sorry, I missed your message. Retested with latest build 1.1.78-1, default rooms are disappears after log out and log in again. Video attached

https://user-images.githubusercontent.com/93399543/174861212-33817535-a4a1-445c-9f4d-a1a485483369.mp4

kbecciv avatar Jun 20 '22 19:06 kbecciv

Huh, that looks like a video about 2FA... 😅

Luke9389 avatar Jun 21 '22 16:06 Luke9389

@Luke9389 I'm sorry, updated correct video.

kbecciv avatar Jun 21 '22 17:06 kbecciv

Ok cool. Thanks so much! That video really covers all the questions I had.

@yuwenmemon @TomatoToaster It looks like you guys worked on this issue here: https://github.com/Expensify/Web-Expensify/pull/33568

Do you think I should make this external and have a contributor look at it, or do you want to take a peek and see if you can spot the issue?

Luke9389 avatar Jun 21 '22 17:06 Luke9389

I think this makes sense to keep as internal. I'm not sure myself, why this isn't working, but these lines of code should make it so that the user's client is subscribed to the policy member being removed and then should remove those default rooms. My hunch is that defaultRoomChatIDs isn't being set properly in the Pusher event, so this might require an internal change.

TomatoToaster avatar Jun 21 '22 20:06 TomatoToaster

I'll investigate this further this week.

Luke9389 avatar Jul 25 '22 20:07 Luke9389

Issue not reproducible during KI retests. (First week)

mvtglobally avatar Aug 16 '22 04:08 mvtglobally

looks like this'll end up being fixed.

Luke9389 avatar Aug 29 '22 09:08 Luke9389

Waiting on reproduction

Luke9389 avatar Sep 29 '22 23:09 Luke9389

Issue not reproducible during KI retests. (Second week)

mvtglobally avatar Oct 03 '22 20:10 mvtglobally

noice!

Luke9389 avatar Oct 03 '22 20:10 Luke9389

Issue not reproducible during KI retests. (Third week) Closing

mvtglobally avatar Oct 18 '22 11:10 mvtglobally