-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$250] Web - Thread - Switching to Search and back after clicking "Join thread" opens the report #52472
Comments
Triggered auto assignment to @stephanieelliott ( |
Edited by proposal-police: This proposal was edited at 2024-11-13 13:06:19 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Thread - Noting happen when clicking "Join thread" button unless returning to inbox again What is the root cause of that problem?When we press the join button openReport is called with new child report id here App/src/libs/actions/Report.ts Line 1871 in 4d9be4e
and that will set the visitedTime of the child report to the current time App/src/libs/actions/Report.ts Line 832 in 084a711
so when we navigate back to the inbox the empty child report will be opened as it is the last accessed report according to its visitedTime
What changes do you think we should make in order to solve the problem?We should not set the lastVisitedTime for the child report on join as we are not visiting it only subscribing to it. So: add optional shouldSetVisitedTime param for openReport
App/src/libs/actions/Report.ts Line 832 in 084a711
and pass as false for open reports in join thread for both when the childReport exists or not App/src/libs/actions/Report.ts Line 1900 in 084a711
App/src/libs/actions/Report.ts Line 1926 in 084a711
What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-11-19 08:56:27 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue."Join thread" option navigating to "reply in thread" page after navigating to other bottom navigations like Search or Setting and returning back to inbox What is the root cause of that problem?
The difference is here, if
Lines 1762 to 1768 in b1c1a4b
App/src/libs/actions/Report.ts Line 1843 in b1c1a4b
What changes do you think we should make in order to solve the problem?I think the way we update App/src/libs/actions/Report.ts Line 832 in f810ac6
Call App/src/libs/actions/Report.ts Line 832 in f810ac6
What alternative solutions did you explore? (Optional) |
Agree this seems buggy, adding labels. |
Job added to Upwork: https://www.upwork.com/jobs/~021858763130278701100 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Both of the proposals lack clear explanations.
Apart from this, the expected behavior here should be that the user does not navigate to the thread in any way. Please update your proposals for it. Ref: #27994 |
@parasharrajat I updated my alternative solution. |
@parasharrajat I have tried to make it more readable based on your suggestion. Can you check it again? Thx |
Thanks, both of you. But I think you missed the following part of the comment.
|
@parasharrajat What does that mean? My alternative solution will only hide the |
@parasharrajat |
I am telling the expected behaviour for this issue. It's not a feedback for any proposal. |
@parasharrajat There is no navigation going on join thread even on current main, the current issue is making the impression of it happening. When you navigate back to Inbox from search we open the recently accessed report but on join thread we called But the purpose of the join thread button is, as clearly indicated in the PR you linked, to allow a user join back a thread they have unsubscribed. Thus, we shouldn't show the join thread menu for report actions that are not yet have a linked child report/ chat thread. |
@parasharrajat As I explained in the RCA, the thread is opened after going back from the search page because it's a newly created report. With my alternative solution, no new report is created then this bug doesn't happen. |
It is briefly mentioned here #27994 (comment). IT should work like I agree that navigation is happening due to lastaccessed report and openReport call. But that is what I am saying that it should not happen here.
This is absolutely correct but this feature also works for chats where no thread is created so far.
Here are the test steps for this one from that PR. |
@srikarparsi Can you please help us clarify the purpose of this feature? |
Sorry, the purpose of |
@parasharrajat, @stephanieelliott Huh... This is 4 days overdue. Who can take care of this? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
|
@parasharrajat @stephanieelliott this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@parasharrajat Updated proposal. |
Thanks, both of you. Doing some research...and reviewing your proposals. |
@parasharrajat, @stephanieelliott Huh... This is 4 days overdue. Who can take care of this? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Hey @parasharrajat have you had a chance to review the proposals? |
Looks like there is no answer so far to my question, I have asked in slack for that. Let's wait for sometime to get the answer first. |
This is being discussed in Slack here: https://expensify.slack.com/archives/C01GTK53T8Q/p1733293681138239 |
After a long wait, we have an answer. It seems that setting lastVisitTime is not correct in openAPI. But we need to still test this a few different times to make sure that we are not missing any edge cases. Given that @mkzie2's proposal suggests that solution, I like their proposal. 🎀 👀 🎀 C+ reviewed |
Current assignee @srikarparsi is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @mkzie2 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@parasharrajat The PR is here. |
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: v9.0.61-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The "Join Thread" option should not navigate to the report.
Actual Result:
"Join thread" option navigates to the report page after navigating to other bottom navigations like Search or Setting and returning back to inbox.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6663491_1731486430970.bandicam_2024-11-13_11-14-04-868.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @parasharrajatThe text was updated successfully, but these errors were encountered: