[HOLD for payment 2024-12-05] Review duplicates - Review duplicates button does not disappear after the expense is paid
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: 9.0.51-1 Reproducible in staging?: Y Reproducible in production?: N Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team
Action Performed:
- Go to staging.new.expensify.com
- Create a new workspace.
- Submit an expense to the workspace chat.
- Pay the expense.
- Submit the same expense in Step 3 to the workspace chat.
- Click on the expense preview.
- Click Pay elsewhere and pay it.
Expected Result:
Review duplicates button will disappear after the expense is paid.
Actual Result:
Review duplicates button does not disappear after the expense is paid. It only disappears after the page is refreshed.
Workaround:
Unknown
Platforms:
- [x] Android: Standalone
- [x] Android: HybridApp
- [x] Android: mWeb Chrome
- [x] iOS: Standalone
- [x] iOS: HybridApp
- [x] iOS: mWeb Safari
- [x] MacOS: Chrome / Safari
- [x] MacOS: Desktop
Screenshots/Videos
https://github.com/user-attachments/assets/5b298977-c9ec-41b7-ac00-0bea7b171ce9
Issue Owner
Current Issue Owner: @adelekennedy
Triggered auto assignment to @adelekennedy (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.
Triggered auto assignment to @marcochavezf (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
💬 A slack conversation has been started in #expensify-open-source
:wave: 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:
- Identify the pull request that introduced this issue and revert it.
- Find someone who can quickly fix the issue.
- Fix the issue yourself.
We think that this bug might be related to #wave-control
Related PR https://github.com/Expensify/App/pull/50133
This is likely a BE Bug, as PayMoneyRequest doesn't remove transactionViolations in Onyx:
We can add optimistic data to remove transactionViolations from the FE side, but I think we should apply the same change to BE as well.
this is high priority but imo shouldn't delay deploys etc - @marcochavezf if you disagree!
Yup, sounds good, it shouldn't be a deploy blocker and I agree this should be fixed in the BE
@marcochavezf con contributors help here at all or is this an entirely BE issue you're working on?
I think this is entirely BE, I'm fixing another priority bug, I will come back to this one tomorrow
@marcochavezf, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick!
Continuing with investigation today
I asked internally what would be the better solution in the BE
PR in review for BE fix
I quickly created a PR for the optimistic values. It's on hold for the BE fix.
Please assign me here for payment, I will be reviewing the attached PR https://github.com/Expensify/App/pull/51770
PR approved ✅
Reviewing label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.67-9 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
- https://github.com/Expensify/App/pull/51770
If no regressions arise, payment will be issued on 2024-12-05. :confetti_ball:
For reference, here are some details about the assignees on this issue:
- @allgandalf requires payment (Needs manual offer from BZ)
@allgandalf @adelekennedy @allgandalf 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]
Payment Summary
Upwork Job
- ROLE: @allgandalf paid $(250) via Upwork (LINK)
BugZero Checklist (@adelekennedy)
- [x] I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
- [x] I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
- [x] I have paid out the Upwork contracts or cancelled the ones that are incorrect
- [x] I have verified the payment summary above is correct
BugZero Checklist:
- [x] [Contributor] Classify the bug:
Bug classification
Source of bug:
- [ ] 1a. Result of the original design (eg. a case wasn't considered)
- [ ] 1b. Mistake during implementation
- [x] 1c. Backend bug
- [ ] 1z. Other:
Where bug was reported:
- [ ] 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
- [x] 2b. Reported on staging (eg. found during regression or PR testing)
- [ ] 2d. Reported on a PR
- [ ] 2z. Other:
Who reported the bug:
- [ ] 3a. Expensify user
- [ ] 3b. Expensify employee
- [ ] 3c. Contributor
- [x] 3d. QA
- [ ] 3z. Other:
-
[x] [Contributor] 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: N/A (This was a BE bug, with optimistic data fix on the FE)
-
[x] [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A
-
[x] [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
-
[ ] [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
- The account should be on canUseDupeDetection
Test:
- Create a new workspace.
- Submit an expense to the workspace chat.
- Pay the expense.
- Submit the same expense in Step 3 to the workspace chat.
- Click on the expense preview.
- Click Pay elsewhere and pay it.
Verify the Review duplicates button disappears after the expense is paid.
Do we agree 👍 or 👎
@allgandalf what is your upwork profile so I can send you an offer?
@marcochavezf, @adelekennedy, @allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick!
Just got your message on Slack @allgandalf paying out now
payment made!