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
[Due for payment 2025-03-17] [$250] Group chat - Group chat name in the RHP changes to <'s group chat> when RHP is dismissed #57021
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
Version Number: 9.1.0.0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail: Exp Email or phone of affected tester (no customers):applausetester+sj9032@applause.expensifail.com Issue reported by: Applause Internal Team Device used: Mac 15.0 / Chrome App Component: Other
Action Performed:
Go to staging.new.expensify.com
Open FAB > Start chat > Chat.
Click Add to group.
Click Next.
Click Start group.
Expected Result:
When RHP is dismissed, the group chat name in the RHP will not change to <'s group chat>.
Actual Result:
When RHP is dismissed, the group chat name in the RHP changes to <'s group chat>. The participant list is also blank.
🚨 Edited by proposal-police: This proposal was edited at 2025-02-22 07:28:16 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
When RHP is dismissed, the group chat name in the RHP changes to <'s group chat>. The participant list is also blank.
What is the root cause of that problem?
The group chat name is sourced from the ONYXKEYS.NEW_GROUP_CHAT_DRAFT key. This key is cleared after a new group chat is created by invoking the clearGroupChat() function, which is defined in the following location:
Consequently, the temporary placeholder text <'s group chat> is displayed briefly.
What changes do you think we should make in order to solve the problem?
We can encapsulate clearGroupChat() within InteractionManager.runAfterInteractions to ensure it executes only after all navigation transitions and animations have completed:
changed the title [-]Group chat - Group chat name in the RHP changes to <'s group chat> when RHP is dismissed[/-][+][$250] Group chat - Group chat name in the RHP changes to <'s group chat> when RHP is dismissed[/+]on Feb 21, 2025
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: n/a
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Bug requires regression test: No, edge case
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2
Activity
melvin-bot commentedon Feb 18, 2025
Triggered auto assignment to @OfstadC (
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.bernhardoj commentedon Feb 18, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Group chat information disappears after creating the group chat.
What is the root cause of that problem?
The information on the confirm page is coming from the
newGroupChatDraftdata.App/src/pages/NewChatConfirmPage.tsx
Line 42 in 790ab54
When we open the group chat from
openReport, we will clear the draft.App/src/libs/actions/Report.ts
Lines 959 to 971 in 790ab54
So, the confirm page is updated with an empty information.
What changes do you think we should make in order to solve the problem?
Instead of clearing the data in
openReport, we can clear it when the page is unmounted.We can optionally clear it if the page is unmounted and the Start group button is pressed.
Or maybe we don't need to clear it when the page is unmounted because we clear it when pressing the Start chat button.
App/src/libs/actions/Report.ts
Lines 382 to 385 in 790ab54
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
truph01 commentedon Feb 19, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-02-22 07:28:16 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
ONYXKEYS.NEW_GROUP_CHAT_DRAFTkey. This key is cleared after a new group chat is created by invoking theclearGroupChat()function, which is defined in the following location:App/src/libs/actions/Report.ts
Line 970 in 790ab54
Consequently, the temporary placeholder text
<'s group chat>is displayed briefly.What changes do you think we should make in order to solve the problem?
clearGroupChat()withinInteractionManager.runAfterInteractionsto ensure it executes only after all navigation transitions and animations have completed:What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
to the
NewChatConfirmPage.tsxpage so it will navigate back to the previous page if there is no group chat draft data.[-]Group chat - Group chat name in the RHP changes to <'s group chat> when RHP is dismissed[/-][+][$250] Group chat - Group chat name in the RHP changes to <'s group chat> when RHP is dismissed[/+]melvin-bot commentedon Feb 21, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021892968296677267067
melvin-bot commentedon Feb 21, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (
External)s77rt commentedon Feb 21, 2025
@bernhardoj Thanks for the proposal. The RCA makes sense. Removing the
clearGroupChatlooks good to me and it's also consist with IOU flow.🎀 👀 🎀 C+ reviewedLink to proposal
Edit: It's not that consist as draft values are not cleared after submission and can still be accessed via deep link
45 remaining items
s77rt commentedon Mar 15, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: [Group Chats] Add remaining features #39757 (comment)
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: n/a
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Bug requires regression test: No, edge case
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
OfstadC commentedon Mar 17, 2025
Payment Summary
JmillsExpensify commentedon Mar 19, 2025
$250 approved for @s77rt