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
[$500] Thread - Title in thread is not shown when leaving and revisiting thread offline #32659
Version Number: 1.4.9-2 Reproducible in staging?: Y Reproducible in production?: Y 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 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
changed the title [-]Thread - Title in thread is not shown when leaving and revisiting thread offline[/-][+][$500] Thread - Title in thread is not shown when leaving and revisiting thread offline[/+]on Dec 7, 2023
Please re-state the problem that we are trying to solve in this issue.
Title in thread is not shown when leaving and revisiting thread offline
What is the root cause of that problem?
The report action (the message we have replied in thread) has no childReportID when we reply in thread. These caused by BE resetting childReportID although we set it properly in our optimistic data related to some recent change in BE and already being dealt with here. That will occur if we open a new thread online but if u open a new thread offline and send some message leave the thread and go back to the left thread the page will show loading endless, here is the explanation:
This is a related bug which is caused by the code in Report.leaveRoom that Onyx.METHOD.SET the chat thread report replacing all other necessary props and only settting stateNumstatusNum in here optimistically
which is a bug that breaks our offline user experience and causes an endless loading page (as all necessary data of the chat thread report is deleted in Onyx by the above code) when we navigate to a thread we have left from while offline. It will only display it when we go back online and the necessary data for the thread is fetched from the BE.
What changes do you think we should make in order to solve the problem?
We should use Onyx.METHOD.MERGE instead of Onyx.METHOD.SET here
Activity
[-]Thread - Title in thread is not shown when leaving and revisiting thread offline[/-][+][$500] Thread - Title in thread is not shown when leaving and revisiting thread offline[/+]melvin-bot commentedon Dec 7, 2023
Triggered auto assignment to @conorpendergrast (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 7, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0106a4cab3b7676301
melvin-bot commentedon Dec 7, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Dec 7, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (
External)FitseTLT commentedon Dec 7, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Title in thread is not shown when leaving and revisiting thread offline
What is the root cause of that problem?
The report action (the message we have replied in thread) has no
childReportIDwhen we reply in thread. These caused by BE resettingchildReportIDalthough we set it properly in our optimistic data related to some recent change in BE and already being dealt with here. That will occur if we open a new thread online but if u open a new thread offline and send some message leave the thread and go back to the left thread the page will show loading endless, here is the explanation:This is a related bug which is caused by the code in
Report.leaveRoomthatOnyx.METHOD.SETthe chat thread report replacing all other necessary props and only setttingstateNumstatusNumin here optimisticallyApp/src/libs/actions/Report.js
Lines 2041 to 2048 in 5a0b7fd
which is a bug that breaks our offline user experience and causes an endless loading page (as all necessary data of the chat thread report is deleted in Onyx by the above code) when we navigate to a thread we have left from while offline. It will only display it when we go back online and the necessary data for the thread is fetched from the BE.
What changes do you think we should make in order to solve the problem?
We should use
Onyx.METHOD.MERGEinstead ofOnyx.METHOD.SEThereApp/src/libs/actions/Report.js
Lines 2041 to 2048 in 5a0b7fd
What alternative solutions did you explore? (Optional)
yh-0218 commentedon Dec 7, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Title in thread is not shown when leaving and revisiting thread offline
What is the root cause of that problem?
Because
childReportIDis undefined.What changes do you think we should make in order to solve the problem?
We should give
childReportIDWhat alternative solutions did you explore? (Optional)
Screen.Recording.2023-12-07.at.3.50.11.PM.mov
yh-0218 commentedon Dec 7, 2023
Hi, @thesahindia Could you check my proposal?
This will fix about 5 issues together.
Thanks.
tienifr commentedon Dec 7, 2023
Dupe of: #32519.
FitseTLT commentedon Dec 7, 2023
@tienifr But there is a related bug as I explained in my proposal 👍
melvin-bot commentedon Dec 11, 2023
@conorpendergrast, @thesahindia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
conorpendergrast commentedon Dec 11, 2023
Yeah as this is a dupe of #32519, I'll close it out. If there's another bug, let's get that created as a separate issue!