-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$250] Room - Members number does not update in real time when user rejoin the room #43293
Comments
Triggered auto assignment to @VictoriaExpensify ( |
@VictoriaExpensify 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 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Member count is not immediately updated when the User re-joins the chat. It is updated after the user clicks on 'Members' button. What is the root cause of that problem?When we open the side-pane (Which contains What changes do you think we should make in order to solve the problem?Update the number of member's by calling the server using the
What alternative solutions did you explore? (Optional)Since, RoomMemberPage is using the same function, create this function in a common file so both classes can use it. Verified that the above solution updates the member count appropriately. Video: screen-recording-2024-06-08-at-35138-pm_BWW7Ctyh.mp4 |
This comment was marked as outdated.
This comment was marked as outdated.
ProposalPlease re-state the problem that we are trying to solve in this issue.Room - Members number does not update in real time when user rejoin the room What is the root cause of that problem?The Therefore, the Unlike when joining a room, when the App/src/pages/ReportDetailsPage.tsx Lines 92 to 100 in f3bb5a5
The Therefore, there will also be one less active member of the room. App/src/pages/ReportDetailsPage.tsx Lines 103 to 107 in f3bb5a5
What changes do you think we should make in order to solve the problem?Let's make the Similar to the We can do this by replicating and modifying the code below to be suited for the App/src/libs/actions/Report.ts Lines 2718 to 2729 in f3bb5a5
|
Keeping this as a low priority and adding it to the #vip_vsb project |
Job added to Upwork: https://www.upwork.com/jobs/~017450de92e982e995 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Members number does not update in real time when user rejoin the room. User must open Members page to update the info What is the root cause of that problem?When the user leaves the room, they will remain a member of the room (in When the user re-joins the room, the What changes do you think we should make in order to solve the problem?When joining room here, we should set the Since We should not optimistically add the new participant because the participant is already there, and we need to retain the role of the participant (ie. If the user was Admin of the room, then leaves the room then rejoins again, they should remain the Admin of the room), adding the participant as new will override the role. We just need to update We also should update What alternative solutions did you explore? (Optional)
Another issue needs to be fixed (raised in the PR: #43741 (comment)): If we invite a new email, the number of participant increase by 2 instead of 1, and stay there for a while until we reload the app Root cause:When we invite new email (which doesn't exist in the personal details), the Solution
|
Reviewing today! |
@allroundexperts any updates on this ? |
Will post an update tonight. |
Thanks for the proposals everyone. @jainilparikh your proposal won't work for the offline case. @Tony-MK The participant seem to exist already. It's just the hidden flag that we need to toggle off. As such, @dominictb's proposal looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@allroundexperts , I believe handling offline case was an edge case for the solution that I had proposed and IMHO, this should have been covered as part of our PR discussion. I had already done the hard work on identifying the root-cause and proposing the right solution for it. Most of @dominictb 's solution is based on the findings and solution (Toggling the CC: @iwiznia / @VictoriaExpensify let me know your thoughts on the same. |
@jainilparikh I don't think that the offline flow is an "edge case". Your solution seems to be different from what the selected proposal mentioned as well. |
PR should be up for review in a few hours. |
This issue has not been updated in over 15 days. @iwiznia, @allroundexperts, @VictoriaExpensify, @dominictb 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! |
This should be ready for payment, no? |
@iwiznia, @allroundexperts, @VictoriaExpensify, @dominictb, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
@VictoriaExpensify This is still pending payment. |
Payment Summary: Thanks for your work on this! |
$250 approved for @allroundexperts |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.80-1
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
Email or phone of affected tester (no customers): gocemate+a178@gmail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Members number should update since there is a new member in the room
Actual Result:
Members number does not update in real time when user rejoin the room. User must open Members page to update the info
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6505057_1717768640574.Recording__3142.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @allroundexpertsThe text was updated successfully, but these errors were encountered: