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

[Paid] [$500] Expense - Red dot for WS chat in LHN remains when admin pays a Scan request with no merchant #33998

Closed
6 tasks done
lanitochka17 opened this issue Jan 5, 2024 · 20 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 Jan 5, 2024

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.4.21-4
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 workspace chat as workspace member
  2. Create a Scan request
  3. Go to details page of the request
  4. Click Amount > enter amount > Save
  5. As admin, pay the request

Expected Result:

The red dot in LHN for the workspace chat will be dismissed from member view

Actual Result:

The red dot in LHN for the workspace chat is not dismissed from member view

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

Bug6332214_1704379600800.20240104_090851.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fdd2abc895c5a2d0
  • Upwork Job ID: 1743086417081118720
  • Last Price Increase: 2024-01-05
  • Automatic offers:
    • c3024 | Reviewer | 28089727
    • dukenv0307 | Contributor | 28089728
Issue OwnerCurrent Issue Owner: @strepanier03
@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 Jan 5, 2024
@melvin-bot melvin-bot bot changed the title Expense - Red dot for WS chat in LHN remains when admin pays a Scan request with no merchant [$500] Expense - Red dot for WS chat in LHN remains when admin pays a Scan request with no merchant Jan 5, 2024
Copy link

melvin-bot bot commented Jan 5, 2024

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

Copy link

melvin-bot bot commented Jan 5, 2024

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

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

melvin-bot bot commented Jan 5, 2024

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 Jan 5, 2024

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

@dukenv0307
Copy link
Contributor

Proposal

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

The red dot in LHN for the workspace chat is not dismissed from member view

What is the root cause of that problem?

We are not checking whether the IOU report is settled or not in hasSmartscanError function

const isReportPreviewError = ReportActionsUtils.isReportPreviewAction(action) && hasMissingSmartscanFields(ReportActionsUtils.getIOUReportIDFromReportActionPreview(action));

} else if (ReportUtils.hasSmartscanError(_.values(reportActions))) {

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

We should add the settled check for this case

const IOUReportID = ReportActionsUtils.getIOUReportIDFromReportActionPreview(action);
const isReportPreviewError = ReportActionsUtils.isReportPreviewAction(action) && hasMissingSmartscanFields(IOUReportID) && !isSettled(IOUReportID);

const isReportPreviewError = ReportActionsUtils.isReportPreviewAction(action) && hasMissingSmartscanFields(ReportActionsUtils.getIOUReportIDFromReportActionPreview(action));

What alternative solutions did you explore? (Optional)

NA

@c3024
Copy link
Contributor

c3024 commented Jan 5, 2024

@dukenv0307 's proposal here looks good to me.

🎀 👀 🎀 C+ Reviewed

Copy link

melvin-bot bot commented Jan 5, 2024

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

Copy link

melvin-bot bot commented Jan 8, 2024

@strepanier03, @mountiny, @c3024 Whoops! This issue is 2 days overdue. Let's get this updated quick!

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

melvin-bot bot commented Jan 8, 2024

📣 @c3024 🎉 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 Jan 8, 2024

📣 @dukenv0307 🎉 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 📖

@mountiny
Copy link
Contributor

mountiny commented Jan 8, 2024

Go ahead please

@melvin-bot melvin-bot bot removed the Overdue label Jan 8, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jan 9, 2024
@dukenv0307
Copy link
Contributor

@c3024 The PR is ready for 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 Jan 17, 2024
@melvin-bot melvin-bot bot changed the title [$500] Expense - Red dot for WS chat in LHN remains when admin pays a Scan request with no merchant [HOLD for payment 2024-01-24] [$500] Expense - Red dot for WS chat in LHN remains when admin pays a Scan request with no merchant Jan 17, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 17, 2024
Copy link

melvin-bot bot commented Jan 17, 2024

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

Copy link

melvin-bot bot commented Jan 17, 2024

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

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

Copy link

melvin-bot bot commented Jan 17, 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:

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

@strepanier03
Copy link
Contributor

Dang, another one where the automation didn't work to move this over to Daily. I'll work on this now.

@strepanier03 strepanier03 added Daily KSv2 and removed Weekly KSv2 labels Jan 26, 2024
@strepanier03
Copy link
Contributor

@c3024 - Can you complete the checklist, I jumped the gun and paid this out because I had it confused with another GH I was paying.

Thanks!

@strepanier03 strepanier03 changed the title [HOLD for payment 2024-01-24] [$500] Expense - Red dot for WS chat in LHN remains when admin pays a Scan request with no merchant [Paid [$500] Expense - Red dot for WS chat in LHN remains when admin pays a Scan request with no merchant Jan 26, 2024
@strepanier03 strepanier03 changed the title [Paid [$500] Expense - Red dot for WS chat in LHN remains when admin pays a Scan request with no merchant [Paid] [$500] Expense - Red dot for WS chat in LHN remains when admin pays a Scan request with no merchant Jan 26, 2024
@c3024
Copy link
Contributor

c3024 commented Jan 27, 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:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR:da0fe2b
  • [@c3024] 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:da0fe2b#r137904357
  • [@c3024] 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: No discussion was started because catching this bug does not appear to be feasible earlier.
  • [@c3024] Determine if we should create a regression test for this bug. Yes
  • [@c3024] If we decide to create a regression test for the bug, please propose the [regression test. (https://github.com/Expensify/App/blob/main/contributingGuides/REGRESSION_TEST_BEST_PRACTICES.md) steps to ensure the same bug will not reach production again.

Regression Test

  1. Create a workspace and invite some users to workspace
  2. As an employee of the workspace, go to the policy expense chat
  3. Create a scan money request
  4. Go to request detail page
  5. Click Amount > enter amount > Save. Do not edit any other fields
  6. As admin, pay this request
  7. Verify that the red dot disappears from the policy expense chat in LHN for the employee

👍 or 👎

@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2024
@strepanier03
Copy link
Contributor

Thanks! Doing the reg test GH now and then I'll close.

@melvin-bot melvin-bot bot removed the Overdue label Jan 30, 2024
@strepanier03
Copy link
Contributor

GH is made, ready to close. Thanks everyone!

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
No open projects
Development

No branches or pull requests

5 participants