-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[$250] QBO - Connection options are missing in QBO connection #46445
Comments
Triggered auto assignment to @twisterdotcom ( |
Triggered auto assignment to @tgolen ( |
👋 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:
|
We think that this bug might be related to #wave-collect - Release 1 |
@kosmydel @hungvu193 @arosiclair Is it possible this is related to #44733 ? |
I don't think so. Those changes should only affect report exports. |
Not a web-e blocker as discussed here |
Sounds like @yuwenmemon might know what's happened here and he will be looking into it. |
Weird, not able to reproduce this in Dev |
Oh I see it now. @NikkiWines it looks like this is because we initially set the |
I think this will need to be fixed via the IS. |
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. |
@yuwenmemon I can reproduce this issue. If we show a loading when credentials are not empty and data is empty, it will load infinitely. So I think in this case, if we don't update the BE, we should change the FE behavior for QBO. If
We should let users know that they need to do another sync ( or we can do it inside PolicyAccount with an useEffect). |
I don't think we want to ask them to do a manual sync just after connecting for the first time. That seems like a bad design, so can we trigger that if necessary? |
Cool. Agreed. I'll post a proposal based on my idea above |
not overdue, waiting for proposals |
While working on proposal, I realized this issue was fixed. Is there anyone here can reproduce it? 😂 |
Don't you have to simulate a crappy network and delay the |
In this comment, I'm seeing Yuwen is debugging in his local BE env, I'm not sure if I can replicate with only my local FE setup 😨 |
@hungvu193 I'm happy to work with you to test any solution you drum up with my debugger setup. |
Sure thing. But I wonder if anyone can still reproduce this issue? I can reproduce it easily a few days ago. However, I can't reproduce it now. |
i'll try reproducing in few hours today |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
was not able to reproduce the options came as soon as sync completed (staging v9.0.46-4) Screen.Recording.2024-10-09.at.10.57.05.PM.mov |
@trjExpensify can you request QA to retest this one? If they can't reproduce then I think we can close this one |
I can still reproduce this (notice the moment when I move the mouse a lot - you can still see a split second where we have the connection options missing but the sync has "finished"): Kapture.2024-10-10.at.17.36.02.mp4Like I said in my earlier post, I'm happy to work with anyone who has a proposal / branch to test if their solution solves what I'm seeing. |
but... is that a bug? I would be concern if the menu options don't ever appear.. but if they have such a small delay 🤷 |
I have something kind of related here: #49372, but opposite? Opposite because the menu options appear too soon. I think the problem in my issue is that we show the options but we still load some data after... so if you are quick in changing something it may get reverted. |
Well, if something were to happen where, for whatever reason, the Push notification came from the IS for the job to be done but the data from the sync did not, it would be more severe. I agree, though; the small flash is not the worst bug in the world. However, it's still a bug nevertheless. |
ProposalPlease re-state the problem that we are trying to solve in this issue.QBO - Connection options are missing in QBO connection What is the root cause of that problem?As described above, the RCA of this issue is App/src/pages/workspace/accounting/PolicyAccountingPage.tsx Lines 333 to 335 in abdfb72
What changes do you think we should make in order to solve the problem?This is QBO case-specific, so we can add a condition in our Let's update function isConnectionInProgress(connectionSyncProgress: OnyxEntry<PolicyConnectionSyncProgress>, policy?: OnyxEntry<Policy>): boolean {
if (!policy) {
return false;
}
const qboConnection = policy?.connections?.quickbooksOnline;
const lastSyncProgressDate = parseISO(connectionSyncProgress?.timestamp ?? '');
return (
(!!connectionSyncProgress?.stageInProgress &&
(connectionSyncProgress.stageInProgress !== CONST.POLICY.CONNECTIONS.SYNC_STAGE_NAME.JOB_DONE || !policy?.connections?.[connectionSyncProgress.connectionName]) &&
isValid(lastSyncProgressDate) &&
differenceInMinutes(new Date(), lastSyncProgressDate) < CONST.POLICY.CONNECTIONS.SYNC_STAGE_TIMEOUT_MINUTES) ||
// If qboConnection?.data is null and !!qboConnection?.config?.credentials is true, then it's still in progress.
(!!qboConnection && !qboConnection?.data && !!qboConnection?.config?.credentials)
);
} What alternative solutions did you explore? (Optional)N/A ResultScreen.Recording.2024-10-11.at.16.52.59.mov |
Here's the test branch: https://github.com/hungvu193/App/tree/fix-qbo-syncing |
@hungvu193 have you been able to reproduce #46445 (comment) for me the options are visible before the sync is completed 🤔 Screen.Recording.2024-10-12.at.5.00.50.PM.mov |
Yeah I can still reproduce, you can try with brand new workspace. |
Same with new workspace and even new account. options come before "last synced date" Screen.Recording.2024-10-12.at.10.40.48.PM.mov |
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.14-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
Action Performed:
Expected Result:
QBO options (Import, Export, Card reconciliation and Advanced options) are displayed
Actual Result:
QBO options (Import, Export, Card reconciliation, and Advanced options) are not displayed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6556582_1722281658856.2024-07-29_22_24_02.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @ishpaul777Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: