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

[HOLD for payment 2024-07-24] [$250] Submitting Expense from Self DM Results in Duplicate Submissions #42795

Closed
3 of 6 tasks
m-natarajan opened this issue May 29, 2024 · 69 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented May 29, 2024

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: 1.4.77-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:

Action Performed:

  1. Go to Self DM and click the plus sign.
  2. Select "Track Expense" > "Distance," add start and stop points, and complete the flow.
  3. Open the details of the tracked expense and change the date or any field that triggers a notification.
  4. When the notification (whisper message) appears, click the "Submit Expense to Someone" button and add an email.
  5. Notice that two expenses are submitted, and the UI covers the first expense.

Expected Result:

Only one expense should be submitted, and the UI should not cover the notification

Actual Result:

Submitting an expense from Self DM results in two expenses being submitted, with the first one being covered by the app's UI.

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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

Bug6495276_1717000629458.Screen_Recording_2024-05-29_at_8.21.11_1AM.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f00d596f8de27d6c
  • Upwork Job ID: 1796208453265444864
  • Last Price Increase: 2024-06-13
  • Automatic offers:
    • c3024 | Contributor | 102762962
    • dominictb | Contributor | 102962999
Issue OwnerCurrent Issue Owner: @adelekennedy
@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels May 29, 2024
Copy link

melvin-bot bot commented May 29, 2024

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.

Copy link

melvin-bot bot commented May 29, 2024

Triggered auto assignment to @stitesExpensify (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.

@m-natarajan
Copy link
Author

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

@luacmartins
Copy link
Contributor

This seems to affect only the UI. Gonna remove the web DeployBlocker label.

@luacmartins luacmartins removed the DeployBlocker Indicates it should block deploying the API label May 30, 2024
@stitesExpensify
Copy link
Contributor

Hm Running through these test steps seems to have full on broken my selfDM 😅

Making this external since I can no longer QA it myself...
2024-05-30_09-52-39

@stitesExpensify stitesExpensify added External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels May 30, 2024
Copy link

melvin-bot bot commented May 30, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01f00d596f8de27d6c

@melvin-bot melvin-bot bot changed the title Submitting Expense from Self DM Results in Duplicate Submissions [$250] Submitting Expense from Self DM Results in Duplicate Submissions May 30, 2024
Copy link

melvin-bot bot commented May 30, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (External)

@stitesExpensify
Copy link
Contributor

@getusha are you able to repro this? I cannot test on staging because my selfDM broke on staging, and it seems to be working on main locally...

@stitesExpensify
Copy link
Contributor

Looks like there is more than one issue here, I'm calling openReport a ton of times too

2024-05-30_11-48-06.mp4

@stitesExpensify
Copy link
Contributor

Regular expense submissions seem to just disappear in the UI too until a refresh

2024-05-30_11-59-43.mp4

@adelekennedy
Copy link

@stitesExpensify if we need urgency here should we ask one of our vendors to step in? Callstack/SWM?

@stitesExpensify
Copy link
Contributor

It looks like there are 2 separate problems here.

  1. The UI is covering the expense (caused by this pr)
  2. We are displaying a single expense twice in the report for some reason (still investigating)

@dominictb
Copy link
Contributor

PR will be ready by tomorrow.

Copy link

melvin-bot bot commented Jul 8, 2024

@stitesExpensify, @adelekennedy, @c3024, @dominictb Huh... This is 4 days overdue. Who can take care of this?

@adelekennedy
Copy link

@dominictb how is the PR coming along? I see it's in progress, do you need any additional support?

@dominictb
Copy link
Contributor

@adelekennedy nope, all good from my side. The PR should be ready for review by today

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Jul 9, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 17, 2024
@melvin-bot melvin-bot bot changed the title [$250] Submitting Expense from Self DM Results in Duplicate Submissions [HOLD for payment 2024-07-24] [$250] Submitting Expense from Self DM Results in Duplicate Submissions Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-07-24. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Jul 17, 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:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR:
  • [@c3024] 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:
  • [@c3024] 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:
  • [@c3024] Determine if we should create a regression test for this bug.
  • [@c3024] 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.
  • [@adelekennedy] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 23, 2024
@adelekennedy
Copy link

payments made! @c3024 will you complete the checklist?

@adelekennedy
Copy link

bump @c3024

@c3024
Copy link
Contributor

c3024 commented Jul 29, 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:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR: Polish for one-transaction view  #39472
  • [@c3024] 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: dominictb@2e030d9#r144740854
  • [@c3024] 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: No discussion was started because it could not have been caught earlier.
  • [@c3024] Determine if we should create a regression test for this bug. Yes

@c3024
Copy link
Contributor

c3024 commented Jul 29, 2024

Regression Test Proposal

  1. Track a Distance Expense in Self DM
  2. Open this tracked expense report and change the date. This triggers a notification changed the date to <new date> previously <old date>
  3. Go back to Self DM
  4. On the whisper received for the tracked expense in Step 1, click on Submit Expense to Someone > Select a user A and complete the flow
  5. Go to the DM with user A > click on this expense preview > go to this expense report
  6. Verify that there are no duplicates for either the date change notification or the expense details

@melvin-bot melvin-bot bot added the Overdue label Jul 30, 2024
@adelekennedy
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants