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 09-17][$250] Dupe detect - Incorrect receipt on confirmation page when expenses have different receipt #47774
Version Number: v9.0.23-0 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers):applausetester+kh050806@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Go to staging.new.expensify.com
Go to workspace chat.
Submit two same expenses (same amount and merchant) but with different receipts.
Go to transaction thread of the second expense.
Click Review duplicates.
Click Keep this one on the first expense.
Proceed to confirmation page.
Expected Result:
The confirmation page will show the receipt of the first expense because the first expense is selected in Step 6.
Actual Result:
The confirmation page shows the receipt of the second expense when the first expense is selected in Step 6.
@mallenexpensify FYI 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
Same can be done for transactionBackup but I guess it's not needed.
Note: The reason we use conditions like updatedTransactionDescription ?? transactionDescription is that the updated details aren't included in the transaction. However, for other details like receipt, we can use the transaction object, and we can get the correct transaction using the solution mentioned above.
Please re-state the problem that we are trying to solve in this issue.
The confirmation page shows the receipt of the second expense when the first expense is selected in Step 6.
What is the root cause of that problem?
In this case, the linkedTransactionID is the transactionID of the second transaction because we're reviewing the duplicate in the transaction thread report of the second transaction.
changed the title [-]Dupe detect - Incorrect receipt on confirmation page when expenses have different receipt[/-][+][$250] Dupe detect - Incorrect receipt on confirmation page when expenses have different receipt[/+]on Aug 26, 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:
[@] The PR that introduced the bug has been identified. Link to the PR:
[@] 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:
[@] 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:
[@] Determine if we should create a regression test for this bug.
[@] 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.
[@bz] 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:
[@shubham1206agra] 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 Required
[@shubham1206agra] Determine if we should create a regression test for this bug. No since confirmation page test should cover this also.
[@shubham1206agra] 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.
[@mallenexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
melvin-bot commentedon Aug 21, 2024
Triggered auto assignment to @mallenexpensify (
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.IuliiaHerets commentedon Aug 21, 2024
We think that this bug might be related to #wave-collect - Release 2
IuliiaHerets commentedon Aug 21, 2024
@mallenexpensify FYI 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
Krishna2323 commentedon Aug 21, 2024
Edited by proposal-police: This proposal was edited at 2024-08-28 03:46:21 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Dupe detect - Incorrect receipt on confirmation page when expenses have different receipt
What is the root cause of that problem?
transactionIDfromoriginalMessage?.IOUTransactionIDwhich will be the first transaction in the report.transactionIDof the selected duplicate.App/src/components/ReportActionItem/MoneyRequestView.tsx
Lines 146 to 151 in 685bb4c
App/src/pages/TransactionDuplicate/Confirmation.tsx
Lines 99 to 104 in 685bb4c
What changes do you think we should make in order to solve the problem?
updatedTransaction, we should be usingupdatedTransaction.transactionIDinstead oflinkedTransactionID.App/src/components/ReportActionItem/MoneyRequestView.tsx
Line 151 in 685bb4c
transactionBackupbut I guess it's not needed.Note: The reason we use conditions like
updatedTransactionDescription ?? transactionDescriptionis that the updated details aren't included in the transaction. However, for other details like receipt, we can use the transaction object, and we can get the correct transaction using the solution mentioned above.App/src/components/ReportActionItem/MoneyRequestView.tsx
Line 541 in 685bb4c
What alternative solutions did you explore? (Optional)
Result
Monosnap.screencast.2024-08-21.14-41-04.mp4
nkdengineer commentedon Aug 21, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The confirmation page shows the receipt of the second expense when the first expense is selected in Step 6.
What is the root cause of that problem?
In this case, the
linkedTransactionIDis the transactionID of the second transaction because we're reviewing the duplicate in the transaction thread report of the second transaction.App/src/components/ReportActionItem/MoneyRequestView.tsx
Lines 146 to 150 in 685bb4c
Then we're getting the receipt URI from
transactiondata so the receipt of the second expense is displayedApp/src/components/ReportActionItem/MoneyRequestView.tsx
Lines 295 to 300 in 685bb4c
What changes do you think we should make in order to solve the problem?
We should get the receipt URI data from
updatedTransactionif it is not empty. Maybe we should update other places like here, here, hereApp/src/components/ReportActionItem/MoneyRequestView.tsx
Lines 295 to 297 in 685bb4c
This solution is the same way as we do in other places like here
App/src/components/ReportActionItem/MoneyRequestView.tsx
Line 541 in 685bb4c
What alternative solutions did you explore? (Optional)
[-]Dupe detect - Incorrect receipt on confirmation page when expenses have different receipt[/-][+][$250] Dupe detect - Incorrect receipt on confirmation page when expenses have different receipt[/+]melvin-bot commentedon Aug 26, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01923b3933ce1dcc46
melvin-bot commentedon Aug 26, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (
External)29 remaining items
shubham1206agra commentedon Sep 18, 2024
@mallenexpensify Yes, we need to be paid here
mallenexpensify commentedon Sep 19, 2024
Contributor: @nkdengineer paid $250 via Upwork
Contributor+: @shubham1206agra paid $250 via Upwork.
@shubham1206agra can you please accept the job and reply here once you have?
https://www.upwork.com/jobs/~01923b3933ce1dcc46
shubham1206agra commentedon Sep 20, 2024
@mallenexpensify I accepted the offer
mallenexpensify commentedon Sep 20, 2024
@shubham1206agra paid, plz complete the BZ checklist.
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:
shubham1206agra commentedon Sep 21, 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:
mallenexpensify commentedon Sep 23, 2024
@shubham1206agra do we want a regression test for this? If not, why not? Thx
shubham1206agra commentedon Sep 24, 2024
No since confirmation page test should cover this also.
mallenexpensify commentedon Sep 24, 2024
Thanks @shubham1206agra , we should be all good here then!