-
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
[HOLD for payment 2024-01-25] [$500] Room - No Join button in thread header for thread with no reply #34054
Comments
Triggered auto assignment to @sophiepintoraetz ( |
Job added to Upwork: https://www.upwork.com/jobs/~01e0087435438fe2da |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.No "Join" button is displayed on the empty thread header What is the root cause of that problem?When showing the "Join" button, we check the thread to be not empty: App/src/pages/home/HeaderView.js Lines 156 to 158 in fb0b1d1
There is another issue that the "Join" button is visible for an optimistic thread (can be tested via sending a new message and opening it as a thread all in offline mode). This is because the new threads are created with App/src/libs/actions/Report.ts Line 742 in 596e56b
What changes do you think we should make in order to solve the problem?Remove the const canJoinOrLeave = isChatThread || isUserCreatedPolicyRoom || canLeaveRoom; To fix the optimistic thread issue, we should set the optimistic notification preference to "Always", if the user is the author of the original message, when clicking "Reply in thread" (i.e. creating a new thread) for the first time. It is replaced with "Always" on the API response if requested by the message author, and we're doing the same check do it when subscribing to the thread: App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 176 to 177 in e18b1d0
Therefore, this change will make the optimistic match the actual BE response. We should change the following line (742): - CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN
+ ReportUtils.isActionCreator(parentReportAction) ? CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS : CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN App/src/libs/actions/Report.ts Lines 732 to 745 in 596e56b
What alternative solutions did you explore? (Optional) |
@srikarparsi could you please share why you decided to hide the "Join" button on the empty threads here? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Room - No Join button in thread header for thread with no reply What is the root cause of that problem?When we reply in the same thread and we are unsubscribed we do not take into consideration if the parent's response is empty to show the join button. What changes do you think we should make in order to solve the problem?We should take into consideration if the parent message is empty or not to show the join button:
Result: Join.button.in.thread.test.mp4 |
. |
I believe it was because of the words "join" and "leave" since joining and leaving a nonexistent thread didn't make much sense at the time. Subscribe and unsubscribing made more sense in that context. But I believe we're changing the language across the menus to be "join" and "leave." So it would make sense to be able to "join" a nonexistent thread now. |
Cool, thank you for an expanded explanation 👍 |
ProposalUpdated proposal #34054 (comment) to cover the optimistic button flickering. @srikarparsi was there any specific reason to create the thread with |
Hey @Ollyws, can you please take a look at these proposals whenever you get a chance? This proposal looks mostly good to me since it uses the same logic as the context menu actions. I'm not sure if we need to check for other cases for when the notification preference is set to always, such as when the workspace admin comments as brought up here, because then the thread will no longer have no replies right? If the proposal looks good and there are only a few minor changes, I think we should be able to get this done by Wednesday or Thursday? |
No need for this, as the user cannot const canJoinOrLeave = isChatThread || isUserCreatedPolicyRoom; |
@srikarparsi I'm guessing you were talking about @paultsimura's proposal here. |
Current assignee @srikarparsi is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @Ollyws 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @paultsimura 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Thanks. The PR is ready for review: #34376 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.26-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-01-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:
|
@paultsimura - you're all paid - @Ollyws , I'll release payment once the BZ checklist is complete! |
BugZero Checklist:
This behaviour was introduced in #27748 but there was reasoning behind it, so I'm not sure if this can really be defined as a bug it's more of a new feature.
N/A
N/A
Yes
Regression Test Proposal
Do we agree 👍 or 👎 |
Awesome, thanks @Ollyws! I need you to accept the offer though before I pay |
Accepted, thanks. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.22-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):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Issue found when executing PR #33791
Action Performed:
Expected Result:
There is a Join button on the right of the header
Actual Result:
There is no Join button on the header
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6333414_1704479548749.20240106_023028.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: