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-01] [$125] BUG: SelfDM is marked as unread even though there is no message #51066

Closed
danielrvidal opened this issue Oct 18, 2024 · 25 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

@danielrvidal
Copy link
Contributor

danielrvidal commented Oct 18, 2024

BUG: SelfDM is marked as unread even though there is no message

  1. I signed up and wen’t through onboarding modals
  2. When I get to the Concierge chat my SelfDM is unread
  3. But there is no message in the self DM
  • The first image is when I choose “Manage my team”
  • The second is the SelfDM when you choose “Track my expenses”
  • In both cases, I don’t think it should be unread.

We discussed this internally and can't think of any cases where the SelfDM should be unread. So let's please update the flow so that it is marked as read when users come in as new users.

Some background from @trjExpensify:
#43489 - It looks like we did this in this PR.

We need to remove the selfDM from this line:

if (isEmptyReport(report) && !isSelfDM(report)) {

image

image

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021847081858608334041
  • Upwork Job ID: 1847081858608334041
  • Last Price Increase: 2024-10-18
  • Automatic offers:
    • mkhutornyi | Reviewer | 104524422
    • mkzie2 | Contributor | 104524424
Issue OwnerCurrent Issue Owner: @zanyrenney
@danielrvidal danielrvidal added Help Wanted Apply this label when an issue is open to proposals by contributors Bug Something is broken. Auto assigns a BugZero manager. labels Oct 18, 2024
Copy link

melvin-bot bot commented Oct 18, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 18, 2024
@danielrvidal danielrvidal added the External Added to denote the issue can be worked on by a contributor label Oct 18, 2024
Copy link

melvin-bot bot commented Oct 18, 2024

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

@melvin-bot melvin-bot bot changed the title BUG: SelfDM is marked as unread even though there is no message [$250] BUG: SelfDM is marked as unread even though there is no message Oct 18, 2024
Copy link

melvin-bot bot commented Oct 18, 2024

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

@mkzie2
Copy link
Contributor

mkzie2 commented Oct 18, 2024

Edited by proposal-police: This proposal was edited at 2024-10-18 01:11:24 UTC.

Proposal

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

SelfDM is marked as unread even though there is no message

What is the root cause of that problem?

We forced showing unread for empty self DM:

App/src/libs/ReportUtils.ts

Lines 6127 to 6129 in f180cbb

if (isEmptyReport(report) && !isSelfDM(report)) {
return false;
}

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

Remove the isSelfDM check from the above.

@trjExpensify trjExpensify changed the title [$250] BUG: SelfDM is marked as unread even though there is no message [$125] BUG: SelfDM is marked as unread even though there is no message Oct 18, 2024
@trjExpensify
Copy link
Contributor

I'm dropping the price on this as a one-liner we've identified.

Copy link

melvin-bot bot commented Oct 18, 2024

Upwork job price has been updated to $125

@trjExpensify
Copy link
Contributor

@zanyrenney when this is deployed, please make sure we remove this test case from QA: https://github.com/Expensify/Expensify/issues/412760

CC: @isagoico

Copy link

melvin-bot bot commented Oct 21, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Oct 21, 2024
@mkhutornyi
Copy link
Contributor

@mkzie2's proposal looks good.
🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Oct 21, 2024

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

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

melvin-bot bot commented Oct 21, 2024

📣 @mkhutornyi 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Oct 21, 2024

📣 @mkzie2 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review and removed Daily KSv2 labels Oct 22, 2024
@melvin-bot melvin-bot bot added the Weekly KSv2 label Oct 22, 2024
Copy link

melvin-bot bot commented Oct 23, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 25, 2024
@melvin-bot melvin-bot bot changed the title [$125] BUG: SelfDM is marked as unread even though there is no message [HOLD for payment 2024-11-01] [$125] BUG: SelfDM is marked as unread even though there is no message Oct 25, 2024
Copy link

melvin-bot bot commented Oct 25, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 25, 2024
Copy link

melvin-bot bot commented Oct 25, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.53-1 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-01. 🎊

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

Copy link

melvin-bot bot commented Oct 25, 2024

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:

  • [@mkhutornyi] The PR that introduced the bug has been identified. Link to the PR:
  • [@mkhutornyi] 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:
  • [@mkhutornyi] 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:
  • [@mkhutornyi] Determine if we should create a regression test for this bug.
  • [@mkhutornyi] 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.
  • [@zanyrenney] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@danielrvidal
Copy link
Contributor Author

Confirmed it's working on production as intended!
image

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 31, 2024
@zanyrenney
Copy link
Contributor

zanyrenney commented Nov 1, 2024

@mkhutornyi please complete the checklist (you can edit my comment here to do so) so that i can close this out and pay it.

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:

  • [@mkhutornyi] The PR that introduced the bug has been identified. Link to the PR:
  • [@mkhutornyi] 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:
  • [@mkhutornyi] 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:
  • [@mkhutornyi] Determine if we should create a regression test for this bug.
  • [@mkhutornyi] 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.
  • [@zanyrenney] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@zanyrenney
Copy link
Contributor

I have DM'd @mkhutornyi

@mkhutornyi
Copy link
Contributor

This is not a regression but new expected behavior.
@zanyrenney please check #51066 (comment) for regression test
We should update test case:

  1. Sign in with a new expensify account
  2. Complete onboarding flow
  3. Verify self DM is not shown in bold

@melvin-bot melvin-bot bot added the Overdue label Nov 4, 2024
@zanyrenney
Copy link
Contributor

Cool, please can you also complete the checklist? this is past due for payment @mkhutornyi Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Nov 4, 2024
@zanyrenney
Copy link
Contributor

@isagoico already replied to the comment about updating the test case here.

@mkhutornyi
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: N/A
  • 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: N/A
  • 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: N/A
  • Determine if we should create a regression test for this bug. Yes
  • 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. [HOLD for payment 2024-11-01] [$125] BUG: SelfDM is marked as unread even though there is no message #51066 (comment)

@zanyrenney
Copy link
Contributor

BZ checklist above!

@zanyrenney
Copy link
Contributor

payment summary

@mkhutornyi requires payment automatic offer (Reviewer) - paid $125
@mkzie2 requires payment automatic offer (Contributor) - paid $125

@github-project-automation github-project-automation bot moved this from Todo to Done in [#whatsnext] #convert Nov 5, 2024
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
Development

No branches or pull requests

6 participants