You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-10-14] [$250] [Dupe detection] Use new ResolveDuplicates when approver is resolving duplicates #48416
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Right now, we always call MergeTransactions when resolving duplicates and click Confirm at the last page of resolving duplicates. However, we need to call a new command called ResolveDuplicates when an approver or admin (basically anyone but the submitter) is the person resolving the duplicates. The behaviour (so we can create the proper optimistic actions) should be as follows:
ResolveDuplicates API endpoint needs the following parameters:
This command will update the transaction to match the fields we chose during the flow. It should already be doing this.
It won't delete the rest of the transactions in transactionIDList but it will HOLD them by adding the hold NVP to it and will add the corresponding HOLD actions to each of them.
It will add a DISMISSEDVIOLATION action to the transactionIDToKeep
It will dismiss the violation by adding the corresponding transaction NVP for all transactions.
changed the title [-]Use new ResolveDuplicates[/-][+][Dupe detection] Use new ResolveDuplicates when approver is resolving duplicates[/+]on Sep 2, 2024
changed the title [-][Dupe detection] Use new ResolveDuplicates when approver is resolving duplicates[/-][+][$250] [Dupe detection] Use new ResolveDuplicates when approver is resolving duplicates[/+]on Sep 2, 2024
changed the title [-][$250] [Dupe detection] Use new ResolveDuplicates when approver is resolving duplicates[/-][+][HOLD for payment 2024-10-14] [$250] [Dupe detection] Use new ResolveDuplicates when approver is resolving duplicates[/+]on Oct 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.45-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
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:
[@parasharrajat] The PR that introduced the bug has been identified. Link to the PR:
[@parasharrajat] 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:
[@parasharrajat] 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:
[@parasharrajat] Determine if we should create a regression test for this bug.
[@parasharrajat] 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.
[@sonialiap] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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:
[@parasharrajat] The PR that introduced the bug has been identified. Link to the PR: New Feature
[@parasharrajat] 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: New feature
[@parasharrajat] 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: Not needed
[@parasharrajat] Determine if we should create a regression test for this bug. Yes
[@parasharrajat] 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.
Regression Test Steps
[Employee] Submit two expenses that are duplicated
[Admin] Go to the transaction thread of a transaction
[Admin] Review the duplicate and chose any transaction to keep
[Admin] Confirm to resolve the duplicate
Verify that the transaction thread of the kept transaction has a dismiss violation action resolved the duplicate
The preview of other duplicate transactions has hold message and the transaction thread has a hold action
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]Use new ResolveDuplicates[/-][+][Dupe detection] Use new ResolveDuplicates when approver is resolving duplicates[/+]pecanoro commentedon Sep 2, 2024
@parasharrajat I am assigning you as the C+ in this issue since you reviewed the main ones.
parasharrajat commentedon Sep 2, 2024
Sure
melvin-bot commentedon Sep 2, 2024
Triggered auto assignment to @sonialiap (
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.[-][Dupe detection] Use new ResolveDuplicates when approver is resolving duplicates[/-][+][$250] [Dupe detection] Use new ResolveDuplicates when approver is resolving duplicates[/+]melvin-bot commentedon Sep 2, 2024
Job added to Upwork: https://www.upwork.com/jobs/~011781060ec2a6c428
melvin-bot commentedon Sep 2, 2024
Current assignee @parasharrajat is eligible for the External assigner, not assigning anyone new.
53 remaining items
[-][$250] [Dupe detection] Use new ResolveDuplicates when approver is resolving duplicates[/-][+][HOLD for payment 2024-10-14] [$250] [Dupe detection] Use new ResolveDuplicates when approver is resolving duplicates[/+]melvin-bot commentedon Oct 7, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.45-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-10-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 7, 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:
sonialiap commentedon Oct 14, 2024
Payment summary:
parasharrajat commentedon Oct 14, 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:
Regression Test Steps
Do you agree 👍 or 👎 ?
parasharrajat commentedon Dec 12, 2024
Payment requested as per #48416 (comment)
JmillsExpensify commentedon Dec 16, 2024
$250 approved for @parasharrajat