App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2024-12-05] Review duplicates - Review duplicates button does not disappear after the expense is paid

Open IuliiaHerets opened this issue 1 year ago • 24 comments

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:

  1. Go to staging.new.expensify.com
  2. Create a new workspace.
  3. Submit an expense to the workspace chat.
  4. Pay the expense.
  5. Submit the same expense in Step 3 to the workspace chat.
  6. Click on the expense preview.
  7. 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

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @adelekennedy

IuliiaHerets avatar Oct 20 '24 18:10 IuliiaHerets

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.

melvin-bot[bot] avatar Oct 20 '24 18:10 melvin-bot[bot]

Triggered auto assignment to @marcochavezf (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

melvin-bot[bot] avatar Oct 20 '24 18:10 melvin-bot[bot]

💬 A slack conversation has been started in #expensify-open-source

melvin-bot[bot] avatar Oct 20 '24 18:10 melvin-bot[bot]

: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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

github-actions[bot] avatar Oct 20 '24 18:10 github-actions[bot]

We think that this bug might be related to #wave-control

IuliiaHerets avatar Oct 20 '24 18:10 IuliiaHerets

Related PR https://github.com/Expensify/App/pull/50133

Shahidullah-Muffakir avatar Oct 20 '24 20:10 Shahidullah-Muffakir

This is likely a BE Bug, as PayMoneyRequest doesn't remove transactionViolations in Onyx:

Screenshot 2024-10-21 at 12 07 40 Screenshot 2024-10-21 at 12 08 19

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.

daledah avatar Oct 21 '24 05:10 daledah

this is high priority but imo shouldn't delay deploys etc - @marcochavezf if you disagree!

adelekennedy avatar Oct 21 '24 16:10 adelekennedy

Yup, sounds good, it shouldn't be a deploy blocker and I agree this should be fixed in the BE

marcochavezf avatar Oct 21 '24 16:10 marcochavezf

@marcochavezf con contributors help here at all or is this an entirely BE issue you're working on?

adelekennedy avatar Oct 23 '24 21:10 adelekennedy

I think this is entirely BE, I'm fixing another priority bug, I will come back to this one tomorrow

marcochavezf avatar Oct 25 '24 03:10 marcochavezf

@marcochavezf, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Oct 28 '24 18:10 melvin-bot[bot]

Continuing with investigation today

marcochavezf avatar Oct 28 '24 20:10 marcochavezf

I asked internally what would be the better solution in the BE

marcochavezf avatar Oct 30 '24 02:10 marcochavezf

PR in review for BE fix

marcochavezf avatar Oct 30 '24 21:10 marcochavezf

I quickly created a PR for the optimistic values. It's on hold for the BE fix.

marcochavezf avatar Oct 30 '24 22:10 marcochavezf

Please assign me here for payment, I will be reviewing the attached PR https://github.com/Expensify/App/pull/51770

allgandalf avatar Nov 15 '24 10:11 allgandalf

PR approved ✅

allgandalf avatar Nov 25 '24 07:11 allgandalf

Reviewing label has been removed, please complete the "BugZero Checklist".

melvin-bot[bot] avatar Nov 28 '24 14:11 melvin-bot[bot]

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)

melvin-bot[bot] avatar Nov 28 '24 14:11 melvin-bot[bot]

@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]

melvin-bot[bot] avatar Nov 28 '24 14:11 melvin-bot[bot]

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

melvin-bot[bot] avatar Dec 05 '24 09:12 melvin-bot[bot]

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:

  1. Create a new workspace.
  2. Submit an expense to the workspace chat.
  3. Pay the expense.
  4. Submit the same expense in Step 3 to the workspace chat.
  5. Click on the expense preview.
  6. Click Pay elsewhere and pay it.

Verify the Review duplicates button disappears after the expense is paid.

Do we agree 👍 or 👎

allgandalf avatar Dec 05 '24 13:12 allgandalf

@allgandalf what is your upwork profile so I can send you an offer?

adelekennedy avatar Dec 06 '24 19:12 adelekennedy

@marcochavezf, @adelekennedy, @allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Dec 10 '24 09:12 melvin-bot[bot]

Just got your message on Slack @allgandalf paying out now

adelekennedy avatar Dec 11 '24 16:12 adelekennedy

payment made!

adelekennedy avatar Dec 11 '24 16:12 adelekennedy