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

[$250] Send invoice - App crashes after creating invoice #41504

Closed
m-natarajan opened this issue May 2, 2024 · 18 comments
Closed

[$250] Send invoice - App crashes after creating invoice #41504

m-natarajan opened this issue May 2, 2024 · 18 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented May 2, 2024

Issue OwnerCurrent Issue Owner: @getusha
@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. labels May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

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

Copy link

melvin-bot bot commented May 2, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels May 2, 2024
@melvin-bot melvin-bot bot added the Daily KSv2 label May 2, 2024
Copy link
Contributor

github-actions bot commented May 2, 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.

@CortneyOfstad
Copy link
Contributor

Was able to recreate this pretty quickly:

2024-05-02_10-03-14.mp4

The request does show up fine in my app without error or issue in production:

Screenshot 2024-05-02 at 10 03 52 AM

@suneox
Copy link
Contributor

suneox commented May 2, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Send invoice - App crashes after creating invoice

What is the root cause of that problem?

Top report could not found at this line before access

What changes do you think we should make in order to solve the problem?

We should check topReport before access it

        if (!!topReport && topReport.actionName !== CONST.REPORT.ACTIONS.TYPE.CREATED) {
            return false;
        }

What alternative solutions did you explore? (Optional)

@ZhenjaHorbach
Copy link
Contributor

Looks like regression from this PR #39297

@m-natarajan
Copy link
Author

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

@ShridharGoel
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Send invoice - App crashes after creating invoice.

What is the root cause of that problem?

topReport can be undefined here:

  if (topReport.actionName !== CONST.REPORT.ACTIONS.TYPE.CREATED) {
      return false;
  }

What changes do you think we should make in order to solve the problem?

Update it to this:

if (topReport && topReport.actionName !== CONST.REPORT.ACTIONS.TYPE.CREATED) {
    return false;
}

@grgia
Copy link
Contributor

grgia commented May 2, 2024

@dragnoir @DylanDylann could you confirm #41504 (comment)

@grgia grgia added the External Added to denote the issue can be worked on by a contributor label May 2, 2024
@melvin-bot melvin-bot bot changed the title Send invoice - App crashes after creating invoice [$250] Send invoice - App crashes after creating invoice May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

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

@dragnoir
Copy link
Contributor

dragnoir commented May 2, 2024

@grgia I can create a PR to fix this

@grgia grgia assigned DylanDylann and unassigned getusha May 2, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 2, 2024
@grgia
Copy link
Contributor

grgia commented May 2, 2024

@DylanDylann @dragnoir assigning as a regression follow up

@francoisl
Copy link
Contributor

@dragnoir Hi, just checking in - do you think you will you be able to submit a PR for this today?

dragnoir added a commit to dragnoir/App that referenced this issue May 2, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels May 2, 2024
@dragnoir
Copy link
Contributor

dragnoir commented May 2, 2024

@francoisl PR ready

@francoisl francoisl removed the DeployBlockerCash This issue or pull request should block deployment label May 2, 2024
@CortneyOfstad
Copy link
Contributor

PR CPd for staging. Will continue to keep an eye on this 👍

@CortneyOfstad
Copy link
Contributor

Was deployed to production 4 days ago!

@CortneyOfstad
Copy link
Contributor

PR was deployed to production on May 6th — payment is being handled via the main GH here, so this can be closed 👍

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. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants