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-06-03] [QBO] Not all default settings & accounts are selected when establishing the connection to QBO #41046

Closed
6 tasks done
trjExpensify opened this issue Apr 26, 2024 · 33 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

Comments

@trjExpensify
Copy link
Contributor

trjExpensify commented Apr 26, 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: v1.4.66-1
Reproducible in staging?: Y
Reproducible in production?:
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: @trjExpensify
Slack conversation: https://expensify.slack.com/archives/C036QM0SLJK/p1714060188157459?thread_ts=1714057353.559839&cid=C036QM0SLJK & https://expensify.slack.com/archives/C036QM0SLJK/p1714091531288649?thread_ts=1713799261.297609&cid=C036QM0SLJK

Action Performed:

  1. Connect to QBO
  2. Go to Export
  3. Observe not all settings are selected by default
  4. Choose an export method for, say, company card export
  5. Observe the account selection is not selected

Expected Result:

  1. The following export settings should also be set by default when making a connection to QBO:

Export page

  • Preferred exporter = [policyOwner]
  • Date = Export date
  • Export out of pocket expenses as =
    • Export as = Vendor bill
    • Accounts payable = [first applicable account in the list is selected] Note: This select list appears to be completely blank right now, let's fix that
  • Export invoices as = [first applicable account in the list is selected]
  • Export company cards as =
    • Export as = Credit card
    • Account = [first applicable account in the list is selected]
  1. Then when choosing alternative export options, let's make sure the first applicable account in the list is selected as well:

"Export out of pocket expenses as" alt settings

  • Export as = Journal entry

  • Accounts payable = [first applicable account in the list is selected]

  • Export as = Check

  • Accounts payable = [first applicable account in the list is selected]

"Export company cards as" alt settings

  • Export as = Debit card

  • Account = [first applicable account in the list is selected]

  • Export as = Vendor bill

  • Accounts payable = [first applicable account in the list is selected]

  • Default vendor (if enabled, disabled by default)

    • Vendor = [first applicable account in the list is selected]
  1. Let's make sure we apply these changes on the "Advanced" page as well where applicable:
  • Sync reimbursed reports (setting should be toggled on by default) =
    • QuickBooks bill payment account = [first applicable account in the list is selected]
    • QuickBooks invoice collections account = [first applicable account in the list is selected]
  1. When someone changes a configuration setting (i.e updates exporting from Credit card to Vendor bill, make sure the value in the push input for the associated account selection is also updated along with the push label change. I.e
  • Export as = Credit card

  • Account = Amex Card Account

  • Export as = Vendor bill

  • Accounts payable = [first applicable account in the vendor list is selected]

Actual Result:

  1. Only the value in the Preferred exporter list looks to be selected by default on the export settings page
  2. When choosing an export method (i.e Credit Card) the first value in the sub-account that's revealed is not selected
  3. Sync reimbursed reports is not enabled by default on the Advanced page, and the two associated accounts with that setting aren't selected by default either
  4. Previously selected values are not cleared from the push input as the push label updates

Workaround:

Yes, they can select values and change values.

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

2024-04-26_01-51-56.mp4

View all open jobs on GitHub

CC: @hayata-suenaga @aldo-expensify @s77rt @teneeto @narefyev91 @zanyrenney

Issue OwnerCurrent Issue Owner: @trjExpensify
@trjExpensify trjExpensify added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 26, 2024
Copy link

melvin-bot bot commented Apr 26, 2024

Current assignee @trjExpensify is eligible for the Bug assigner, not assigning anyone new.

@aldo-expensify
Copy link
Contributor

@aldo-expensify
Copy link
Contributor

Created draft PR for the integration server to select the default values during the first import: https://github.com/Expensify/Integration-Server/pull/7882

Copy link

melvin-bot bot commented Apr 29, 2024

@trjExpensify, @s77rt Whoops! This issue is 2 days overdue. Let's get this updated quick!

@trjExpensify
Copy link
Contributor Author

Whoops! We need to assign Aldo here, he's actively working on PRs to address these. :)

@aldo-expensify
Copy link
Contributor

For choosing the defaults, what I did is:

  1. Connect a QBO to a policy in OldDot
  2. The configuration modal opens automatically after.
  3. Save the configuration modal without touching it

The configuration at this point is what I used as a reference for the default in the QBO flow from NewDot. Do you think that is correct?

@trjExpensify
Copy link
Contributor Author

Okay, a few things just testing on staging with these changes:

  1. None of the export settings have been set:
image image
  1. There's now some odd label name issue on the Date field in the export settings:
image
  1. We aren't showing Chart of Accounts as Imported by default:
image
  1. We've enabled Classes and Customers & Projects (which tbf, is like OldDot, so fine for now) but Tags isn't being added to the LHN of the workspace settings and I can't see them imported.
image

That might have something to do with the infinite spinner and currency crash I'm running into when establishing the connection.

@trjExpensify
Copy link
Contributor Author

^^ working theory on the above is that this PR will fix them: #41155

@melvin-bot melvin-bot bot added the Overdue label May 3, 2024
@aldo-expensify
Copy link
Contributor

Haven't investigated this again. no updates

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 4, 2024
Copy link

melvin-bot bot commented May 7, 2024

@trjExpensify, @s77rt, @aldo-expensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@trjExpensify
Copy link
Contributor Author

What's the plan? Wait for the other PRs to hit staging and re-test?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 7, 2024
@aldo-expensify
Copy link
Contributor

Can we retest this and summarize what is left to fix? I think some of the things mentioned in this issue must have been fixed, right?

@melvin-bot melvin-bot bot removed the Overdue label May 10, 2024
@trjExpensify
Copy link
Contributor Author

Sure!

  1. Credit card Account is not being selected by default
image
  1. Clicking the Account row navigates to a Default vendor page not Account page to select applicable credit card accounts:
image

(Same goes for if you switch to Debit card)

  1. Selecting Vendor bill for company card export has Default vendor toggled on by default, when it shouldn't. The row is also bold for some reason?
image

Note: when you do toggle Default vendor the first vendor in the list of vendors should be selected

Copy link

melvin-bot bot commented May 10, 2024

@trjExpensify @s77rt @aldo-expensify this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented May 13, 2024

Selecting Vendor bill for company card export has Default vendor toggled on by default, when it shouldn't. The row is also bold for some reason?
Let me check on this. If this is a front end issue, I can handle it with the above PR. If this is not, I gonna ping Aldo. Otherwise, I'll handle these remaining issues myself so that Aldo can focus on the remaining QBO backend issue once he comes back from fixing the performance fire. 😄

I checked on this, and the value of config.autoCreateVendor is true when connected to accounting software. I think this is a backend issue.

@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented May 13, 2024

The default value is set to true in the Integration Server. I think we made a mistake in this PR for the default value of autoCreateVendor.

https://github.com/Expensify/Integration-Server/blob/6053b252a5c9d33b8e1d06b38d36f69f8b17df51/src/expensify/beans/expensify/policy/integration/quickbooksonline/QuickbooksOnlineConfiguration.java#L47

I'll make a PR to fix this.
-> Update: opened an integration server PR

@trjExpensify trjExpensify moved this from Release 1: Spring 2024 (May) to Release 1.5: XeroCon 2024 (June 12th) in [#whatsnext] #wave-collect May 14, 2024
@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented May 16, 2024

Once this PR hits production, I gonna test on staging to check if all default values are set correctly and then if it tests well, I'll close this issue

@trjExpensify
Copy link
Contributor Author

Yep, sounds good. Would be good to know how close we are!

@hayata-suenaga
Copy link
Contributor

the PR wasn't been deployed yet because of the freeze. I think the fire issue has been fixed, and once deployed, I'll test this 👍

@trjExpensify
Copy link
Contributor Author

#42102 is deployed to staging.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 27, 2024
@melvin-bot melvin-bot bot changed the title [QBO] Not all default settings & accounts are selected when establishing the connection to QBO [HOLD for payment 2024-06-03] [QBO] Not all default settings & accounts are selected when establishing the connection to QBO May 27, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 27, 2024
Copy link

melvin-bot bot commented May 27, 2024

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

Copy link

melvin-bot bot commented May 27, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.75-1 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-06-03. 🎊

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

  • @s77rt requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented May 27, 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:

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

@hayata-suenaga
Copy link
Contributor

tested well for me

test.1.mov

@hayata-suenaga
Copy link
Contributor

We keep this issue open to handle the payment for @s77tr for this App PR.

@s77rt
Copy link
Contributor

s77rt commented May 29, 2024

  • The PR that introduced the bug has been identified: I think this existed from the start. I found this PR Fix QBO config types + fix inputs in config pages #41463 that changed the navigation logic but not the real culprit
  • The offending PR has been commented on: n/a
  • A discussion in #expensify-bugs has been started: n/a
  • Determine if we should create a regression test for this bug: No

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 2, 2024
Copy link

melvin-bot bot commented Jun 3, 2024

Payment Summary

Upwork Job

  • ROLE: @s77rt paid $(AMOUNT) via Upwork (LINK)

BugZero Checklist (@trjExpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@trjExpensify
Copy link
Contributor Author

Payment summary as follows:

  • $250 to @s77rt for the C+ review

Offer sent!

@s77rt
Copy link
Contributor

s77rt commented Jun 3, 2024

@trjExpensify Accepted! Thanks!

@trjExpensify
Copy link
Contributor Author

Paid. Closing!

@github-project-automation github-project-automation bot moved this from Release 1.5: XeroCon 2024 (June 12th) to Done in [#whatsnext] #wave-collect Jun 3, 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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

4 participants