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

Expense preview - Preview gets duplicated on submit 2 duplicate expenses if any already exist #52343

Closed
1 of 8 tasks
lanitochka17 opened this issue Nov 11, 2024 · 17 comments
Closed
1 of 8 tasks
Assignees
Labels
Daily KSv2 Engineering Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Nov 11, 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.60-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Issue found when executing PR #52060

Action Performed:

  1. Log in to New Expensify
  2. Navigate to workspace chat
  3. Submit an expense
  4. Submit another different expense
  5. Submit third expense, the same as in step 4.

Expected Result:

One expense preview should be displayed

Actual Result:

Duplicate expense preview appears after submitting duplicate expenses

Workaround:

Unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6661817_1731357818722.2024-11-11_21-20-22.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

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

Copy link

melvin-bot bot commented Nov 11, 2024

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

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 lanitochka17 added the DeployBlocker Indicates it should block deploying the API label Nov 11, 2024
@lanitochka17
Copy link
Author

Production:

bandicam.2024-11-11.22-53-03-766.mp4

@francoisl
Copy link
Contributor

I think this is a backend bug, I can still repro if I check out NewDot's production version locally, and can no longer repro if I check out Web-E's production branch.

@francoisl
Copy link
Contributor

This is caused by https://github.com/Expensify/Web-Expensify/pull/44299, cc @yuwenmemon. Removing the DeloyBockerCacsh label.

@francoisl francoisl removed the DeployBlockerCash This issue or pull request should block deployment label Nov 12, 2024
@yuwenmemon
Copy link
Contributor

Hmmmm... This only seems to happen when you are the workspace's admin in addition to the submitter..

@yuwenmemon
Copy link
Contributor

Ah, we're not removing the optimistic report action, and updating the old one that actually exists...

@yuwenmemon
Copy link
Contributor

I have a fix but will create a revert the offending PR in the meantime so we can move forward with the deploy if we need to before the next Auth deploy cc @mountiny

@mountiny
Copy link
Contributor

@kavimuru
Copy link

Not able to reproduce

2024-11-12.19-02-08.mp4

@mountiny mountiny added Daily KSv2 and removed Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels Nov 12, 2024
@brunovjk
Copy link
Contributor

Is this the same bug: Two previews are created after creating 2 or more expenses

v9.0.66-8
bug_production.mov

cc: @yuwenmemon @mountiny

Thank you for your help!

@mountiny
Copy link
Contributor

@brunovjk yes that seems like a bug

@mountiny
Copy link
Contributor

Can you report in Slack if its not reported yet?

@brunovjk
Copy link
Contributor

@mountiny I'm a bit confused, the bug has already been reported here, right? Thanks.

@mountiny
Copy link
Contributor

Yes, I saw it reported there just after this message from you

@brunovjk
Copy link
Contributor

Great then :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

7 participants