-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-12-05] [$250] Dupe detection - RBR is not shown when creating dupe expense with a Gmail account #52243
Comments
Triggered auto assignment to @muttmuure ( |
Edited by proposal-police: This proposal was edited at 2024-11-21 13:28:28 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.RBR is not shown on the report preview when money request is dupe. What is the root cause of that problem?The RBR doesn't show on the report preview because it only shows if the dupe detection permission is enabled. IF the account doesn't have the permission, then RBR won't show. App/src/components/ReportActionItem/ReportPreview.tsx Lines 156 to 160 in 5e69bfc
App/src/libs/TransactionUtils/index.ts Lines 832 to 842 in 5e69bfc
However, on the individual expense preview, we just checks for the amount of the duplicates violation without checking whether the permission is enabled or not, which is different form App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Lines 147 to 149 in 5e69bfc
So, I think there are 2 issues here. In ReportPreview, we check for warning type violation. In MoneyRequestPreviewContent, we don't check for warning type violation, but we check for duplicates, ignoring the dupe detection permission. For the RBR doesn't show for workspace chat in the LHN issue, we already have a logic to do that actually. Lines 6352 to 6356 in 5955bd7
It checks all the related report and see if there are violations. However, App/src/libs/TransactionUtils/index.ts Lines 886 to 891 in 5955bd7
It's because we pass nothing to Line 6355 in 5955bd7
Lines 6370 to 6372 in 5955bd7
What changes do you think we should make in order to solve the problem?Let's use
(MoneyRequestPreviewContent also checks for hasNoticeTypeViolation but ReportPreview don't. We can add it to ReportPreview too if needed by adding it to ReportUtils, just like the others, but I don't know how to trigger notice type violation, so not sure.) To fix the LHN RBR issue, we should first update the App/src/libs/TransactionUtils/index.ts Lines 886 to 891 in 5955bd7
(or we can just pass update |
@muttmuure Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@muttmuure Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@muttmuure Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~021857074546459286027 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 ( |
@bernhardoj Thanks for the proposal Your proposal fix the issue on report preview but not on LHN. Can you also fix it? 20241115230948340.mp4 |
I think they said it should show on some cases only @iwiznia Just for confirmation, in the duplication violations case, should we show RBR on the workspace chat on LHN? |
Yes, RBRs in the LHN should only show in the workspace chat |
Thanks for confirmation |
@bernhardoj Bump for this change #52243 (comment) |
Ok, I got it now. It's supposed to work but there is a small bug. Updated my proposal to fix that. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Great, I will review it tomorrow |
@ahmedGaber93 @muttmuure this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@bernhardoj's proposal LGTM! 🎀 👀 🎀 C+ reviewed |
PR is ready cc: @ahmedGaber93 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.67-9 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-12-05. 🎊 For reference, here are some details about the assignees on this issue:
|
@ahmedGaber93 @muttmuure @ahmedGaber93 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
There is no need for regression test because this issue related to dupe detection beta and it recently removed here #53167 |
@muttmuure Could you please add the payment summary here? Also, please ignore the Upwork offer for me (I will request it on ND). |
Requested in ND. |
@AndrewGable, @ahmedGaber93, @muttmuure, @bernhardoj Eep! 4 days overdue now. Issues have feelings too... |
Just waiting on payment to close |
I need a payment summary to approve payment |
@bernhardoj - $250 C+ |
Requested in ND |
$250 approved for @ahmedGaber93 |
$250 approved for @bernhardoj |
@AndrewGable, @ahmedGaber93, @muttmuure, @bernhardoj Huh... This is 4 days overdue. Who can take care of this? |
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: v9.0.59-0
Reproducible in staging?: Y
Reproducible in production?: Y
Issue was found when executing this PR: #48958
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
RBR(red dot) is shown in LHN and also in the report because of the dupe expense.
Actual Result:
RBR(red dot) is not shown in LHN and in the report. RBR is only shown inside the expense report
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6658672_1731060429199.Screen_Recording_2024-11-08_at_4.20.15_at_night.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @muttmuureThe text was updated successfully, but these errors were encountered: