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-08-05] [$250] Sage Intacct - Workspace in "Reuse existing connection" list has different workspace avatar color #45848

Closed
6 tasks
m-natarajan opened this issue Jul 20, 2024 · 24 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 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Jul 20, 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.10-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:

Action Performed:

Precondition:

  • User has a few workspaces.
  • One of the workspaces is connected to Sage Intacct.
  • The workspace which is connected to Sage Intacct has default workspace avatar.
  1. Go to staging.new.expensify.com
  2. Go to another workspace that is not connected to Sage Intacct.
  3. Go to Accounting.
  4. Tap Connect next to Sage Intacct.
  5. Select Reuse existing connection.

Expected Result:

The workspace in "Reuse existing connection" list will have the correct workspace avatar with background color.

Actual Result:

The workspace in "Reuse existing connection" list has different workspace avatar compared to the actual workspace avatar with always blue background color surrounding the letter "A".

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

Bug6548213_1721495024784!Screenshot_2024-07-21_at_01 00 17

Bug6548213_1721494812873.20240721_001045.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0140511183d3b4ac7e
  • Upwork Job ID: 1815697022094043995
  • Last Price Increase: 2024-07-23
  • Automatic offers:
    • ishpaul777 | Reviewer | 103247884
    • gijoe0295 | Contributor | 103247885
Issue OwnerCurrent Issue Owner: @bfitzexpensify
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 20, 2024
Copy link

melvin-bot bot commented Jul 20, 2024

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

@m-natarajan
Copy link
Author

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

@m-natarajan
Copy link
Author

We think that this bug might be related to #vip-vsb

@gijoe0295
Copy link
Contributor

gijoe0295 commented Jul 20, 2024

Proposal

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

Default workspace avatar mismatch in existing connections page.

What is the root cause of that problem?

We're missing avatarID causing the avatar background to be computed incorrectly:

title: policy.name,
key: policy.id,
icon: policy.avatarURL ? policy.avatarURL : ReportUtils.getDefaultWorkspaceAvatar(policy.name),
iconType: policy.avatarURL ? CONST.ICON_TYPE_AVATAR : CONST.ICON_TYPE_WORKSPACE,
description: date ? translate('workspace.common.lastSyncDate', CONST.POLICY.CONNECTIONS.NAME_USER_FRIENDLY.intacct, date) : translate('workspace.accounting.intacct'),

if (isWorkspace) {
iconColors = StyleUtils.getDefaultWorkspaceAvatarColor(avatarID?.toString() ?? '');

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

Add avatarID as policy.id for the above menuItems.

@melvin-bot melvin-bot bot added the Overdue label Jul 22, 2024
@bfitzexpensify bfitzexpensify added the External Added to denote the issue can be worked on by a contributor label Jul 23, 2024
@melvin-bot melvin-bot bot changed the title Sage Intacct - Workspace in "Reuse existing connection" list has different workspace avatar color [$250] Sage Intacct - Workspace in "Reuse existing connection" list has different workspace avatar color Jul 23, 2024
Copy link

melvin-bot bot commented Jul 23, 2024

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

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

melvin-bot bot commented Jul 23, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Jul 23, 2024
@ishpaul777
Copy link
Contributor

reviewing 👀

@ishpaul777
Copy link
Contributor

ishpaul777 commented Jul 23, 2024

@m-natarajan @bfitzexpensify Do we have any testing credentials for sage intacct integration or steps to to have a test acccount ?

@gijoe0295
Copy link
Contributor

For me, I hard coded because as elaborated in my proposal, root cause is not related to data:

  1. Navigate to ExistingConnectionsPage on press Connect:

Navigation.navigate(ROUTES.POLICY_ACCOUNTING_NETSUITE_EXISTING_CONNECTIONS.getRoute(policyID));
  1. Return any policy data in this function:

function getAdminPoliciesConnectedToSageIntacct(): Policy[] {

@ishpaul777
Copy link
Contributor

it makes sense 👍 Thanks @gijoe0295.


Proposal from @gijoe0295 LGTM!

It appears we have the same issue in netsuite existing-connections page lets fix it in the PR also

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Jul 24, 2024

Triggered auto assignment to @carlosmiceli, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

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

melvin-bot bot commented Jul 24, 2024

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

Offer link
Upwork job

Copy link

melvin-bot bot commented Jul 24, 2024

📣 @gijoe0295 🎉 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 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 25, 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 Jul 29, 2024
@melvin-bot melvin-bot bot changed the title [$250] Sage Intacct - Workspace in "Reuse existing connection" list has different workspace avatar color [HOLD for payment 2024-08-05] [$250] Sage Intacct - Workspace in "Reuse existing connection" list has different workspace avatar color Jul 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 29, 2024
Copy link

melvin-bot bot commented Jul 29, 2024

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

Copy link

melvin-bot bot commented Jul 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.13-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-08-05. 🎊

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

Copy link

melvin-bot bot commented Jul 29, 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:

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 5, 2024
@gijoe0295
Copy link
Contributor

@bfitzexpensify @ishpaul777 It's payment due.

@bfitzexpensify
Copy link
Contributor

Hey @gijoe0295 - are you seeing anything strange with the contract on your end? When I attempt to close and pay it out, I am seeing this error:

image

@gijoe0295
Copy link
Contributor

@bfitzexpensify There was no problem on my side. I received the payment.

Screenshot 2024-08-07 at 21 21 56

@bfitzexpensify
Copy link
Contributor

Great, thanks for confirming. @ishpaul777 if you can get the BZ checklist complete I'll finalise the C+ payout too

@melvin-bot melvin-bot bot added the Overdue label Aug 9, 2024
@ishpaul777
Copy link
Contributor

  • [@ishpaul777] The PR that introduced the bug has been identified. Link to the PR: Connect to sage intacct #43661
  • [@ishpaul777] 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: https://github.com/Expensify/App/pull/43661/files#r1712681378
  • [@ishpaul777] 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: Not required
  • [@ishpaul777] Determine if we should create a regression test for this bug. No this was minor issue because of a missing prop., no need for regression test.
  • [@ishpaul777] 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. N/A

@bfitzexpensify
Copy link
Contributor

Thanks @ishpaul777 - offer sent.

@melvin-bot melvin-bot bot removed the Overdue label Aug 12, 2024
@ishpaul777
Copy link
Contributor

Accepted offer! Thank you

@bfitzexpensify
Copy link
Contributor

Great - all paid out. Thanks everyone!

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 External Added to denote the issue can be worked on by a contributor
Projects
Archived in project
Development

No branches or pull requests

5 participants