-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2024-03-25] [$500] Chat - Unable to re-join thread after leaving thread and returning with back button #37612
Comments
Triggered auto assignment to @mallenexpensify ( |
We think that this bug might be related to #vip-vsp |
@mallenexpensify 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 |
Job added to Upwork: https://www.upwork.com/jobs/~014d212626b2be400f |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @jjcoffee ( |
Current assignee @jjcoffee is eligible for the External assigner, not assigning anyone new. |
@jjcoffee think this can be External? I feel like it can be. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tapping "join" button does nothing but flashes button What is the root cause of that problem?When the user leaves a thread, the user will lose access to the thread until they open the thread again. The problem here is that when the user goes back to the thread via back button, the route of that thread does not change so This same problem doens't happen if we click on the What changes do you think we should make in order to solve the problem?Make sure the
(We can make the check stricter by using What alternative solutions did you explore? (Optional)Instead of modifying the Currently when going back to the thread we'll see the thread content immediately, that's because we're keeping the thread content after we leave it, we can optionally change to using loading skeleton (until the report is |
ProposalPlease re-state the problem that we are trying to solve in this issue.Not able to join the thread when coming back from a chat report page. What is the root cause of that problem?The root cause is that we navigate to a new chat page when leave the thread rather than go back to the previous report page's route, this behavior is coming from #37355. What changes do you think we should make in order to solve the problem?We should revert the code change in src/libs/actions/Report.ts: What alternative solutions did you explore? (Optional)If the team decide issue's #35810 expected behavior is reasonable, then maybe duke's solution can do the trick. |
Why I think issue's #35810 expected behavior is not reasonable. To brief #35810's expected behavior, navigate to a new chat report page when leave a thread, navigate back to the thread when click the back button. I believe the intuition is navigate back to the previous chat report page when leave a thread rather than go to a new chat report page. Plus it will cause a route stack 'loop': Screen.Recording.2024-03-04.at.14.22.55.mov |
Hmm yeah I agree with @badeggg that the expected behaviour in #35810 seems a little off. I'd expect that explicitly choosing to leave the thread indicates the user doesn't want to go back there, and the following back button interaction should take you back to LHN (on mobile). It seems like they settled on this behaviour after a long discussion on Slack though, so I think we can consider it "expected" 😄 @dukenv0307's proposal almost makes sense to me, I'm just missing a bit more clarity on the RCA. Why does the |
@jjcoffee The
@jjcoffee Even if we make the |
@dukenv0307 Thanks for the extra details! One last missing piece - what exactly does opening the thread with Under your proposal it sounds like there would be no way to fully leave a thread since if you use the back button to navigate away from the parent chat, you always go to the thread you left first which (via This is an "interesting" side-effect of implementing #35810, so I'm not 100% on whether or not to consider this a regression that the PR author there should fix. |
@jjcoffee It's the same as when we open thread by clicking "x Replies", the user will then see the thread content and real time messages on the thread
If you mean notifications as in web/app native notifications then no, because the
"re-add you as a participant" doesn't have any effect really, except that the user will be able to see real-time messages if they are opening the thread. The behavior here is just the same as if we open the thread when clicking "x Replies", going back to get there or clicking "x Replies" to get there shouldn't be any different. Here I'm just making sure the behavior is consistent with opening the thread via clicking the "x Replies", not adding any new behavior. I also don't think "you use the back button to navigate away from the parent chat" would be a very common user action after leaving the thread, if they do anything other than that then they will not be re-added as a participant of the thread. So "no way to fully leave a thread" doesn't sound right to me here 😄 , the user will only reopen the thread if they decide so by navigating to the thread.
I'm not sure regression is appropriate since this "go back to thread" feature doesn't exist on prod so there's nothing to regress. It sounds more like an improvement to a new feature. |
@dukenv0307 I don't think there's any other way to get back to LHN on mobile other than using the back button (which would always take you to the thread you just left)?
@badeggg We usually don't reward bounties for pointing out regressions. Bounties only really apply where a proposal was selected to fix an issue and a PR raised + merged. |
ok |
@jjcoffee Yeah I see, I was talking about Desktop. But I don't think it's an issue because there's no notifications that's being sent by the back-end if the user didn't "join" the thread. |
Thanks for the back and forth @dukenv0307! I'm clarifying this on Slack. |
Triggered auto assignment to @MariaHCD, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
❌ There was an error making the offer to @jjcoffee for the Reviewer role. The BZ member will need to manually hire the contributor. |
❌ There was an error making the offer to @dukenv0307 for the Contributor role. The BZ member will need to manually hire the contributor. |
Added to #vip-vsb, will hire in Upwork soon if automation doesn't magically start working. @MariaHCD , can you review the recommended proposal above? Thx |
@dukenv0307 @jjcoffee , can you please accept the job and reply here once you have? |
I'm working on this issue and will raise PR soon |
@mallenexpensify Accepted! 🙏 |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.53-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-03-25. 🎊 For reference, here are some details about the assignees on this issue:
|
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 Proposal
Do we agree 👍 or 👎 |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
Contributor: @dukenv0307 paid $500 via Upwork TR GH https://github.com/Expensify/Expensify/issues/382664 Thanks! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.46.0
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): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
User should be able to join conversation and "join: in header disappears
Actual Result:
Tapping "join" button does nothing but flashes button
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6398425_1709308701289.RPReplay_Final1709302510.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: