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

[WAITING ON CHECKLIST - RUSHAT] [$250] Desktop - Categories - App crashes after importing categories and clicking Got it #48540

Closed
1 of 6 tasks
IuliiaHerets opened this issue Sep 4, 2024 · 28 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 Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 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.29-0
Reproducible in staging?: Y
Reproducible in production?: N
Issue was found when executing this PR: #47827
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch New Expensify desktop app.
  2. Go to workspace settings > Categories.
  3. Click 3-dot menu.
  4. Click Import spreadsheet.
  5. Import the following csv file. (app only crashes with this file)
  6. Map Name, Enabled and GL code.
  7. Click Import.
  8. Click Got it.

Expected Result:

App will not crash.

Actual Result:

App crashes after importing categories and clicking Got it.
This issue is only reproducible on desktop app.

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

0409_1.txt
Bug6592389_1725413369885!--1725413225174.txt
Bug6592389_1725413369824!Independent.-.Multi.Level.tags (1).csv

Bug6592389_1725413369808.20240904_092636.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021831378368788118300
  • Upwork Job ID: 1831378368788118300
  • Last Price Increase: 2024-09-04
  • Automatic offers:
    • nkdengineer | Contributor | 103821693
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @jliexpensify
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

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

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

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

github-actions bot commented Sep 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.

@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

@filip-solecki @rlinoz @rushatgabhane a proper deploy blocker

@mountiny mountiny assigned mountiny and unassigned iwiznia Sep 4, 2024
@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

Lets try to catch the error with parsing the file and show error message to the user that the file is not supported instead of crashing the app

@filip-solecki
Copy link
Contributor

Hi! I am Filip from SWM and I'd like to work on this!

@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

@filip-solecki says this is because the categories are array at first, and the onyx merge causes this error. I have created a web fix to make sure the categories are not empty array but empty object https://github.com/Expensify/Web-Expensify/pull/43372

@mountiny mountiny added the Reviewing Has a PR in review label Sep 4, 2024
@m-natarajan
Copy link

Tester is still able to reproduce

20240905_003743.mp4

@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

@filip-solecki seems like there must be some other root cause for this issue as we are now returning the categories as empty object

Looking for proposals

@mountiny mountiny added External Added to denote the issue can be worked on by a contributor and removed Reviewing Has a PR in review labels Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

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

@melvin-bot melvin-bot bot changed the title Desktop - Categories - App crashes after importing categories and clicking Got it [$250] Desktop - Categories - App crashes after importing categories and clicking Got it Sep 4, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

Current assignee @rushatgabhane is eligible for the External assigner, not assigning anyone new.

@rushatgabhane
Copy link
Member

let's assign @nkdengineer ?

@roryabraham
Copy link
Contributor

The fact that this can be fixed by adding an optional chain operator, and that wasn't automatically detected, suggests to me that we have incorrect types somewhere

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

melvin-bot bot commented Sep 4, 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

mountiny commented Sep 4, 2024

Thanks @nkdengineer what is your eta for the pr?

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Sep 5, 2024
@nkdengineer
Copy link
Contributor

@mountiny The PR is ready.

@rushatgabhane
Copy link
Member

rushatgabhane commented Sep 5, 2024

The fact that this can be fixed by adding an optional chain operator, and that wasn't automatically detected, suggests to me that we have incorrect types somewhere

We're trying to access a value in columns: Record<number, string> using a dynamic key -> columns[columnIndex].

The type is correct. This code is just unsafe in TS. The problem here is that we should ideally have typecheck catch this idk how tho because index is a number

@mountiny mountiny removed the DeployBlockerCash This issue or pull request should block deployment label Sep 5, 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 Sep 5, 2024
@melvin-bot melvin-bot bot changed the title [$250] Desktop - Categories - App crashes after importing categories and clicking Got it [HOLD for payment 2024-09-12] [$250] Desktop - Categories - App crashes after importing categories and clicking Got it Sep 5, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 5, 2024
Copy link

melvin-bot bot commented Sep 5, 2024

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

Copy link

melvin-bot bot commented Sep 5, 2024

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

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

Copy link

melvin-bot bot commented Sep 5, 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:

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

@jliexpensify
Copy link
Contributor

jliexpensify commented Sep 12, 2024

Payment Summary

Upwork job

@jliexpensify
Copy link
Contributor

Paid via Upworks and job closed

@jliexpensify jliexpensify removed the Awaiting Payment Auto-added when associated PR is deployed to production label Sep 12, 2024
@jliexpensify jliexpensify changed the title [HOLD for payment 2024-09-12] [$250] Desktop - Categories - App crashes after importing categories and clicking Got it [WAITING ON CHECKLIST - RUSHAT] [$250] Desktop - Categories - App crashes after importing categories and clicking Got it Sep 12, 2024
@rushatgabhane
Copy link
Member

Hello 👋

I've been overpaid $250 by mistake in another issue.

So please don't pay me for this issue. Thank you for understanding

@jliexpensify
Copy link
Contributor

Cool, all good - will remove this from the summary! Thanks!

@jliexpensify
Copy link
Contributor

@rushatgabhane just waiting on a checklist, if one is needed

@rushatgabhane
Copy link
Member

not needed here. it is covered by existing regression steps

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 Weekly KSv2
Projects
None yet
Development

No branches or pull requests

9 participants