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 #30668] [$500] Chat - Unpinned deleted tasks assigned by another user are shown above other pinned messages #30798

Closed
4 of 6 tasks
lanitochka17 opened this issue Nov 2, 2023 · 58 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Nov 2, 2023

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.3.95-0
Reproducible in staging?: Y
Reproducible in production?: N
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. Login with Account A on new Expensify and assign a task to Account B
  2. Cancel the task
  3. Login with Account B > find the Deleted task in the LHN
    Tester login credential: gatantm+82@gmail.com gatantm+112@gmail.com
  4. If you don't see it above the pinned messages, click on the [Deleted task] message again and eventually it displays above the pinned chats

Expected Result:

Unpinned messages appear under pinned chats on LHN

Actual Result:

In the new build the Assigned tasks from another account that were canceled appear above or between pinned messages when they were never pinned

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

2023-11-02_16-42-06.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f5bd596fa8bc9e1a
  • Upwork Job ID: 1721590933982339072
  • Last Price Increase: 2023-11-06
  • Automatic offers:
    • s77rt | Reviewer | 27545058
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 2, 2023
Copy link

melvin-bot bot commented Nov 2, 2023

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

Copy link

melvin-bot bot commented Nov 2, 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

@OSBotify
Copy link
Contributor

OSBotify commented Nov 2, 2023

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Nov 2, 2023

Triggered auto assignment to @AndrewGable (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@kbecciv
Copy link

kbecciv commented Nov 2, 2023

@Christinadobrzyn Can you create a task and assign it to user B using the 'share somewhere' option?

@Christinadobrzyn
Copy link
Contributor

I can reproduce with the steps in the OP. @kbecciv Should I also test the share somewhere option for this?

@Christinadobrzyn

This comment was marked as off-topic.

@AndrewGable
Copy link
Contributor

I don't think that PR is merged or deployed yet 🤔

@AndrewGable
Copy link
Contributor

I cannot reproduce 🤔

For me the deleted task never shows up in the LHN.

Example (on staging web):

  1. andrew@expensify.com sends a task to andrew+empty@expensifail.com
  2. andrew+empty@expensifail.com gets the task
  3. andrew+empty@expensifail.com has a pinned chat
  4. andrew@expensify.com cancels task
  5. andrew+empty@expensifail.com no longer sees task in LHN or chat

@AndrewGable
Copy link
Contributor

When clicking on the deleted task/thread, I see it ordered correctly:

Screenshot 2023-11-03 at 11 05 18 AM

@AndrewGable
Copy link
Contributor

@kbecciv
Copy link

kbecciv commented Nov 3, 2023

The issue is consistently reproducible.
Here are the reproducible steps:

  1. Sign in with Account A
  2. Create Task and assign User B
  3. Cancel the task from Account A
  4. Log in with Account B and check LHN
    Note: User B must open the task to make it read
20231104_030433.mp4

@AndrewGable
Copy link
Contributor

Talking with @puneetlath to see if this PR is related #30655

@puneetlath
Copy link
Contributor

@waterim would you be able to look into this one? I think it's related to our GBR changes.

@AndrewGable
Copy link
Contributor

I pushed a revert branch named andrew-revert-gbr and @puneetlath thinks it fixed the issue, so I do agree it seems related to the PR linked above. @waterim can you let us know what you find out?

I discussed with @puneetlath and @JmillsExpensify and we decided not to block the deploy on this as Tasks is a relatively small feature in general.

@AndrewGable AndrewGable added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Nov 3, 2023
@DylanDylann

This comment was marked as off-topic.

@s77rt
Copy link
Contributor

s77rt commented Dec 1, 2023

@Christinadobrzyn This is still hold on #30668. Not accepting further proposals since @waterim is already assigned to take care of this (in case the other linked issue didn't fix it).

cc @DylanDylann

@Christinadobrzyn Christinadobrzyn removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 1, 2023
@Christinadobrzyn
Copy link
Contributor

oh thanks, @s77rt! I removed the Help wanted label since @waterim is assigned for this!

@melvin-bot melvin-bot bot added the Overdue label Dec 4, 2023
@s77rt
Copy link
Contributor

s77rt commented Dec 4, 2023

Still on hold

@melvin-bot melvin-bot bot removed the Overdue label Dec 4, 2023
@puneetlath puneetlath changed the title [HOLD] [$500] Chat - Unpinned deleted tasks assigned by another user are shown above other pinned messages [HOLD #30668] [$500] Chat - Unpinned deleted tasks assigned by another user are shown above other pinned messages Dec 4, 2023
@Christinadobrzyn
Copy link
Contributor

I think I'm going to move this to weekly as we're still waiting on this PR that hasn't been deployed yet. @s77rt let me know if you'd prefer this is still daily

@Christinadobrzyn Christinadobrzyn added Weekly KSv2 and removed Daily KSv2 labels Dec 6, 2023
@s77rt
Copy link
Contributor

s77rt commented Dec 6, 2023

Weekly sounds good to me as well 👍

@Christinadobrzyn
Copy link
Contributor

monitoring #32140

@DylanDylann
Copy link
Contributor

@Christinadobrzyn @s77rt This PR is merged. Let's remove hold

@DylanDylann
Copy link
Contributor

After re-check on the latest main, I see that after canceling the task the GRB still displays

bug.mp4

From my viewpoint, I think the GRB should disappear immediately after canceling the task

So that I post this proposal to fix this bug

Proposal

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

After canceling the task the GRB still displays on LHN

What is the root cause of that problem?

After canceling the task the GRB still displays on LHN, The pusher return taskReport.isDeletedParentAction === true . But we don't add this field in this function

function getOptionData(

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

in this function

function getOptionData(

we should return isDeletedParentAction

    result.isDeletedParentAction = report.isDeletedParentAction;

We also need to do the same thing in the chat report selector here

parentReportID: report.parentReportID,

should add

        isDeletedParentAction: report.isDeletedParentAction

What alternative solutions did you explore? (Optional)

NA

Result

sol.mp4

@s77rt
Copy link
Contributor

s77rt commented Dec 13, 2023

@DylanDylann This issue does not have Help Wanted label. @waterim is already assigned to work on this issue

@s77rt
Copy link
Contributor

s77rt commented Dec 13, 2023

@Christinadobrzyn Please lift the hold since #32140 is merged now

@s77rt
Copy link
Contributor

s77rt commented Dec 13, 2023

@waterim Please check this issue once you get a chance

@waterim
Copy link
Contributor

waterim commented Dec 14, 2023

@s77rt I can see that the issue here is "Unpinned deleted tasks assigned by another user are shown above other pinned messages", but this one was fixed and as I understand we want to fix GBR for deleted task as well here, right?

@DylanDylann
Copy link
Contributor

@s77rt @Christinadobrzyn Should we create a new issue for the bug that is mentioned here ? I think It also be a critical bug

@waterim
Copy link
Contributor

waterim commented Dec 14, 2023

@s77rt After my check I agree with @DylanDylann solution, we are just not setting in time the data regarding "isDeletedParentAction" when pusher sends it to us. I can create a PR for that

@s77rt
Copy link
Contributor

s77rt commented Dec 15, 2023

Since this is another bug I think it would be fair to create another issue for it.

@s77rt
Copy link
Contributor

s77rt commented Dec 15, 2023

For this one I think we can just close it.

@DylanDylann
Copy link
Contributor

DylanDylann commented Dec 15, 2023

@Christinadobrzyn @lanitochka17 Could you help to create a new issue for this one. It is so similar this issue and it is critical bug

Action Performed:
Same as this issue

Expected Result:
The deleted task report should not appear between GRB reports

Actual Result:
The task report still appears between GRB reports and GRB appear in the deleted task report

Video

bug.mp4

cc @s77rt

@Christinadobrzyn
Copy link
Contributor

So sorry for the delay @DylanDylann I created the new issue here- #33477

should we close this one or work on them together?

@s77rt
Copy link
Contributor

s77rt commented Dec 22, 2023

@Christinadobrzyn This can be closed

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. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Development

No branches or pull requests