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 2023-07-17] [HOLD for payment 2023-07-14] [$1000] Task thread gets hidden when clicking on other chats #22300

Closed
2 of 6 tasks
kavimuru opened this issue Jul 5, 2023 · 36 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 Engineering Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@kavimuru
Copy link

kavimuru commented Jul 5, 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!


Action Performed:

  1. Click on FAB > Assign task > Give title > Click next > Click on Assignee > select a user > Click Confirm task
  2. While task thread is open click on other chats

Expected Result:

Task thread should not disappear

Actual Result:

Task thread disappears

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.37-1
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
Notes/Photos/Videos: Any additional supporting documentation

2023-07-05.22.24.41.mp4
Recording.1173.mp4

Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation:
https://expensify.slack.com/archives/C049HHMV9SM/p1688585231083709
View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0172c3507dab16a468
  • Upwork Job ID: 1677064497764429824
  • Last Price Increase: 2023-07-06
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 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 Jul 5, 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.

@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 2023

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

@StevenKKC
Copy link
Contributor

StevenKKC commented Jul 6, 2023

Proposal

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

Task thread gets hidden when clicking on other chats.

What is the root cause of that problem?

The root cause is that task thread have a empty lastMessageText, so ReportUtils.shouldReportBeInOptionList returns false, and then gets hidden in LHN.

App/src/libs/ReportUtils.js

Lines 2021 to 2024 in 197cf7d

// Hide thread reports that haven't been commented on
if (isThread(report) && !report.lastMessageText) {
return false;
}

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

We can change above code as below.

-   if (isThread(report) && !report.lastMessageText) {
+   if (isThread(report) && !isTaskReport(report) && !report.lastMessageText) {

What alternative solutions did you explore? (Optional)

None.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Jul 6, 2023
@Li357
Copy link
Contributor

Li357 commented Jul 6, 2023

Thanks @StevenKKC -- I don't we should hide any actionable items either, such as IOUs, expenses, etc. So we should only hide 1:1s, group chats, and threads that haven't been commented on. Since this is also a deploy blocker, can you get a PR in by EoD? If not, I'll pick this up.

@c3024
Copy link
Contributor

c3024 commented Jul 6, 2023

@jeet-dhandha answered earlier in #22294

@Li357
Copy link
Contributor

Li357 commented Jul 6, 2023

Seems like @jeet-dhandha did propose first. Since this is a deploy blocker I'm going to go ahead and do the fix myself.

@Julesssss
Copy link
Contributor

The proposal makes sense to me, but I'm curious why this was only a recent regression. Nothing from yesterday's checklist seems like an obvious cause for this issue 😕

@jeet-dhandha
Copy link
Contributor

@Li357 should i do anything ?

@Li357
Copy link
Contributor

Li357 commented Jul 6, 2023

No, we'll handle this internally since it involves fixing this not just for tasks

@jeet-dhandha
Copy link
Contributor

Sure 👌

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Jul 6, 2023
@kevinksullivan kevinksullivan added the External Added to denote the issue can be worked on by a contributor label Jul 6, 2023
@melvin-bot melvin-bot bot changed the title Task thread gets hidden when clicking on other chats [$1000] Task thread gets hidden when clicking on other chats Jul 6, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 7, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Task thread gets hidden when clicking on other chats [HOLD for payment 2023-07-14] [$1000] Task thread gets hidden when clicking on other chats Jul 7, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

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

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

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:

  • [@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@allroundexperts] Determine if we should create a regression test for this bug.
  • [@allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@kevinksullivan] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@allroundexperts
Copy link
Contributor

@kevinksullivan I'll be getting paid through the App. Please delete the Upwork request.

@kevinksullivan
Copy link
Contributor

@jeet-dhandha can you elaborate on what you're asking for? Thanks

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 10, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-07-14] [$1000] Task thread gets hidden when clicking on other chats [HOLD for payment 2023-07-17] [HOLD for payment 2023-07-14] [$1000] Task thread gets hidden when clicking on other chats Jul 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.38-7 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 2023-07-17. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

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:

  • [@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@allroundexperts] Determine if we should create a regression test for this bug.
  • [@allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@kevinksullivan] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@anmurali
Copy link

@allroundexperts - paid

@jeet-dhandha
Copy link
Contributor

@kevinksullivan just wanted a compensation for help. But then it got fixed by an internal member saying its a priority so no worries. Its okay on your end.

@Nathan-Mulugeta
Copy link

Hey @anmurali are payments being processed early?

@allroundexperts
Copy link
Contributor

allroundexperts commented Jul 11, 2023

Hey @anmurali are payments being processed early?

No. I think mine was processed earlier due to a mistake.

I'll complete the checklist now.

This was a deploy blocker and I just got paid for the review. So I don't think checklist is applicable here.

@Nathan-Mulugeta
Copy link

Hey guys when is this report's Payment going to be processed? I am seeing two hold for payments on the title. @kevinksullivan

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jul 13, 2023
@maddylewis
Copy link
Contributor

i am assigned this issue - #22294

should i be issuing a reporting bonus on my issue? is a second reporting bonus, the Contributor and C+ payments being processed via this issue?

@kevinksullivan
Copy link
Contributor

Paid @Nathan-Mulugeta

@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2023
@kevinksullivan
Copy link
Contributor

should i be issuing a reporting bonus on my issue? is a second reporting bonus, the Contributor and C+ payments being processed via this issue?

That seems to be a duplicate of this GH @maddylewis . Does the problem still exist now that this has deployed?

@esh-g
Copy link
Contributor

esh-g commented Jul 17, 2023

@kevinksullivan @maddylewis Sorry for the late reply but that issue was opened 44 mins before this issue. I think this would be the dupe. I'm sorry I didn't notice it before

@maddylewis
Copy link
Contributor

ok ok word - ty for clarifying, all 👍

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 Engineering Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests