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
[Payment 2024-11-07] [$250] mWeb - Group chat - Not here page appears briefly when last member leave the group chat #49468
@strepanier03 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
hence if the navigation is not quick enough we will see a not found page as the group chat is deleted in onyx
What changes do you think we should make in order to solve the problem?
We should execute the deleting code after the navigateToMostRecentReport has finished.
We can do that by either calling navigateToMostRecentReport first and call the optimistic code and api call after/in
isNavigationReady
InteractionManager.runAfterInteractions
after some custom set timeout
A similar method can used for leaveRoom too.
What alternative solutions did you explore? (Optional)
changed the title [-]mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/-][+][$250] mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/+]on Sep 19, 2024
@parasharrajat@strepanier03 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
changed the title [-][HOLD for payment 2024-11-07] [$250] mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/-][+][Payment 2024-11-07] [$250] mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/+]on Nov 7, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@parasharrajat] A discussion in #expensify-bugs 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: NA
[@parasharrajat] Determine if we should create a regression test for this bug. Yes
[@parasharrajat] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
All right @parasharrajat thanks for doing that checklist! I have removed the hold from the payment summary so feel free to request payment. Thanks again!
Activity
melvin-bot commentedon Sep 19, 2024
Triggered auto assignment to @strepanier03 (
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.IuliiaHerets commentedon Sep 19, 2024
@strepanier03 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
FitseTLT commentedon Sep 19, 2024
Edited by proposal-police: This proposal was edited at 2024-09-19 14:29:35 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
mWeb - Group chat - Not here page appears briefly when last member leave the group chat
What is the root cause of that problem?
We dismissModal and then call the leaveGroupChat here
App/src/pages/ReportDetailsPage.tsx
Lines 222 to 225 in 3657a67
We are deleting the report optimistically before navigating to recent chat in leaveGroupChat
App/src/libs/actions/Report.ts
Line 2795 in 3657a67
hence if the navigation is not quick enough we will see a not found page as the group chat is deleted in onyx
What changes do you think we should make in order to solve the problem?
We should execute the deleting code after the navigateToMostRecentReport has finished.
We can do that by either calling navigateToMostRecentReport first and call the optimistic code and api call after/in
A similar method can used for
leaveRoomtoo.What alternative solutions did you explore? (Optional)
dominictb commentedon Sep 19, 2024
Edited by proposal-police: This proposal was edited at 2024-09-19 17:43:49 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Not here page appears briefly when last member leave the group chat
What is the root cause of that problem?
We're waiting for dismissModal navigation to trigger
Report.leaveGroupChat(report.reportID)so we can see the not found page for a shot time
What changes do you think we should make in order to solve the problem?
Report.leaveGroupChat(report.reportID)will open the latest reportChange
App/src/libs/actions/Report.ts
Line 2739 in 10ea08e
to
What alternative solutions did you explore? (Optional)
We can consider to remove
Navigation.isNavigationReady()in here. I tested this issue and the bug that needs isNavigationReady and they worked wellResult
Screen.Recording.2024-09-26.at.15.33.14.mov
melvin-bot commentedon Sep 19, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021836833773766101729
[-]mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/-][+][$250] mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/+]melvin-bot commentedon Sep 19, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
External)parasharrajat commentedon Sep 19, 2024
Reviewing..
51 remaining items
melvin-bot commentedon Oct 31, 2024
@parasharrajat @strepanier03 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
strepanier03 commentedon Nov 7, 2024
strepanier03 commentedon Nov 7, 2024
Payment Summary
strepanier03 commentedon Nov 7, 2024
@parasharrajat - I'll check in later for the checklist. Once it's done I'll make the reg test and remove the hold from the payment summary.
[-][HOLD for payment 2024-11-07] [$250] mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/-][+][Payment 2024-11-07] [$250] mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/+]parasharrajat commentedon Nov 8, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
Regression Test Steps
Do you agree 👍 or 👎 ?
strepanier03 commentedon Nov 8, 2024
All right @parasharrajat thanks for doing that checklist! I have removed the hold from the payment summary so feel free to request payment. Thanks again!
parasharrajat commentedon Dec 12, 2024
Payment requested as per #49468 (comment)
JmillsExpensify commentedon Dec 16, 2024
$250 approved for @parasharrajat