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-22] [$250] Invoice - App crashes after receiver deletes all workspaces and sender is unable to send invoice #44818

Closed
6 tasks done
izarutskaya opened this issue Jul 4, 2024 · 37 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

@izarutskaya
Copy link

izarutskaya commented Jul 4, 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.4-0
Reproducible in staging?: Y
Reproducible in production?: N
Found when validating PR : #43036
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition:

  • User A and User B have their own workspace.
  1. Go to staging.new.expensify.com
  2. [User A] Send an invoice to User B.
  3. [User B] Go to invoice chat.
  4. [User B] Click pay button > Pay the invoice as business > Pay elsewhere.
  5. [User A] Send another invoice.
  6. [User A] Note that User A can send another invoice.
  7. [User B] Delete all the workspaces.
  8. [User B] Note that app crashes after deleting the workspace.
  9. [User A] Send another invoice to User B in the same workspace chat.
  10. [User A] Note that user cannot send invoice after User B deletes all the workspaces.
  11. [User B] Go to Account settings > Workspaces.
  12. [User B] Note that the workspace list shows blank workspace under Free plan.

Expected Result:

In Step 8, app will not crash after user B deletes all the workspaces.
In Step 10, User A should be able to send another invoice to User B after user B deletes all the workspaces.
In Step 12, there should not be any workspace in the list.

Actual Result:

In Step 8, app crashes after user B deletes all the workspaces.
In Step 10, User A is unable to send another invoice to User B after user B deletes all the workspaces.
In Step 12, there is a blank workspace under Free plan.

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

Bug6532944_1720087574886.bandicam_2024-07-04_17-59-00-716.mp4

Bug6532944_1720087574902!staging.new.expensify.com-1720087225348.txt

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015e8883cec9f5dd20
  • Upwork Job ID: 1808990503832944883
  • Last Price Increase: 2024-07-04
  • Automatic offers:
    • c3024 | Contributor | 103001035
Issue OwnerCurrent Issue Owner: @muttmuure
@izarutskaya izarutskaya 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 Jul 4, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

Triggered auto assignment to @muttmuure (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 Jul 4, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jul 4, 2024
Copy link
Contributor

github-actions bot commented Jul 4, 2024

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

@izarutskaya
Copy link
Author

@muttmuure 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.

@izarutskaya
Copy link
Author

We think this issue might be related to the #collect project. #vip-bills

@carlosmiceli carlosmiceli removed the DeployBlocker Indicates it should block deploying the API label Jul 4, 2024
@carlosmiceli
Copy link
Contributor

Can't reproduce.

@carlosmiceli carlosmiceli removed the DeployBlockerCash This issue or pull request should block deployment label Jul 4, 2024
@lanitochka17
Copy link

Issue is still reproducible

20240705_031113.mp4

@lanitochka17 lanitochka17 reopened this Jul 4, 2024
@luacmartins luacmartins added the DeployBlockerCash This issue or pull request should block deployment label Jul 4, 2024
Copy link
Contributor

github-actions bot commented Jul 4, 2024

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

Copy link

melvin-bot bot commented Jul 4, 2024

Current assignee @carlosmiceli is eligible for the DeployBlockerCash assigner, not assigning anyone new.

@carlosmiceli
Copy link
Contributor

@lanitochka17 @izarutskaya To clarify, "User A and User B have their own workspace." means that they both belong to a workspace that was created by User B, right?

@luacmartins
Copy link
Contributor

@carlosmiceli I think that means that user A is the owner of workspace A and user B is the owner of workspace B

@carlosmiceli
Copy link
Contributor

That explains a lot 😅

@carlosmiceli
Copy link
Contributor

This is looking like the offender: #43036

cc @cristipaval @VickyStash can you see if you can find a fix? Adding External for more proposals in the meantime.

@VickyStash
Copy link
Contributor

I was able to reproduce the issue, though there was no crash or blank workspace for me.

@cristipaval There are something that I've noticed that can be useful:

  1. After the receiver workspace is removed, invoiceReceiver turns into null
    issue3

  2. During OpenReport a policy with an empty avatar and name is loaded
    issue1

  3. Sending invoice doesn't work cause invoiceReceiver is null I guess, it returns this error:
    issue2
    Overall it looks like the room should be archived.

@cristipaval
Copy link
Contributor

Thanks a lot! That is valuable information. I'll jump into investigating on the backend side.

@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 10, 2024
@melvin-bot melvin-bot bot changed the title [$250] Invoice - App crashes after receiver deletes all workspaces and sender is unable to send invoice [HOLD for payment 2024-07-17] [$250] Invoice - App crashes after receiver deletes all workspaces and sender is unable to send invoice Jul 10, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

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

Copy link

melvin-bot bot commented Jul 10, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.5-13 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-17. 🎊

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

Copy link

melvin-bot bot commented Jul 10, 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.
  • [@muttmuure] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@cristipaval cristipaval changed the title [HOLD for payment 2024-07-17] [$250] Invoice - App crashes after receiver deletes all workspaces and sender is unable to send invoice [$250] Invoice - App crashes after receiver deletes all workspaces and sender is unable to send invoice Jul 10, 2024
@cristipaval cristipaval removed the Awaiting Payment Auto-added when associated PR is deployed to production label Jul 10, 2024
@cristipaval
Copy link
Contributor

We will need to pay $250 to @c3024 for their help and review

@muttmuure this is the only payment due. The crash is still under investigation.

@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 15, 2024
@melvin-bot melvin-bot bot changed the title [$250] Invoice - App crashes after receiver deletes all workspaces and sender is unable to send invoice [HOLD for payment 2024-07-22] [$250] Invoice - App crashes after receiver deletes all workspaces and sender is unable to send invoice Jul 15, 2024
Copy link

melvin-bot bot commented Jul 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-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-22. 🎊

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

Copy link

melvin-bot bot commented Jul 15, 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.
  • [@muttmuure] 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 Overdue and removed Weekly KSv2 labels Jul 22, 2024
@carlosmiceli
Copy link
Contributor

@c3024 small bump :)

@c3024
Copy link
Contributor

c3024 commented Jul 25, 2024

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR: This is a revert PR for Add Pay as Business option for invoices sent to an individual who is admin of their primary workspace #43036. The authors are aware that the PR was reverted.
  • [@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: NA
  • [@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, this is not a bug that could be identified earlier with any steps.
  • [@c3024] Determine if we should create a regression test for this bug. This was identified during staging regression tests. So, no regression test is required.
  • [@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. NA

@muttmuure
Copy link
Contributor

Paid

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 25, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jul 29, 2024
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

10 participants