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
[HOLD for payment 2024-08-09] [$250] Threads - Leaving from multilevel threads navigates to wrong thread #46085
Version Number: 9.0.11-0 Reproducible in staging?: Y Reproducible in production?: N 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):bezawitgebremichael+kkii@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Navigate to staging.new.expensify.com
Open a chat
Send a message (Name it parent message for easier observation)
Hover over the message and click on reply in thread
Send another message in the thread (Name it thread 1 for easier observation)
Hover over the message and click on reply in thread
Send another message in the thread (Name it thread 2 for easier observation)
Click on the header of the thread
Click on leave
Note the name of the header and click on it
Click on leave
Note the name of the header and wait a few seconds
Expected Result:
When leaving the first level thread app navigates user to the parent thread, when leaving from the parent thread app navigates to the Original chat and no "You don't have access to this chat" page is displayed
Actual Result:
When leaving the first level thread app navigates to the parent thread but when leaving the parent thread again the app navigates user back to the first level thread and then after a few seconds "You don't have access to this chat" page is displayed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
When leaving the first level thread app navigates to the parent thread but when leaving the parent thread again the app navigates user back to the first level thread and then after a few seconds "You don't have access to this chat" page is displayed
without filtering the leaved thread, lead to the loop behavior: Assume we have two thread 1 and 2. Access 1 then access 2. Now leave thread 2. User is moved to thread 1. Then leave thread 1. User is moved to thread 2. And then join thread 2. Then leave thread 2. User is moved to thread 1, ...
What changes do you think we should make in order to solve the problem?
changed the title [-] Threads - Leaving from multilevel threads navigates to wrong thread[/-][+][$250] Threads - Leaving from multilevel threads navigates to wrong thread[/+]on Jul 24, 2024
Send a message (Name it parent message for easier observation)
Hover over the message and click on reply in thread
Send another message in the thread (Name it thread 1 for easier observation)
Hover over the message and click on reply in thread
Send another message in the thread (Name it thread 2 for easier observation)
Click on the header of the thread and click on leave
Note the name of the header and click on it, and click on leave
Verify that when leaving the first level thread app navigates user to the parent thread, when leaving from the parent thread app navigates to the Original chat and no "You don't have access to this chat" page is displayed
Activity
melvin-bot commentedon Jul 23, 2024
Triggered auto assignment to @marcaaron (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.github-actions commentedon Jul 23, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
lanitochka17 commentedon Jul 23, 2024
We think that this bug might be related to #vip-vsp
nyomanjyotisa commentedon Jul 24, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Leaving from multilevel threads navigates to wrong thread
What is the root cause of that problem?
On leave action we always navigate to the most recent report/the last accessed report here
App/src/libs/actions/Report.ts
Line 2706 in 2bb1d00
What changes do you think we should make in order to solve the problem?
If
parentReportIDexist navigate to the parent report instead of the most recent reportWhat alternative solutions did you explore? (Optional)
daledah commentedon Jul 24, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
When leaving the first level thread app navigates to the parent thread but when leaving the parent thread again the app navigates user back to the first level thread and then after a few seconds "You don't have access to this chat" page is displayed
What is the root cause of that problem?
When leaving room, we always call:
App/src/libs/actions/Report.ts
Line 2790 in 2bb1d00
That function get the most recent access report based on:
App/src/libs/ReportUtils.ts
Lines 1209 to 1214 in 2bb1d00
without filtering the leaved thread, lead to the loop behavior: Assume we have two thread 1 and 2. Access 1 then access 2. Now leave thread 2. User is moved to thread 1. Then leave thread 1. User is moved to thread 2. And then join thread 2. Then leave thread 2. User is moved to thread 1, ...
What changes do you think we should make in order to solve the problem?
We should filter the leaved report from above:
When leaving room, we use
shouldKeepLeavedThread : falseto make sure this change does not break other logic.francoisl commentedon Jul 24, 2024
Thanks for the proposals. Can you identify which PR from the checklist introduced this issue?
melvin-bot commentedon Jul 24, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01a17100bfa3035f8c
[-] Threads - Leaving from multilevel threads navigates to wrong thread[/-][+][$250] Threads - Leaving from multilevel threads navigates to wrong thread[/+]37 remaining items
allroundexperts commentedon Aug 12, 2024
Checklist
Regression Test
Verify that when leaving the first level thread app navigates user to the parent thread, when leaving from the parent thread app navigates to the Original chat and no "You don't have access to this chat" page is displayed
Do we 👍 or 👎 ?
adelekennedy commentedon Aug 14, 2024
Payouts due:
Upwork job is here.
adelekennedy commentedon Aug 15, 2024
Bump @daledah!
daledah commentedon Aug 16, 2024
Sorry @adelekennedy I don't have any Upwork Connects so I could not apply to the job. Instead, could you send the offer directly to my profile here https://www.upwork.com/freelancers/~0138d999529f34d33f. TY
melvin-bot commentedon Aug 20, 2024
@allroundexperts, @marcaaron, @adelekennedy, @daledah Whoops! This issue is 2 days overdue. Let's get this updated quick!
adelekennedy commentedon Aug 21, 2024
hired @daledah!
daledah commentedon Aug 21, 2024
@adelekennedy I have accepted, thank you
JmillsExpensify commentedon Oct 8, 2024
$250 approved for @allroundexperts