You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CRITICAL: [$500] Inviting a member to a user created room does not add them until page is refreshed #32712
Invite a member (must be a new account and not someone who you have a personal detail for yet)
See that the member is not included in the list
Refresh the page
See that the member is included in the list
Why is this important?
Ideally the member would be displayed immediately.
Solution
@jasperhuangg I think maybe we need to add an optimistic personal detail for the user being added? Or something is wrong with the accountID logic in the front end. When we add a new member to a room we are using an optimistic accountID generated in the options. But we do not add optimistic personal details for them here. So this logic here is hit.
changed the title [-]HIGH: Inviting a member to a user created room does not add them until page is refreshed[/-][+][$500] HIGH: Inviting a member to a user created room does not add them until page is refreshed[/+]on Dec 8, 2023
@dukenv0307 Thanks for your proposal. Your RCA is correct and your solution, overall is correct. I only suggest that we can do the same as we did when we invite a member to a workspace here
changed the title [-][HOLD for Payment: 2023-12-21] HIGH: [$500] Inviting a member to a user created room does not add them until page is refreshed[/-][+][HOLD for Payment: 2023-12-21] CRITICAL: [$500] Inviting a member to a user created room does not add them until page is refreshed[/+]on Dec 26, 2023
changed the title [-][HOLD for Payment: 2023-12-21] CRITICAL: [$500] Inviting a member to a user created room does not add them until page is refreshed[/-][+]CRITICAL: [$500] Inviting a member to a user created room does not add them until page is refreshed[/+]on Jan 4, 2024
The BZ member will need to manually hire applausebot for the Contributor role. Please store your Upwork details and apply to our Upwork job so this process is automatic in the future!
Activity
[-]HIGH: Inviting a member to a user created room does not add them until page is refreshed[/-][+][$500] HIGH: Inviting a member to a user created room does not add them until page is refreshed[/+]melvin-bot commentedon Dec 8, 2023
Triggered auto assignment to @jliexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 8, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01b17b3e302b4beccb
melvin-bot commentedon Dec 8, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Dec 8, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh (
External)dukenv0307 commentedon Dec 8, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Inviting a member to a user created room does not add them until page is refreshed
What is the root cause of that problem?
We are not adding personal details for new user in optimistic data when we invite them to the room
App/src/libs/actions/Report.js
Line 2124 in c96718a
What changes do you think we should make in order to solve the problem?
We should add optimistic personal details for new user in optimistic data if the user isn't present in personal details list.
App/src/libs/actions/Report.js
Line 2124 in c96718a
We can do it in the same way we do in
OpenReporthereApp/src/libs/actions/Report.js
Lines 582 to 584 in c96718a
What alternative solutions did you explore? (Optional)
hoangzinh commentedon Dec 9, 2023
@dukenv0307 Thanks for your proposal. Your RCA is correct and your solution, overall is correct. I only suggest that we can do the same as we did when we invite a member to a workspace here
App/src/libs/actions/Policy.js
Line 541 in 632c5c6
Link to proposal #32712 (comment)
🎀👀🎀 C+ reviewed
27 remaining items
dylanexpensify commentedon Dec 22, 2023
paid! @hoangzinh can you propose Regression Test steps please?
hoangzinh commentedon Dec 22, 2023
Regression Test Proposal
Do we agree 👍 or 👎
[-][HOLD for Payment: 2023-12-21] HIGH: [$500] Inviting a member to a user created room does not add them until page is refreshed[/-][+][HOLD for Payment: 2023-12-21] CRITICAL: [$500] Inviting a member to a user created room does not add them until page is refreshed[/+][-][HOLD for Payment: 2023-12-21] CRITICAL: [$500] Inviting a member to a user created room does not add them until page is refreshed[/-][+]CRITICAL: [$500] Inviting a member to a user created room does not add them until page is refreshed[/+]melvin-bot commentedon Jan 4, 2024
melvin-bot commentedon Jan 4, 2024
The BZ member will need to manually hire applausebot for the Contributor role. Please store your Upwork details and apply to our Upwork job so this process is automatic in the future!
roryabraham commentedon Jan 4, 2024
Hmmm ... that's not right.
roryabraham commentedon Jan 4, 2024
Created https://github.com/Expensify/Expensify/issues/356696 to update regression tests, closing this out