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-11-07] QBO - Syncing is stuck at "Waiting for imported data to load" #49371

Open
6 tasks done
IuliiaHerets opened this issue Sep 18, 2024 · 35 comments
Open
6 tasks done
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Internal Requires API changes or must be handled by Expensify staff Overdue Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 18, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.37-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Accounting.
  3. Connect to QBO.
  4. Enter credential and log in.

Expected Result:

Syncing will be completed without issue.

Actual Result:

Syncing is stuck at "Waiting for imported data to load".
It disappears after reopening Accounting tab.

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

Bug6607107_1726613737077.20240918_055049.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @slafortune
@IuliiaHerets IuliiaHerets added the Bug Something is broken. Auto assigns a BugZero manager. label Sep 18, 2024
Copy link

melvin-bot bot commented Sep 18, 2024

Triggered auto assignment to @slafortune (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 18, 2024
@IuliiaHerets
Copy link
Author

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

@etCoderDysto
Copy link
Contributor

Is there a credential for contributor to connect to QBO?

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment and removed Daily KSv2 labels Sep 18, 2024
Copy link

melvin-bot bot commented Sep 18, 2024

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

@IuliiaHerets
Copy link
Author

Forget to add a DeployBlockerCash label

@izarutskaya
Copy link

This issue reproducible for Xero connection also. Let me know if we need to create a new GH ticket. Thank you

Bug6607542.1726654355222.Xero.Connection.Stuck.mp4

@slafortune
Copy link
Contributor

I was able to successfully connect to SuccessTeam1 - In the video I don't see where you entered the credentials, just selected a company file -

2024-09-18_10-02-07.mp4

@grgia
Copy link
Contributor

grgia commented Sep 18, 2024

I got stuck on waiting for data to load but it loaded on refresh

image

@grgia grgia removed the DeployBlockerCash This issue or pull request should block deployment label Sep 18, 2024
@grgia
Copy link
Contributor

grgia commented Sep 18, 2024

I think we can at the very least demote this for now.

@slafortune slafortune added Daily KSv2 and removed Hourly KSv2 labels Sep 18, 2024
@arosiclair
Copy link
Contributor

I only see these logs for [email protected]. The auto sync failed due to

QBO auto sync error ~~ msg: 'Refresh token is no longer valid, need to renew credentials.' code: '407' class: 'OAuthAuthenticationException'

which doesn't really match the bug report (there was no error it just appeared stuck). That was also from yesterday not today. So it looks like the email in the report is not accurate.

Syncing is stuck at "Waiting for imported data to load".
It disappears after reopening Accounting tab.

This sounds like some sync progress updates were not received. IIRC those don't use reliable updates so that may fix that issue. cc @aldo-expensify

@trjExpensify trjExpensify moved this to Release 2.5: SuiteWorld (Sept 9th) in [#whatsnext] #wave-collect Sep 18, 2024
@aldo-expensify
Copy link
Contributor

This sounds like some sync progress updates were not received. IIRC those don't use reliable updates so that may fix that issue. cc @aldo-expensify

Seems like the jobDone update is the only progress update sent through reliable updates: https://github.com/Expensify/Integration-Server/blob/f0fde768b3ea60545eac564ba367bf09cff67f40/src/expensify/progress/PushOnyxUpdateProgressManager.java#L51-L53

@melvin-bot melvin-bot bot added the Overdue label Sep 20, 2024
@madmax330
Copy link
Contributor

@aldo-expensify @arosiclair can one of you pick this up since you seem to know what's going on?

@melvin-bot melvin-bot bot removed the Overdue label Sep 23, 2024
@arosiclair
Copy link
Contributor

@aldo-expensify I think you're probably best to take it on?

@trjExpensify
Copy link
Contributor

I'm not sure this is necessarily internal,

Cool, if we firm up on that, I'm sure someone from the C+ pool would be willing to do the work if they can.

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Oct 17, 2024

Two things I see for now:

  • When I run the integrations, I don't find any onyxUpdates in the database for the collection policyConnectionSyncProgress_<policyID>. This I think means that the jobDone for some reason is not using reliable updates as I thought, so if you miss it because you close the window it is lost forever.
  • When the integration is stuck with the spinner, if you reload the window, there is not call to ReconnectApp which is what usually brings pending onyx updates. There is only a call to OpenInitialSettingsPage, but this command doesn't load pending updates. I guess this is a problem that any setting page can have.

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Oct 17, 2024

Regarding the jobDone being a reliable update, we had a bug here, fixing here: https://github.com/Expensify/Auth/pull/12801

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Oct 17, 2024

Easy reproduction steps:

  1. Connect QBO to a workspace
  2. Close the tab before the connection finishes syncing
  3. Wait for a minute or more until the connecting syncing has finished
  4. Reopen the tab
  5. You will be left with the spinner showing like it is syncing even if it finished

Why is this happening? because of point 2 here: #49371 (comment)

The PR https://github.com/Expensify/Auth/pull/12801 was deployed and it was a necessary fix, but we still need to do something about commands like OpenInitialSettingsPage not loading missed onyx updates. I'll start a slack convo in the engineering chat after lunch to get some consensus on what to do for this case.

Asked here: https://expensify.slack.com/archives/C03TQ48KC/p1729204325866909

@aldo-expensify
Copy link
Contributor

Seems like the expectation is that ReconnectApp should have been called after reopening the tab, so I'm going to investigate why it is not happening.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Oct 18, 2024
@aldo-expensify
Copy link
Contributor

PR up: #51110 for fixing the missing calls to ReconnectApp.

@abdulrahuman5196 got assigned as reviewer (C+)

@slafortune
Copy link
Contributor

Just deployed to staging

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Oct 31, 2024
@melvin-bot melvin-bot bot changed the title QBO - Syncing is stuck at "Waiting for imported data to load" [HOLD for payment 2024-11-07] QBO - Syncing is stuck at "Waiting for imported data to load" Oct 31, 2024
Copy link

melvin-bot bot commented Oct 31, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 31, 2024
Copy link

melvin-bot bot commented Oct 31, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.55-10 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-11-07. 🎊

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

Copy link

melvin-bot bot commented Oct 31, 2024

@abdulrahuman5196 @slafortune The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@slafortune
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production
  • 2b. Reported on staging (deploy blocker)
  • 2c. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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:

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test Proposal Template
  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Precondition:

Test:

Do we agree 👍 or 👎

@slafortune
Copy link
Contributor

@abdulrahuman5196 can you please complete the checklist?

@abekkala
Copy link
Contributor

abekkala commented Nov 8, 2024

bump @abdulrahuman5196

The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it.

@abdulrahuman5196
Copy link
Contributor

abdulrahuman5196 commented Nov 11, 2024

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production
  • 2b. Reported on staging (deploy blocker)
  • 2c. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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: I don't think we have direct PR regression which caused, more like a case which wasn't found.

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test Proposal Template
  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Precondition:

Test:

  1. Connect QBO to a workspace
  2. Close the tab before the connection finishes syncing
  3. Wait for a minute or more until the connecting syncing has finished
  4. Reopen the tab
  5. You will be left with the spinner showing like it is syncing even if it finished

Do we agree 👍 or 👎

@abekkala @slafortune

@melvin-bot melvin-bot bot added the Overdue label Nov 18, 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. Engineering Internal Requires API changes or must be handled by Expensify staff Overdue Weekly KSv2
Projects
Status: Release 2.5: SuiteWorld (Sept 9th)
Development

No branches or pull requests