Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Payment due 7-25] Review duplicate - "resolved the duplicate" system message disappears after restarting app #44294

Closed
6 tasks done
lanitochka17 opened this issue Jun 24, 2024 · 24 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 24, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.1-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat
  3. Submit two same expenses (can be manual, scan or distance)
  4. Wait for "Review duplicate" button to show up in transaction thread
  5. Click Review duplicate
  6. Click Keep all
  7. Note that "resolved the duplicate" system message shows up
  8. Go to Troubleshoot > Clear cache and restart > Reset and refresh (or relogin)
  9. Return to the same transaction thread in Step 7

Expected Result:

"Resolved the duplicate" system message will remain

Actual Result:

"Resolved the duplicate" system message disappears after restarting app/relogin.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6523232_1719250015751.20240625_012220.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployDeferred Do not use - this label signifies that PR will be deployed later labels Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

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

Copy link
Contributor

👋 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.

@lanitochka17
Copy link
Author

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

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 2

@rlinoz
Copy link
Contributor

rlinoz commented Jun 24, 2024

It looks like we are not sending the action back in the DismissViolation response, so it is not a FE bug, also this is a new feature and I don't think we need to block on this.

image

@pecanoro do you know if this is being handled somewhere else?

@rlinoz rlinoz added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment DeployDeferred Do not use - this label signifies that PR will be deployed later Hourly KSv2 labels Jun 24, 2024
@pecanoro
Copy link
Contributor

Hmm, yeah, I don't think we create any report actions for this in the back-end

@rlinoz
Copy link
Contributor

rlinoz commented Jun 25, 2024

@pecanoro just to be sure, I was reading the doc and we should right? If so, I think we can do that in this issue.

@melvin-bot melvin-bot bot added the Overdue label Jun 27, 2024
@rlinoz
Copy link
Contributor

rlinoz commented Jun 27, 2024

Will check in #wave-collect later.

@melvin-bot melvin-bot bot removed the Overdue label Jun 27, 2024
@pecanoro
Copy link
Contributor

Hmm, the problem is that this action can be taken by many people. So the submitter can dismiss it, but the admin will see it either way. I remember discussing it, but I can't remember what we agreed on.

@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
@rlinoz
Copy link
Contributor

rlinoz commented Jul 1, 2024

Posted on slack

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 1, 2024
@rlinoz
Copy link
Contributor

rlinoz commented Jul 3, 2024

Continuing the conversation on slack.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 3, 2024
@rlinoz
Copy link
Contributor

rlinoz commented Jul 8, 2024

Here is the plan for this one:

  • Add an ACTION_UNHOLD here if the accountID dismissing the violation is the submitter and a DISMISSED_VIOLATION if it is the approver
  • Start checking the violationName here to decide on what message we send back
  • Update the DismissViolation command to accept a list of optimisticReportActionID in Web-E
  • Replicate the logic of which type of action to create when creating the optimistic action in the App and start sending an optimisticReportActionID when calling DismissViolation for duplicate transactions

Hopefully I will have some PRs by tomorrow EOD.

@melvin-bot melvin-bot bot added the Weekly KSv2 label Jul 11, 2024
@rlinoz rlinoz added Reviewing Has a PR in review Bug Something is broken. Auto assigns a BugZero manager. and removed Reviewing Has a PR in review labels Jul 12, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

Triggered auto assignment to @Christinadobrzyn (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 melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 12, 2024
@Christinadobrzyn
Copy link
Contributor

Update for Melvin - working on a PR

@Christinadobrzyn
Copy link
Contributor

@allroundexperts should we move this to weekly since the PR is under review?

@allroundexperts
Copy link
Contributor

PR got merged @Christinadobrzyn 😄

@allroundexperts
Copy link
Contributor

See #45315

@Christinadobrzyn Christinadobrzyn changed the title Review duplicate - "resolved the duplicate" system message disappears after restarting app [Payment due 7-25] Review duplicate - "resolved the duplicate" system message disappears after restarting app Jul 18, 2024
@Christinadobrzyn Christinadobrzyn added Weekly KSv2 and removed Reviewing Has a PR in review Daily KSv2 labels Jul 18, 2024
@Christinadobrzyn
Copy link
Contributor

Awesome! looks like it just went to production so updating the Title for the payment date and switching this to weekly for the time being.

@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Jul 23, 2024

Payday is coming up so going to move this back to daily.

Payouts due:

Do we need a regression test?

@Christinadobrzyn Christinadobrzyn added Daily KSv2 and removed Weekly KSv2 labels Jul 23, 2024
@melvin-bot melvin-bot bot added the Overdue label Jul 26, 2024
@Christinadobrzyn
Copy link
Contributor

nudge @allroundexperts

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 26, 2024
@allroundexperts
Copy link
Contributor

Regression test

  1. Open the app and Go to any workspace chat
  2. Submit two same expenses (can be manual, scan or distance)
  3. Wait for "Review duplicate" button to show up in transaction thread
  4. Click Review duplicate and select Keep all
  5. Note that "resolved the duplicate" system message shows up
  6. Go to Troubleshoot > Clear cache and restart > Reset and refresh (or relogin)
  7. Return to the same transaction thread in Step 5

Verify that "Resolved the duplicate" system message will remain

Do we 👍 or 👎 ?

@melvin-bot melvin-bot bot removed the Overdue label Jul 29, 2024
@Christinadobrzyn
Copy link
Contributor

Regression test - https://github.com/Expensify/Expensify/issues/416107

Closing since @allroundexperts payment will be through NewDot. Payment summary here- #44294 (comment)

@JmillsExpensify
Copy link

$250 approved for @allroundexperts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
Status: Done
Development

No branches or pull requests

6 participants