-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-12-03] [$250] Threads - Reply in threads option shown for parent message in thread #50262
Comments
Triggered auto assignment to @anmurali ( |
@anmurali 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 |
Edited by proposal-police: This proposal was edited at 2024-10-04 19:38:57 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Reply in threads option shown for parent message in thread What is the root cause of that problem?We use this check to show
It was working fine until we added ancestor.report .
This function checks if it's the thread's first chat. However, the ancestor.report we're using now passes the parent report's reportID instead of the current report's. As a result, this check will return false.Lines 1559 to 1561 in 8f35228
What changes do you think we should make in order to solve the problem?We should pass the correct reportID to
And then we can pass
Optional: We can pass We can check for other places too where we need to pass the correct Id. What alternative solutions did you explore? (Optional)We can create a function in pseudoCode
and then in here we can get the currentReportId value
and then we can pass it to Optional: We can pass |
ProposalPlease re-state the problem that we are trying to solve in this issue.Reply in thread option appears for thread first chat. What is the root cause of that problem?We check whether the user can reply in thread, but only if it's not a thread first chat. Line 7463 in 99f280b
isThreadFirstChat compares the action childReportID with the passed reportID. Lines 1559 to 1561 in 99f280b
The reportID is coming from ReportActionItem. However, after this PR, the reportID contains the reportID of the report where the action belongs to. For example, if we create a thread from report A, the reportID will be report A instead of B. So, This also causes the Join Thread to shows up for thread first chat. What changes do you think we should make in order to solve the problem?Instead of using App/src/pages/home/report/ReportActionItemParentAction.tsx Lines 129 to 131 in 99f280b
Then, pass the prop down to App/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.tsx Lines 188 to 203 in 99f280b
Then, we pass it to shouldDisableThread. App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx Lines 179 to 184 in 99f280b
And replace the function here with the new isThreadFirstChat param Line 7463 in 99f280b
We will replace all |
@anmurali Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@anmurali Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~021843831874684578762 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf ( |
@anmurali, @allgandalf Eep! 4 days overdue now. Issues have feelings too... |
Not overdue sir melvin! 🙇 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@anmurali @allgandalf 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! |
@anmurali, @allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@allgandalf bump for review |
I didn't realise there were proposals here, I will review today 👍 |
@bernhardoj 's solution looks good to me. This way we make sure that we only show the reply in thread option if the 🎀👀🎀 C+ reviewed |
📣 @allgandalf 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
PR is ready cc: @allgandalf |
PR is on staging |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.66-8 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-12-03. 🎊 For reference, here are some details about the assignees on this issue:
|
@allgandalf @anmurali @allgandalf 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] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Verify there is no Reply in thread option
Verify there is no Reply in thread option Do we agree 👍 or 👎 |
@anmurali can you pay this one please |
Requested in ND. |
not overdue, pending payment |
@anmurali, @neil-marcellini, @bernhardoj, @allgandalf Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Waiting on payment summary |
@anmurali, @neil-marcellini, @bernhardoj, @allgandalf 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Payment Summary
|
$250 approved for @bernhardoj |
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: 9.0.44-6
Reproducible in staging?: Y
Reproducible in production?: Y
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): Negasofonias@gmail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Reply in a thread option should not be shown for the parent message
Actual Result:
Reply in a thread option is available with out any purpose
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6617626_1727458359699.scrnli_9_27_2024_8-23-11_PM.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: