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

[$500] Task – Reply remains under the task after deleting the subtask #33734

Closed
3 of 6 tasks
lanitochka17 opened this issue Dec 29, 2023 · 44 comments
Closed
3 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Internal Requires API changes or must be handled by Expensify staff Monthly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 29, 2023

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.19-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:

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in with any account.
  3. Create a task in 1:1 DM
  4. Open the task details page and create a subtask assigned to yourself
  5. Go back to the 1:1 DM and verify that Reply appears under the task.
  6. Click on Reply link and open Subtask details page
  7. Cancel the subtask
  8. Go back to the 1:1 DM

Expected Result:

Reply disappears under the task after deleting the subtask

Actual Result:

Reply remains under the task after deleting the subtask

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

Bug6327943_1703804815259.Reply_remains_after_deleting_the_subtask.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f66de9449a2f9b75
  • Upwork Job ID: 1740530326136565760
  • Last Price Increase: 2024-03-21
Issue OwnerCurrent Issue Owner: @neil-marcellini
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 29, 2023
Copy link

melvin-bot bot commented Dec 29, 2023

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

@melvin-bot melvin-bot bot changed the title Task – Reply remains under the task after deleting the subtask [$500] Task – Reply remains under the task after deleting the subtask Dec 29, 2023
Copy link

melvin-bot bot commented Dec 29, 2023

Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 29, 2023
Copy link

melvin-bot bot commented Dec 29, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Copy link

melvin-bot bot commented Dec 29, 2023

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

@jliexpensify
Copy link
Contributor

Tagged DB in #vip-vsb here

@rushatgabhane
Copy link
Member

rushatgabhane commented Dec 29, 2023

bumped it on slack. the fix should be simple
https://expensify.slack.com/archives/C01GTK53T8Q/p1703814046408069

@dukenv0307
Copy link
Contributor

dukenv0307 commented Dec 29, 2023

Proposal

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

Reply remains under the task after deleting the subtask

What is the root cause of that problem?

We're not reducing the childVisibleActionCount of the parentReportAction of the parent task when deleting a subtask.

So the reply will still show.

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

If the subtask has no child visible report action (by checking its childVisibleActionCount), reduce the childVisibleActionCount of the parentReportAction of the parent task when deleting a subtask, this needs to be done both optimistically (so it works in offline mode), and also in the back-end.

We're already doing the same when deleting comment here (works well for deleting comment in the task thread), so can just apply similar logic for deleting sub task.

What alternative solutions did you explore? (Optional)

Optionally reduce the childCommenterCount as well

I don't think so, but if this is the correct expectation, then we should not reduce the subtask childVisibleActionCount and childCommenterCount to 0 after it's deleted (likely the system message should be considered a visible report action), then the sub task will not be hidden after it's deleted.

@rushatgabhane
Copy link
Member

@dukenv0307 the proposal looks like a workaround to me.
When a task is deleted, it has a system message. I believe that the task shouldn't be hidden in the first place

@dukenv0307
Copy link
Contributor

dukenv0307 commented Dec 29, 2023

When a task is deleted, it has a system message. I believe that the task shouldn't be hidden in the first place

@rushatgabhane the system message is only in the subtask's thread itself. In the parent task thread, the subtask will completely disappear (same behavior as when we delete a task inside a chat thread, that task will also disappear).

So to parent task, there will be no trace of the subtask (nor system message) so I think it makes sense to not show "Reply" under the parent task.

The deleted task will only show in its parent report if it has visible report action (like comments, another tasks, ... system message is not considered visible report action). This is the same behavior for money request as well so I don't think we should change it.

@rojiphil
Copy link
Contributor

@rushatgabhane
I think this issue will get addressed in PR here.
Can we put this issue on hold till then?

@melvin-bot melvin-bot bot added the Overdue label Jan 1, 2024
Copy link

melvin-bot bot commented Jan 1, 2024

@rushatgabhane, @jliexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Jan 1, 2024

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

@jliexpensify jliexpensify changed the title [$500] Task – Reply remains under the task after deleting the subtask [HOLD FOR PR #32543][$500] Task – Reply remains under the task after deleting the subtask Jan 2, 2024
@jliexpensify
Copy link
Contributor

Thanks @rojiphil , can you let us know once that PR is sorted? Cheers.

@melvin-bot melvin-bot bot removed the Overdue label Jan 2, 2024
@jliexpensify jliexpensify added Weekly KSv2 and removed Daily KSv2 labels Jan 2, 2024
@melvin-bot melvin-bot bot added the Overdue label Jan 10, 2024
@jliexpensify
Copy link
Contributor

PR was deployed to prod already

@melvin-bot melvin-bot bot removed the Overdue label Jan 15, 2024
@jliexpensify
Copy link
Contributor

jliexpensify commented Jan 15, 2024

I believe this is now fixed on Chrome (Mac), the task gets deleted on v1.4.24-3.

However, on Android native v1.4.24-7 (Pixel 3a) and Android Chrome, I get the Missing transalation error when trying to assign a task to myself.

@lanitochka17 @rushatgabhane - can you both confirm? Thanks!

@melvin-bot melvin-bot bot added the Overdue label Mar 28, 2024
Copy link

melvin-bot bot commented Mar 28, 2024

Current assignee @rushatgabhane is eligible for the Internal assigner, not assigning anyone new.

@neil-marcellini neil-marcellini added Weekly KSv2 and removed Daily KSv2 labels Mar 28, 2024
@melvin-bot melvin-bot bot removed the Overdue label Mar 28, 2024
@neil-marcellini
Copy link
Contributor

I will get to this eventually, seems low priority

@jliexpensify
Copy link
Contributor

TYSM @strepanier03 - I am back now so unassigning you!

@melvin-bot melvin-bot bot added the Overdue label Apr 9, 2024
@jliexpensify
Copy link
Contributor

@neil-marcellini if this is low priority, want to make it a Monthly?

@melvin-bot melvin-bot bot removed the Overdue label Apr 10, 2024
@melvin-bot melvin-bot bot added the Overdue label Apr 18, 2024
@neil-marcellini
Copy link
Contributor

Oh yeah Monthly aka the garbage can? Sure. 😂 🗑️

@melvin-bot melvin-bot bot removed the Overdue label Apr 22, 2024
@neil-marcellini neil-marcellini added Monthly KSv2 and removed Weekly KSv2 labels Apr 22, 2024
@jliexpensify
Copy link
Contributor

Moreso we're not pinged every week lol

@melvin-bot melvin-bot bot added the Overdue label May 24, 2024
@neil-marcellini
Copy link
Contributor

I've hadn't had time or thought about this for a while, but maybe I'll take a shot at it when I have some spare time.

@melvin-bot melvin-bot bot removed the Overdue label May 28, 2024
@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
@jliexpensify
Copy link
Contributor

Not overdue.

@neil-marcellini
Copy link
Contributor

Too much on my plate still, pushing this off again.

@melvin-bot melvin-bot bot removed the Overdue label Jul 1, 2024
@melvin-bot melvin-bot bot added the Overdue label Aug 1, 2024
@jliexpensify
Copy link
Contributor

Not overdue

@neil-marcellini
Copy link
Contributor

neil-marcellini commented Aug 2, 2024

I'm going to close this because it's #vip-vsb related and that's on pause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Internal Requires API changes or must be handled by Expensify staff Monthly KSv2
Projects
No open projects
Development

No branches or pull requests

9 participants