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] [HOLD for payment 2024-07-17] Netsuite - Categories copy mentions "Xero settings" instead of "NetSuite" settings #44591

Closed
6 tasks done
lanitochka17 opened this issue Jun 28, 2024 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 28, 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-3.1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Issue found when executing PR #44038

Action Performed:

Precondition:

  • Account is connected to NetSuite (set up from OD)
  1. Go to staging.new.expensify.com
  2. Go to Workspace settings > Categories

Expected Result:

The Categories copy should mention "NetSuite settings"

Actual Result:

The Categories copy should mention "NetSuite settings"

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

Add any screenshot/video evidence

Bug6526876_1719533676797.20240628_081049.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012bfdd3cfbe5588a2
  • Upwork Job ID: 1806537315771441691
  • Last Price Increase: 2024-06-28
Issue OwnerCurrent Issue Owner: @sobitneupane
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

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

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.

@lanitochka17
Copy link
Author

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

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 2

@nyomanjyotisa
Copy link
Contributor

nyomanjyotisa commented Jun 28, 2024

Proposal

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

Categories copy mentions "Xero settings" instead of "NetSuite" settings

What is the root cause of that problem?

{`${translate(isConnectedToQbo ? 'workspace.accounting.qbo' : 'workspace.accounting.xero')} ${translate('workspace.accounting.settings')}`}

this code only handling Xero and Quickbooks, it will always show Xero if not connected to Quickbooks

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

add new const isConnectedToXero on WorkspaceCategoriesPage

const isConnectedToXero = !!policy?.connections?.xero;

change this code to the following code to handle Xero, Quickbooks, and NetSuite

{`${translate(isConnectedToQbo ? 'workspace.accounting.qbo' : isConnectedToXero ? 'workspace.accounting.xero' : 'workspace.accounting.netsuite')} ${translate('workspace.accounting.settings')}`}

Need to update the following too:

{`${translate(isConnectedToQbo ? 'workspace.accounting.qbo' : 'workspace.accounting.xero')} ${translate('workspace.accounting.settings')}`}

{`${translate(isConnectedToQbo ? 'workspace.accounting.qbo' : 'workspace.accounting.xero')} ${translate('workspace.accounting.settings')}`}

let toggleSubtitle = '';
if (isConnectedToQbo) {
toggleSubtitle = `${translate('workspace.categories.needCategoryForExportToIntegration')} ${translate('workspace.accounting.qbo')}.`;
}
if (isConnectedToXero) {
toggleSubtitle = `${translate('workspace.categories.needCategoryForExportToIntegration')} ${translate('workspace.accounting.xero')}.`;
}

What alternative solutions did you explore? (Optional)

create the following reusable function on PolicyUtils and implement it in all codes above

function getConnectionTypeTranslationKey(connections: Connections | undefined): TranslationPaths {
    if (connections?.quickbooksOnline) {
        return 'workspace.accounting.qbo';
    } else if (connections?.xero) {
        return 'workspace.accounting.xero';
    } else {
        return 'workspace.accounting.netsuite';
    }
}

Use it like this:

{`${translate(PolicyUtils.getConnectionTypeTranslationKey(policy?.connections))} ${translate('workspace.accounting.settings')}`}

@robertjchen robertjchen added Daily KSv2 External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels Jun 28, 2024
@melvin-bot melvin-bot bot changed the title Netsuite - Categories copy mentions "Xero settings" instead of "NetSuite" settings [$250] Netsuite - Categories copy mentions "Xero settings" instead of "NetSuite" settings Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

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

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

melvin-bot bot commented Jun 28, 2024

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

@robertjchen robertjchen changed the title [$250] Netsuite - Categories copy mentions "Xero settings" instead of "NetSuite" settings [$125] Netsuite - Categories copy mentions "Xero settings" instead of "NetSuite" settings Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

Upwork job price has been updated to $125

@nyomanjyotisa
Copy link
Contributor

Proposal updated

@mananjadhav
Copy link
Collaborator

mananjadhav commented Jun 28, 2024

@robertjchen This isn’t a deploy blocker. The NetSuite work is in active development. I think this should be added to the NetSuite project scope. We need to fix the hardcoding the way I recently did for Connect button. Wdyt @yuwenmemon @JmillsExpensify

This needs to be fixed for categories, taxes, etc. pages.

Also @nyomanjyotisa we have atleast another 2-3 integrations in progress. We can’t have isConnected key for every connection.

I recently added CONNECTIONS.NAME_USER_FRIENDLY object. We can use that to fix it. But as I said this should be covered within the NetSuite scope, need not be external.

@robertjchen robertjchen removed the External Added to denote the issue can be worked on by a contributor label Jun 28, 2024
@robertjchen
Copy link
Contributor

Got it, that makes sense!

@robertjchen robertjchen changed the title [$125] Netsuite - Categories copy mentions "Xero settings" instead of "NetSuite" settings Netsuite - Categories copy mentions "Xero settings" instead of "NetSuite" settings Jun 28, 2024
@robertjchen robertjchen removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 28, 2024
@mananjadhav
Copy link
Collaborator

I've raised the PR to fix this.

Copy link

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

@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 Netsuite - Categories copy mentions "Xero settings" instead of "NetSuite" settings [HOLD for payment 2024-07-17] Netsuite - Categories copy mentions "Xero settings" instead of "NetSuite" settings 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:

  • @mananjadhav requires payment through NewDot Manual Requests

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 15, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-07-17] Netsuite - Categories copy mentions "Xero settings" instead of "NetSuite" settings [HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] Netsuite - Categories copy mentions "Xero settings" instead of "NetSuite" settings 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:

  • @mananjadhav requires payment through NewDot Manual Requests

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 16, 2024
@mananjadhav
Copy link
Collaborator

This will be paid out centrally so we are good to close this one out.

@melvin-bot melvin-bot bot added the Overdue label Jul 19, 2024
@robertjchen
Copy link
Contributor

thanks!

@melvin-bot melvin-bot bot removed the Overdue label Jul 22, 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 Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

5 participants