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

[$250] [Violations] Expense - RBR appears in report preview but no violation message in transaction thread #41386

Closed
6 tasks done
izarutskaya opened this issue May 1, 2024 · 23 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review

Comments

@izarutskaya
Copy link

izarutskaya commented May 1, 2024

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.69-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Submit expense.
  3. Submit an expense to any user.
  4. Submit another expense to the same user again.
  5. Click on the expense preview in the main chat.
  6. Click on the preview that has red dot.

Expected Result:

There should be violation message in transaction thread for expense that has a red dot.

Actual Result:

Red dot appears in expense preview in the report, but there is no violation message in the transaction thread.

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

Bug6467470_1714543806924.red_red_red.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c2a023aff3cd4279
  • Upwork Job ID: 1785642421475364864
  • Last Price Increase: 2024-05-01
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 1, 2024
Copy link

melvin-bot bot commented May 1, 2024

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

Copy link

melvin-bot bot commented May 1, 2024

Triggered auto assignment to @MariaHCD (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

github-actions bot commented May 1, 2024

👋 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.

@izarutskaya
Copy link
Author

@bfitzexpensify I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@izarutskaya
Copy link
Author

We think this issue might be related to the #collect project.

@izarutskaya
Copy link
Author

Production

image (13)

@MariaHCD
Copy link
Contributor

MariaHCD commented May 1, 2024

Able to reproduce on dev:

Screen.Recording.2024-05-01.at.4.01.05.PM.mov

There doesn't seem to be an error with the creation of the money requests themselves and I don't see any recent changes to the shouldShowRBR logic in ReportPreview component that might've caused this. Adding External to get more eyes on this.

@MariaHCD MariaHCD added the External Added to denote the issue can be worked on by a contributor label May 1, 2024
@melvin-bot melvin-bot bot changed the title Expense - RBR appears in report preview but no violation message in transaction thread [$250] Expense - RBR appears in report preview but no violation message in transaction thread May 1, 2024
Copy link

melvin-bot bot commented May 1, 2024

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

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

melvin-bot bot commented May 1, 2024

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

@MariaHCD
Copy link
Contributor

MariaHCD commented May 1, 2024

Seems like there's a cashExpenseWithNoReceipt violation on those transactions.

Screenshot 2024-05-01 at 5 51 21 PM

I'm not super sure if these transactions should be flagged with this violation...

@MariaHCD
Copy link
Contributor

MariaHCD commented May 1, 2024

@francoisl
Copy link
Contributor

Discussed internally (link 1, link 2), this can be fixed from the backend and violations are still under a beta, so we're not going to block the NewDot deploy on this.

@francoisl francoisl added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels May 1, 2024
@cead22 cead22 removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels May 1, 2024
@cead22 cead22 added the Internal Requires API changes or must be handled by Expensify staff label May 1, 2024
@cead22 cead22 self-assigned this May 1, 2024
Copy link

melvin-bot bot commented May 1, 2024

Triggered auto assignment to Contributor Plus for review of internal employee PR - @allroundexperts (Internal)

@JmillsExpensify JmillsExpensify moved this to Release 2: Summer 2024 (Aug) in [#whatsnext] #expense May 1, 2024
@JmillsExpensify
Copy link

Pulling from our convo in Slack, I think we should move to remove most violations from IOUs, including notes like cashExpenseWithNoReceipt. That said, we still need to support the case of receipt scanning failures, so NAME_RECEIPT_NOT_SMART_SCANNED.

The other case I can think of is Hold, which is supported on IOU report, though isn't Hold an expenseNVP?

@JmillsExpensify JmillsExpensify changed the title [$250] Expense - RBR appears in report preview but no violation message in transaction thread [$250] [Violations] Expense - RBR appears in report preview but no violation message in transaction thread May 1, 2024
@robertjchen
Copy link
Contributor

With regards to Hold- it is a reportAction, but we do have some violation logic in place at the transaction level. We could make an exception there to avoid flagging held requests as a violation if it happens to be on an IOU report.

@cead22
Copy link
Contributor

cead22 commented May 1, 2024

If I'm understanding Jason correctly, we want to return HOLD violations on IOUs. Is that right?

@JmillsExpensify
Copy link

Yes, that's correct. Hold is a feature of all report types.

@melvin-bot melvin-bot bot added the Overdue label May 6, 2024
Copy link

melvin-bot bot commented May 7, 2024

@cead22, @allroundexperts Eep! 4 days overdue now. Issues have feelings too...

@cead22
Copy link
Contributor

cead22 commented May 7, 2024

I submitted a PR to stop returning cashExpenseWithNoReceipt for new dot, which should fix this

@melvin-bot melvin-bot bot removed the Overdue label May 7, 2024
@cead22 cead22 added the Reviewing Has a PR in review label May 7, 2024
Copy link

melvin-bot bot commented May 15, 2024

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

Copy link

melvin-bot bot commented May 17, 2024

@cead22, @allroundexperts Eep! 4 days overdue now. Issues have feelings too...

@JmillsExpensify
Copy link

@cead22 Can we close this issue out now?

@cead22
Copy link
Contributor

cead22 commented May 21, 2024

Yup

@cead22 cead22 closed this as completed May 21, 2024
@github-project-automation github-project-automation bot moved this from Release 2: Summer 2024 (Aug) to Done in [#whatsnext] #expense May 21, 2024
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. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review
Projects
Status: Done
Development

No branches or pull requests

9 participants