Repository navigation
Description
Part of the project
Main issue: https://github.com/Expensify/Expensify/issues/307591
Doc section: Surfacing Potential Duplicates
Project: [Wave: Collect Approvers] Dupe Detection
UI
Feature Description
Update the comment type here since this can be a single string or a full array containing different transactions NVPs. In this case, it looks like this:
The HOLD doc implemented the logic to display the HOLD notification for each expense. You can see the details here. However, we need to make the following changes to update the HOLD notification in case it is duplicated.
-
Add a new function called
TransactionUtils.isDuplicate(transactionID, checkDismissed)that will check if there is an existing duplicate violation for the given transactionID and has been dismissed: -
Add a new condition to
ReportUtils.isOnHoldto see if the transaction is a duplicate by calling TransactionUtils.isDuplicate(transactionID, true). -
In
components/ReportActionItem/MoneyRequestView.jsin the View for the HOLD banner:-
Check if the transaction has any duplicates by checking the corresponding Onyx key transactionViolations_*. If so, replace the
props.translate('iou.requestOnHold')forprops.translate('iou.requestDuplicate')that contains the message defined in the screenshot at the beginning of the issue (asked me for the Spanish translations). -
If there are duplicates, add a new
<Button>to review duplicates. Don't navigate anywhere for now but eventually it will do the following:-
Navigate the user to the route for a new page ReviewDuplicate
-
Pass the threadReportID of the transaction in the route to the new page.
-
-
Manual Test Steps
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~016dc734e5d5fc1a3f
- Upwork Job ID: 1778425579213647872
- Last Price Increase: 2024-04-11
- Automatic offers:
- akinwale | Reviewer | 0
- gijoe0295 | Contributor | 0
Issue Owner
Current Issue Owner: @MitchExpensifyMetadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone





Activity
melvin-bot commentedon Feb 20, 2024
@pecanoro, this Monthly task hasn't been acted upon in 6 weeks; closing.
If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.
pecanoro commentedon Feb 20, 2024
@MelvinBot Well Melvin, we are prioritizing this again, so reopening!
79 remaining items
[-][HOLD for payment 2024-06-18] [$500][Dupe Detection] Surfacing Potential Duplicates[/-][+][HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$500][Dupe Detection] Surfacing Potential Duplicates[/+]melvin-bot commentedon Jun 13, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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-06-20. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jun 13, 2024
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
MitchExpensify commentedon Jun 15, 2024
Reminder set to pay, do we need BZ steps here @akinwale ?
akinwale commentedon Jun 16, 2024
@MitchExpensify Yes, we do. I'll post them shortly. Also, please note the PR was initially deployed to production 2024-06-11, so the correct payment due date should be 2024-06-18.
akinwale commentedon Jun 16, 2024
Regression Test Steps
Prerequisites
Expense ViolationsenabledUse staging serveron if testing on devCash · Duplicate · Holdat the topHOLDbanner is displayed at the top.This expense has the same details as another one. Review the duplicates to remove the hold.is displayed.Review duplicatesbutton is displayed. Clicking or tapping the button does nothing at the moment.Do we agree 👍 or 👎?
gijoe0295 commentedon Jun 20, 2024
@MitchExpensify Ready for payment 👍
MitchExpensify commentedon Jun 21, 2024
Paid and contracts ended!