App icon indicating copy to clipboard operation
App copied to clipboard

[Hold E/E #404210] Workspace - "Hidden" members appear in the list when a member leaves

Open lanitochka17 opened this issue 1 year ago • 18 comments

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: 1.4.75-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

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

Action Performed:

  1. Admin: Log in as a new expensifail user
  2. Member: Log in as a new Gmail user in a different device
  3. Admin: Create a workspace
  4. Admin: Invite the member to the workspace
  5. Admin: Navigate to the Workspace member list page
  6. Admin: Open the member details page
  7. Member: Leave the workspace
  8. Admin: Click on "Go back to home page"

Expected Result:

Only real members of the workspace should be shown

Actual Result:

"Hidden" members appear in the list when a workspace member leaves

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • [ ] Android: Native
  • [ ] Android: mWeb Chrome
  • [ ] iOS: Native
  • [ ] iOS: mWeb Safari
  • [x] MacOS: Chrome / Safari
  • [ ] MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/6638fe81-83c0-4f02-996a-b9fac2ab0b09

View all open jobs on GitHub

lanitochka17 avatar May 23 '24 19:05 lanitochka17

Triggered auto assignment to @trjExpensify (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.

melvin-bot[bot] avatar May 23 '24 19:05 melvin-bot[bot]

@trjExpensify 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 avatar May 23 '24 19:05 lanitochka17

We think that this bug might be related to #wave-collect - Release 1

lanitochka17 avatar May 23 '24 19:05 lanitochka17

Commented on the issue the PR is attached to. CC: @alitoshmatov @tienifr @madmax330

trjExpensify avatar May 24 '24 00:05 trjExpensify

@trjExpensify Hi, I took a look, this is not a regresison from that PR because reverting it does not solve the issue.

This is a BE problem. I notice that when the employee left the workspace, the Pusher sent to admin a very strange policy.employeeList value:

Screenshot 2024-05-24 at 19 38 53

employeeList is supposed to be a object mapping from an user's login to his details, but in this case, it's [email protected] which is a part of the employee's login ([email protected]). I hope this helps with the debugging in BE.

tienifr avatar May 24 '24 12:05 tienifr

Asking in #vip-vsb about the intent with this Leave functionality.

trjExpensify avatar May 24 '24 18:05 trjExpensify

@trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] avatar May 27 '24 18:05 melvin-bot[bot]

Didn't link the thread where we're discussing.

trjExpensify avatar May 28 '24 15:05 trjExpensify

Alright, so looks like this was missed. Members should be able to leave a workspace unless they're under domain control on both NewDot and OldDot.

This issue provides a bit of history on why that wasn't the case with a helpful comment from @iwiznia. That said, a lot has changed since then and Auth is aware of the employeeList now. 👍

Sending Internal.

trjExpensify avatar May 28 '24 16:05 trjExpensify

@trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] avatar May 31 '24 18:05 melvin-bot[bot]

Waiting to be picked up in hot picks.

trjExpensify avatar Jun 03 '24 20:06 trjExpensify

@trjExpensify this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

melvin-bot[bot] avatar Jun 06 '24 18:06 melvin-bot[bot]

No change.

trjExpensify avatar Jun 13 '24 09:06 trjExpensify

@Beamanator with the approvals work and behaviour around leaving a workspace, will this be cleaned up? I think it's somewhat linked to this weird dynamic of allowing someone to "leave" workspace on NewDot but not properly handled on the backend, as you can't do that on OldDot.

trjExpensify avatar Jun 24 '24 09:06 trjExpensify

I thinkkkkk you're right and yes it "should get fixed" with those changes, but I would recommend we keep this open (maybe drop to weekly / monthly) to make sure this doesn't accidentally slip by, unfixed

Beamanator avatar Jun 24 '24 10:06 Beamanator

Yep, makes sense. Do you have a particular issue I can point to for the hold?

trjExpensify avatar Jun 24 '24 10:06 trjExpensify

possibly probably https://github.com/Expensify/Expensify/issues/404210?

Beamanator avatar Jun 24 '24 10:06 Beamanator

Works for me!

trjExpensify avatar Jul 03 '24 18:07 trjExpensify

Okay, the issue linked has merged. Adding retest weekly label for QA to re-test this to confirm it has been fixed.

trjExpensify avatar Jul 15 '24 19:07 trjExpensify

Awaiting a retest.

trjExpensify avatar Jul 24 '24 17:07 trjExpensify

Still awaiting a retest

trjExpensify avatar Aug 02 '24 14:08 trjExpensify

Issue is reproducible during KI retests. 1722864277960!Screenshot_2024-08-05_161845

mvtglobally avatar Aug 09 '24 04:08 mvtglobally

Okay, so that wasn't fixed then @Beamanator. Let's make sure it's taken care of in here then I guess?

trjExpensify avatar Aug 13 '24 00:08 trjExpensify

Put this on hold for #43508

trjExpensify avatar Aug 23 '24 09:08 trjExpensify

Still held, Melv.

trjExpensify avatar Sep 02 '24 19:09 trjExpensify

No change.

trjExpensify avatar Sep 11 '24 20:09 trjExpensify

We're still held.

trjExpensify avatar Sep 23 '24 15:09 trjExpensify

Still holding.

trjExpensify avatar Oct 04 '24 17:10 trjExpensify

Still held.

trjExpensify avatar Oct 14 '24 23:10 trjExpensify

No change, still held.

trjExpensify avatar Oct 23 '24 19:10 trjExpensify