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-09-12][$125] Import categories - GL code field shows undefined when imported category does not have GL code #48535

Closed
6 tasks done
IuliiaHerets opened this issue Sep 4, 2024 · 23 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

@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
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Control workspace settings > Categories.
  3. Click 3-dot menu.
  4. Click Import spreadsheet.
  5. Import the following CSV file.
  6. Map Name, Enabled and GL code.
  7. Click Import.
  8. Click on the category that does not have GL code.

Expected Result:

GL code field will be empty.

Actual Result:

GL code field shows undefined.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6592371_1725411660406!Independent.-.Multi.Level.tags.csv

Bug6592374_1725411671983.undefined.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021831645173273110226
  • Upwork Job ID: 1831645173273110226
  • Last Price Increase: 2024-09-05
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @muttmuure
@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 @flodnv (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

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

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

@nkdengineer
Copy link
Contributor

Proposal

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

GL code field shows undefined.

What is the root cause of that problem?

The value of categoriesGLCode?.[containsHeader ? index + 1 : index] here can be undefined and then when we convert the JSON to string, the GL code that we pass to the API is undefined string then BE returns the wrong GL code.

'GL Code': categoriesGLCodeColumn !== -1 ? categoriesGLCode?.[containsHeader ? index + 1 : index] : '',

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

We should fall back to empty string here

'GL Code': categoriesGLCodeColumn !== -1 ? categoriesGLCode?.[containsHeader ? index + 1 : index] ?? '' : '',

'GL Code': categoriesGLCodeColumn !== -1 ? categoriesGLCode?.[containsHeader ? index + 1 : index] : '',

What alternative solutions did you explore? (Optional)

@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

cc @filip-solecki @rushatgabhane @rlinoz coming from the import spreadsheet PR

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

mountiny commented Sep 4, 2024

This indeed feels like a blocker for the feature, not demoting. Added @rushatgabhane as he reviewed the original PR #47827

@filip-solecki
Copy link
Contributor

@nkdengineer's proposal looks good

@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

@nkdengineer are you able to raise the PR soon? thanks!

@nkdengineer
Copy link
Contributor

@mountiny sure, will raise the PR soon.

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

@mountiny The PR is here.

@mountiny mountiny added External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment labels Sep 5, 2024
@melvin-bot melvin-bot bot changed the title Import categories - GL code field shows undefined when imported category does not have GL code [$250] Import categories - GL code field shows undefined when imported category does not have GL code Sep 5, 2024
Copy link

melvin-bot bot commented Sep 5, 2024

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

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

melvin-bot bot commented Sep 5, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 5, 2024
@mountiny mountiny changed the title [$250] Import categories - GL code field shows undefined when imported category does not have GL code [$125] Import categories - GL code field shows undefined when imported category does not have GL code Sep 5, 2024
@mountiny mountiny removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 5, 2024
Copy link

melvin-bot bot commented Sep 5, 2024

Upwork job price has been updated to $125

@mountiny
Copy link
Contributor

mountiny commented Sep 5, 2024

this is super minor fix of a deploy blocker so reducing the bounty to reflect the complexity.

Payment summary:

  • $125 to @nkdengineer
  • No payment to Rushat as he will be paid on the project basis

Copy link

melvin-bot bot commented Sep 12, 2024

@rushatgabhane, @mountiny, @muttmuure, @nkdengineer Whoops! This issue is 2 days overdue. Let's get this updated quick!

@rlinoz
Copy link
Contributor

rlinoz commented Sep 12, 2024

This is in prod already #48539 (comment)

Just waiting payment date, let me update the title.

Oh, payment is actually due today?

@rlinoz rlinoz added Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review labels Sep 12, 2024
@melvin-bot melvin-bot bot added the Overdue label Sep 12, 2024
@rlinoz rlinoz changed the title [$125] Import categories - GL code field shows undefined when imported category does not have GL code [Awaiting Payment 2024-09-12][$125] Import categories - GL code field shows undefined when imported category does not have GL code Sep 12, 2024
@mountiny mountiny changed the title [Awaiting Payment 2024-09-12][$125] Import categories - GL code field shows undefined when imported category does not have GL code [HOLD for payment 2024-09-12][$125] Import categories - GL code field shows undefined when imported category does not have GL code Sep 12, 2024
Copy link

melvin-bot bot commented Sep 16, 2024

@rushatgabhane, @mountiny, @muttmuure, @nkdengineer 10 days overdue. I'm getting more depressed than Marvin.

@muttmuure
Copy link
Contributor

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Overdue Daily KSv2 labels Sep 17, 2024
Copy link

melvin-bot bot commented Sep 24, 2024

@rushatgabhane, @mountiny, @muttmuure, @nkdengineer Huh... This is 4 days overdue. Who can take care of this?

@nkdengineer
Copy link
Contributor

@muttmuure I've accepted the invitation

@muttmuure
Copy link
Contributor

Offer sent

@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2024
@nkdengineer
Copy link
Contributor

@muttmuure Accepted thx

@muttmuure
Copy link
Contributor

Paid

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