App icon indicating copy to clipboard operation
App copied to clipboard

Removing/Adding a member for workspace isn't reflecting the same member changes on rooms under the same policy

Open chiragsalian opened this issue 2 years 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!


Issue reported here by @allroundexperts

Action Performed:

  1. Have a workspace policy. If you don't have one then create one.
  2. Ensure the policy has atleast 3 members. If not then add members.
  3. Click the green plus icon -> New room. Select policy from step 1.
  4. Click on your profile icon -> workspace. Now either remove or add a member.
  5. Go back and select the policy room chat. Click its icon and select members.

Expected Result:

The policy room chat should have the same member list as the workspace members.

Actual Result:

The policy room chat shows the initial members and not the most recent members

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platform:

Where is this issue occurring?

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

Version Number: Reproducible in staging?: Reproducible in production?: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL: Issue reported by: Slack conversation:

View all open jobs on GitHub

cc @yuwenmemon, did you work on this feature and if so are you aware of this bug and if there is an open issue about this or something?

chiragsalian avatar May 23 '22 18:05 chiragsalian

Triggered auto assignment to @JmillsExpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

melvin-bot[bot] avatar May 23 '22 18:05 melvin-bot[bot]

Seems like we would have to update the participants on the associated reports:

https://github.com/Expensify/App/blob/930f18b72829a414ac5e2e19f424871d924eded9/src/pages/ReportDetailsPage.js#L78-L78

I think re: "Optimized API" changes this would mean that we would have something like InviteWorkspaceMember and RemoveWorkspaceMember commands that would return partial report data to merge into Onyx with the correct participants.

So we'll need a backend change for sure.

marcaaron avatar May 23 '22 20:05 marcaaron

Going to split this into two separate issues as we'll need to tackle "add" and "remove" as separate actions.

marcaaron avatar May 23 '22 21:05 marcaaron

Created a couple of sub issues in E/E. They will probably require some engineering team feedback and more discussion. I've left them unassigned for now and put them on HOLD.

marcaaron avatar May 23 '22 22:05 marcaaron

Triggered auto assignment to @JmillsExpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

Whoops, totally missed this one. Thanks @marcaaron for keeping this moving forward. ❤️

JmillsExpensify avatar Jun 07 '22 03:06 JmillsExpensify

This issue has not been updated in over 15 days. @Justicea83 eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

melvin-bot[bot] avatar Jun 16 '22 19:06 melvin-bot[bot]

this is currently on hold awaiting on the pattern B detailed section and approval

Justicea83 avatar Jul 18 '22 10:07 Justicea83

Releasing this back to the pool as i don't really know when I can take another look

Justicea83 avatar Sep 07 '22 17:09 Justicea83

Triggered auto assignment to @puneetlath (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

melvin-bot[bot] avatar Oct 18 '22 18:10 melvin-bot[bot]

@puneetlath Huh... This is 4 days overdue. Who can take care of this?

melvin-bot[bot] avatar Oct 24 '22 07:10 melvin-bot[bot]

@puneetlath Huh... This is 4 days overdue. Who can take care of this?

melvin-bot[bot] avatar Oct 24 '22 07:10 melvin-bot[bot]

@marcaaron does this still need to be on hold. It looks like those two API commands have been refactored based on the linked issues.

puneetlath avatar Oct 25 '22 14:10 puneetlath

I'm not sure tbh. I think a good first step would be to verify if this issue still happens and go from there.

marcaaron avatar Oct 25 '22 18:10 marcaaron

+1 to what marc said.

chiragsalian avatar Oct 25 '22 18:10 chiragsalian

Ah sorry. I should have clarified that I confirmed this is still happening. Basically just trying to see whether I can go ahead and just treat this as a bug or if it is held on something. Based on what I can see here, it seems like no need to hold and we can just treat it like any other bug.

puneetlath avatar Oct 25 '22 19:10 puneetlath

Ah then yes no need to hold now on anything and we can treat it like any other bug.

chiragsalian avatar Oct 25 '22 19:10 chiragsalian

@puneetlath Huh... This is 4 days overdue. Who can take care of this?

melvin-bot[bot] avatar Oct 31 '22 07:10 melvin-bot[bot]

@puneetlath Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] avatar Oct 31 '22 08:10 melvin-bot[bot]

@puneetlath Still overdue 6 days?! Let's take care of this!

melvin-bot[bot] avatar Nov 02 '22 08:11 melvin-bot[bot]

Started looking into it.

puneetlath avatar Nov 02 '22 22:11 puneetlath

@puneetlath Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] avatar Nov 08 '22 08:11 melvin-bot[bot]

Hey @puneetlath can you provide an update here? I think this is internal and reproducible -- should we throw Demolition on it to get it moving?

arielgreen avatar Nov 08 '22 23:11 arielgreen

Yep, this is an internal issue I'm working on. The problem is that when we add someone to a policy, they also get shared on certain reports (i.e. the #announce channel). The problem is that when they are shared on the report, we don't push an update to the clients with the updated participants list for that report. So I'm going to update the API to push that to the clients. Should have a PR up by EOW.

puneetlath avatar Nov 09 '22 21:11 puneetlath

Is there a reason this is still open if your PR is on prod @puneetlath ?

kevinksullivan avatar Nov 16 '22 23:11 kevinksullivan

Whoops, I assumed this would auto-close. It's done!

puneetlath avatar Nov 16 '22 23:11 puneetlath