Skip to content
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-11-14] [$250] Task – Join thread option is present in context menu on deleted task with subtask #50566

Closed
3 of 6 tasks
lanitochka17 opened this issue Oct 10, 2024 · 29 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 10, 2024

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: 9.0.47-1
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): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in
  3. Open any chat
  4. Create a task
  5. Open task details and create a subtask
  6. Click on the header and delete task
  7. Go back to main chat and right click on the deleted task

Expected Result:

Join thread option is not present

Actual Result:

Join thread option is present in context menu on deleted task with subtask, but not present on deleted task with a comment

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6630392_1728543980306.bandicam_2024-10-10_10-04-24-261.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021844593880462626496
  • Upwork Job ID: 1844593880462626496
  • Last Price Increase: 2024-10-18
Issue OwnerCurrent Issue Owner: @stephanieelliott
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 10, 2024
Copy link

melvin-bot bot commented Oct 10, 2024

Triggered auto assignment to @stephanieelliott (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.

@lanitochka17
Copy link
Author

@stephanieelliott 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

@bernhardoj
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

A join thread option shows for a task preview.

What is the root cause of that problem?

This not only happens with a deleted task, but just with a new task. When we create a new task, the notificationPreference is hidden. In this case, the subscribed is false and we don't have any condition to check whether it's a task or not, so the Join thread is shown.

const subscribed = childReportNotificationPreference !== 'hidden';
const isThreadFirstChat = ReportUtils.isThreadFirstChat(reportAction, reportID);
const isWhisperAction = ReportActionsUtils.isWhisperAction(reportAction) || ReportActionsUtils.isActionableTrackExpense(reportAction);
const isExpenseReportAction = ReportActionsUtils.isMoneyRequestAction(reportAction) || ReportActionsUtils.isReportPreviewAction(reportAction);
return !subscribed && !isWhisperAction && !isExpenseReportAction && !isThreadFirstChat && (shouldDisplayThreadReplies || (!isDeletedAction && !isArchivedRoom));
},

What changes do you think we should make in order to solve the problem?

Add a check for task action, if it's a task action, don't show the join thread.

const isTaskAction = ReportActionsUtils.isCreatedTaskReportAction(reportAction);
return !subscribed && !isWhisperAction && !isTaskAction && ...;

@stephanieelliott stephanieelliott added the External Added to denote the issue can be worked on by a contributor label Oct 11, 2024
@melvin-bot melvin-bot bot changed the title Task – Join thread option is present in context menu on deleted task with subtask [$250] Task – Join thread option is present in context menu on deleted task with subtask Oct 11, 2024
Copy link

melvin-bot bot commented Oct 11, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021844593880462626496

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 11, 2024
Copy link

melvin-bot bot commented Oct 11, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (External)

@nkdengineer
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Join thread option is present in context menu on deleted task with subtask

What is the root cause of that problem?

We have two problems here:

  1. The Join button is also shown when we create the task. The RCA is we don't have any condition here to prevent showing the join button if the action is created task action
const isTaskCreatedAction = ReportActionsUtils.isCreatedTaskReportAction(reportAction);
return !subscribed && !isWhisperAction && !isExpenseReportAction && !isThreadFirstChat && !isTaskCreatedAction && (shouldDisplayThreadReplies || (!isDeletedAction && !isArchivedRoom));

return !subscribed && !isWhisperAction && !isExpenseReportAction && !isThreadFirstChat && (shouldDisplayThreadReplies || (!isDeletedAction && !isArchivedRoom));

  1. The Join button is still shown if we create a task in the task report. In this case, I think the current problem is the notificationPreference is still hidden after we create a task in the task report.

What changes do you think we should make in order to solve the problem?

  1. We should add a check not to show the join button if the action is the created task action

return !subscribed && !isWhisperAction && !isExpenseReportAction && !isThreadFirstChat && (shouldDisplayThreadReplies || (!isDeletedAction && !isArchivedRoom));

  1. When we create a new task, we should check if the notificationPreference is hidden, we should update this and update childReportNotificationPreference of the parent report action to always

Backend also needs to update the report's' `notificationPreference' in this case.

What alternative solutions did you explore? (Optional)

Copy link

melvin-bot bot commented Oct 14, 2024

@stephanieelliott, @getusha Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Oct 14, 2024
@stephanieelliott
Copy link
Contributor

Hey @getusha there are 2 proposals here, can you please review when you get a sec?

@stephanieelliott
Copy link
Contributor

Hey @getusha there are 2 proposals here, can you please review when you get a sec?

^^ Bump on this @getusha

Copy link

melvin-bot bot commented Oct 16, 2024

@stephanieelliott, @getusha Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Oct 18, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Oct 18, 2024

@stephanieelliott, @getusha 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

Copy link

melvin-bot bot commented Oct 22, 2024

@stephanieelliott, @getusha 10 days overdue. I'm getting more depressed than Marvin.

@stephanieelliott
Copy link
Contributor

Hey @getusha another bump, can you review the proposals here please? If I we don't hear from you today I'll post this in Slack to see if we can get someone else to take this one

@getusha
Copy link
Contributor

getusha commented Oct 22, 2024

When we create a new task, we should check if the notificationPreference is hidden, we should update this and update childReportNotificationPreference of the parent report action to always

Why do we need this @nkdengineer it's not quite clear for me

@melvin-bot melvin-bot bot removed the Overdue label Oct 22, 2024
@bernhardoj
Copy link
Contributor

That's a different issue and already being handled here

@getusha
Copy link
Contributor

getusha commented Oct 23, 2024

@bernhardoj's proposal looks good to me
🎀 👀 🎀 C+ Reviewed

Copy link

melvin-bot bot commented Oct 23, 2024

Triggered auto assignment to @grgia, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Copy link

melvin-bot bot commented Oct 24, 2024

@stephanieelliott @grgia @getusha 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!

@stephanieelliott
Copy link
Contributor

Lil bump @grgia, wanna review the selected proposal when you get a sec/

@melvin-bot melvin-bot bot added the Overdue label Oct 26, 2024
@grgia
Copy link
Contributor

grgia commented Oct 28, 2024

Back from OOO, assigning

@melvin-bot melvin-bot bot removed Help Wanted Apply this label when an issue is open to proposals by contributors Overdue labels Oct 28, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 29, 2024
@bernhardoj
Copy link
Contributor

PR is ready

cc: @getusha

@stephanieelliott
Copy link
Contributor

PR is just awaiting internal review

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 7, 2024
@melvin-bot melvin-bot bot changed the title [$250] Task – Join thread option is present in context menu on deleted task with subtask [HOLD for payment 2024-11-14] [$250] Task – Join thread option is present in context menu on deleted task with subtask Nov 7, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 7, 2024
Copy link

melvin-bot bot commented Nov 7, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Nov 7, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.58-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-11-14. 🎊

For reference, here are some details about the assignees on this issue:

  • @bernhardoj requires payment through NewDot Manual Requests
  • @getusha requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Nov 7, 2024

@getusha @stephanieelliott 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]

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 14, 2024
Copy link

melvin-bot bot commented Nov 14, 2024

Payment Summary

Upwork Job

BugZero Checklist (@stephanieelliott)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1844593880462626496/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@bernhardoj
Copy link
Contributor

Requested in ND.

@melvin-bot melvin-bot bot added the Overdue label Nov 18, 2024
@stephanieelliott
Copy link
Contributor

Summarizing payment on this issue:

  • Contributor: @bernhardoj $250 - Please request via ND
  • Contributor+: @getusha $250 - Please request via ND

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants