-
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
[HOLD #22699] Workspace custom room members list is not updated dynamically #20761
Comments
Triggered auto assignment to @mallenexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.App should dynamically update room member list if new member is added What is the root cause of that problem?The problem here is that after inviting new members to workspaces, the app has not updated optimisticData member for the rooms of workspaces What changes do you think we should make in order to solve the problem?We will find the rooms of workspaces that have chatTypes of “#policyRoom" and “#policyAnnounce" and will update First we need to create get policyRoom and policyAnnounce function in here:
Then we need to add a function to build onyxOptimisticData for the room:
Update
Result: Screen.Recording.2023-06-13.at.01.56.45.movWhat alternative solutions did you explore? (Optional)N/A |
Job added to Upwork: https://www.upwork.com/jobs/~01502d61faff3465e2 |
Current assignee @mallenexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
Was able to reproduce. @aimane-chnaif, please review the proposal above. Also let me know if you don't think this should be External. |
ProposalPlease re-state the problem that we are trying to solve in this issue.App does not dynamically update room member list and needs reload to display updated list What is the root cause of that problem?The problem is here App/src/pages/ReportParticipantsPage.js Line 57 in bd0e843
participantAccountIDs from the report . That list of participants is the same as the workspace members. So when the workspace members changed, the list of participants will become outdated and will only be updated a few seconds later.
What changes do you think we should make in order to solve the problem?Since the participants of the chat room is always the same as the workspace members, we shouldn't consider them as 2 data sources. The same problem of outdated So we should do the same as what we've done there for the
This will make sure the room participants and workspace members are always synced since there's only 1 source of truth. What alternative solutions did you explore? (Optional)We can also optimistically update the But there're some reasons I don't prefer this approach:
|
@mallenexpensify, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@aimane-chnaif , please review the above proposals. Thx |
@mallenexpensify @aimane-chnaif curious if the fix for this issue would also resolve #21059 that was just reported? |
Unsure @abekkala but, since we have two proposals here already, it might be good to put that one on hold. |
@dukenv0307 can you please share snippet of |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@aimane-chnaif I just checked again on the latest main and see that now the member list in the public workspace room is not updated even though we reloaded the app. The member belongs to this room only when the member has access to this public room. I don't know if this is a new feature or not. @mallenexpensify Could you help to confirm what is expected here Screen-Recording-2023-06-23-at-18.50.15.mp4
|
I'd like to confirm the expected behavior based on room visibility:
@mallenexpensify please correct logic if anything wrong. |
Good question @aimane-chnaif , did you copy/paste the above from somewhere? I'm asking internally about expected behavior, it seems like something we should have documented somewhere. |
No copy/paste, just my thought |
I'm checking internally here I think room functionality is still in beta, or nor launched. I tried to test creating rooms on workspaces with multiple accounts and nothing seemed to work, the rooms don't show other people in the workspace. I think we might want to put this on hold or I/we need to dig more |
@mallenexpensify, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@mallenexpensify Any update here? I can't check the internal discussion |
@mallenexpensify @aimane-chnaif this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
@mallenexpensify, @aimane-chnaif Eep! 4 days overdue now. Issues have feelings too... |
Sorry for the delay @dukenv0307 , it's been 👻 in the Slack post and also in StackOverflow. I followed up again and shared with the room to get more 👀 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I got the answer we needed
But... we're not planning to treat 'dynamically updating' issues as bugs, per this discussion, Checking on next steps here |
I don't think this is "dynamically updating" issue as action performed by current user in current device. |
This answer is not clear enough to proceed this GH. |
Agree with this point
|
Current assignee @mallenexpensify is eligible for the NewFeature assigner, not assigning anyone new. |
Triggered auto assignment to Design team member for new feature review - @shawnborton ( |
Removing you @shawnborton since this is on hold. |
Closing based on this
|
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should dynamically update room member list if new member is added
Actual Result:
App does not dynamically update room member list and needs reload to display updated list
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.27.4
Reproducible in staging?: yes
Reproducible in production?: yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
does.not.update.room.member.list.dynamically.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686211623219509
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: