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-11-26] [HOLD for payment 2024-11-22] [$50] Workspace- App crashes when submitting an expense in OD after creating a new Workspace #52542

Closed
2 of 8 tasks
IuliiaHerets opened this issue Nov 14, 2024 · 26 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Nov 14, 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: v9.0.62-1
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+shsb22cq11@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

Prerequisite
Make sure you are signed in the same account in both ND and OD
You already have an existing workspace and an existing expense submitted

  1. Navigate to OD
  2. Create a new collect workspace
  3. Navigate to expenses tab > Create a new manual expense > Finish the flow
  4. Navigate to the tab where you are signed in ND

Expected Result:

App does not crash and the expense is submitted successfully

Actual Result:

App crashes

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

1411_1.txt

Bug6665016_1731578815373.2024-11-14_12_36_14.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021857012145307783614
  • Upwork Job ID: 1857012145307783614
  • Last Price Increase: 2024-11-14
  • Automatic offers:
    • nkdengineer | Contributor | 104896419
Issue OwnerCurrent Issue Owner: @greg-schroeder
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Nov 14, 2024
Copy link

melvin-bot bot commented Nov 14, 2024

Triggered auto assignment to @greg-schroeder (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 Nov 14, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Nov 14, 2024
Copy link

melvin-bot bot commented Nov 14, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Nov 14, 2024
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.

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Nov 14, 2024
@melvin-bot melvin-bot bot changed the title Workspace- App crashes when submitting an expense in OD after creating a new Workspace [$250] Workspace- App crashes when submitting an expense in OD after creating a new Workspace Nov 14, 2024
Copy link

melvin-bot bot commented Nov 14, 2024

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

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

melvin-bot bot commented Nov 14, 2024

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

@mountiny
Copy link
Contributor

$50 For identifying the offending pr

@mountiny mountiny changed the title [$250] Workspace- App crashes when submitting an expense in OD after creating a new Workspace [$50] Workspace- App crashes when submitting an expense in OD after creating a new Workspace Nov 14, 2024
Copy link

melvin-bot bot commented Nov 14, 2024

Upwork job price has been updated to $50

@nkdengineer
Copy link
Contributor

@mountiny It comes from here.

@nkdengineer
Copy link
Contributor

nkdengineer commented Nov 14, 2024

The report can be undefined. We shouldn't cast the type Report[] and add a safer check when getting data from the report. I can raise a quick fix for this.

const allReports = Object.values(ReportConnection.getAllReports() ?? {});
    const potentialReports = allReports.filter((r) => r?.ownerAccountID === currentUserAccountID && (r?.stateNum ?? 0) <= 1 && r?.policyID === report.policyID);
    return potentialReports.some(
        (potentialReport) => hasViolations(potentialReport.reportID, transactionViolations) || hasWarningTypeViolations(potentialReport?.reportID, transactionViolations),
    );

App/src/libs/ReportUtils.ts

Lines 6353 to 6355 in 75dd17a

const allReports = Object.values(ReportConnection.getAllReports() ?? {}) as Report[];
const potentialReports = allReports.filter((r) => r.ownerAccountID === currentUserAccountID && (r.stateNum ?? 0) <= 1 && r.policyID === report.policyID);
return potentialReports.some(

@mountiny
Copy link
Contributor

@nkdengineer Sounds good, thanks!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 14, 2024
Copy link

melvin-bot bot commented Nov 14, 2024

📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@mountiny
Copy link
Contributor

Plot twist, @allgandalf already has PR to fix this up https://expensify.enterprise.slack.com/archives/C01GTK53T8Q/p1731582509875719?thread_ts=1731581014.860089&channel=C01GTK53T8Q&message_ts=1731582509.875719

Copy link

melvin-bot bot commented Nov 14, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@mountiny
Copy link
Contributor

Assigning @iwiznia was he did lots of work on the linked pr

Copy link

melvin-bot bot commented Nov 14, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@mountiny mountiny removed the DeployBlockerCash This issue or pull request should block deployment label Nov 14, 2024
@mountiny
Copy link
Contributor

PR was CPed, qa will test that

@nkdengineer
Copy link
Contributor

@mountiny Will I receive $50 for offending PR?

@mountiny
Copy link
Contributor

Will I receive $50 for offending PR?

I think this is a thin line because the fix was already at work before you identified the PR, and in these cases, we usually do not compensate. I hope that is fine with you

@nkdengineer
Copy link
Contributor

Thanks, no problem.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 15, 2024
@melvin-bot melvin-bot bot changed the title [$50] Workspace- App crashes when submitting an expense in OD after creating a new Workspace [HOLD for payment 2024-11-22] [$50] Workspace- App crashes when submitting an expense in OD after creating a new Workspace Nov 15, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 15, 2024
Copy link

melvin-bot bot commented Nov 15, 2024

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

Copy link

melvin-bot bot commented Nov 15, 2024

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

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

Copy link

melvin-bot bot commented Nov 15, 2024

@fedirjh @greg-schroeder @fedirjh The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@allgandalf
Copy link
Contributor

Let's close this one, it was a deploy blocker.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Nov 19, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-11-22] [$50] Workspace- App crashes when submitting an expense in OD after creating a new Workspace [HOLD for payment 2024-11-26] [HOLD for payment 2024-11-22] [$50] Workspace- App crashes when submitting an expense in OD after creating a new Workspace Nov 19, 2024
Copy link

melvin-bot bot commented Nov 19, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.63-3 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-11-26. 🎊

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

Copy link

melvin-bot bot commented Nov 19, 2024

@fedirjh @greg-schroeder @fedirjh The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

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

No branches or pull requests

7 participants