-
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
QBO – Unable to change preferred exporter in QBO connection #49797
Comments
Triggered auto assignment to @johncschuster ( |
Triggered auto assignment to @Beamanator ( |
👋 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 this is related to #wave-collect - Release 2 |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/pages/workspace/accounting/qbo/export/QuickbooksPreferredExporterConfigurationPage.tsx Lines 56 to 58 in b5a0a29
What changes do you think we should make in order to solve the problem?
We should also check if there are any other such instances for the update. What alternative solutions did you explore? (Optional) |
Proposal updated. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The selected exporter does not stay selected and the exporter is reverted back to the previous one What is the root cause of that problem?This is a Pusher Backend bug, as the Onyx data is updated correctly when we select the second admin, but the Pusher data updates the preferred exporter to the original account, as shown below: Screen.Recording.2024-09-26.at.23.44.40.mp4When investigating the issue, I found another bug, in which we can't select the second admin as preferred exporter: Screen.Recording.2024-09-26.at.23.36.23.movThis bug happened because we don't use optional chaining in App/src/pages/workspace/accounting/qbo/export/QuickbooksPreferredExporterConfigurationPage.tsx Line 57 in b5a0a29
And What changes do you think we should make in order to solve the problem?For the original issue, we should update Backend to not reset the data to the original exporter. For the other bug mentioned, we can add optional chaining to here QuickbooksOnline.updateQuickbooksOnlinePreferredExporter(policyID, {exporter: row.value}, {exporter: qboConfig?.export?.exporter ?? ''}); What alternative solutions did you explore? (Optional) |
Oh dang, thanks for the proposals so far! Anyone know which PR the bug may have come from?? |
Yaaa i was kinda thinking that too ^ |
@shubham1206agra @dangrous @rushatgabhane @aldo-expensify can y'all look at this? |
Investigating... |
I think this is probably due to https://github.com/Expensify/Expensify/issues/431392#issuecomment-2377490529 which I just noticed today - basically I think we're ending up trying to update the export object to |
The exporter is getting encoded and nested in a weird way: This is a duplicate of https://github.com/Expensify/Expensify/issues/431392#issuecomment-2377490529. |
@aldo-expensify This might fix the API call but when I did a fresh connection, I could see the JS error for |
That sounds unrelated. Can you reproduce it in production? |
About that second bug, I'm not sure what is proposed here is the "right" way to fix it: #49797 (comment) If the request to update the exporter fails, the "current value" we revert to could be wrong. The real value may have just been delayed. |
Here's a recording, and it looks like reproducible on Prod too. Screen.Recording.2024-09-27.at.2.46.03.AM.mov |
nice, I think we should work on the right solution with more time, so I would avoid putting it together with the deploy blocker |
Is the API being called in your solution? If you see the recording the API wasn't called at all. Adding optional chaining works as mentioned in my proposal. Screen.Recording.2024-09-27.at.2.47.37.AM.movOn a side note, I can help you review the DeployBlocker PR. |
I want to avoid adding optional chaining just to go around an issue that may require a better solution |
Yeah I can see that. Thanks for clarifying. |
Thanks so much for taking care of this since i had to peace out early yesterday @aldo-expensify 🙏 |
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: v9.0.40-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: https://expensify.testrail.io/index.php?/tests/view/5006859
Email or phone of affected tester (no customers): applausetester+shsb22145@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause Internal Team
Slack conversation:
Action Performed:
Prerequisite
Workspace is connected to QBO
Another Admin is added to the workspace
Expected Result:
The newly selected exporter is displayed with a checkmark
Actual Result:
The selected exporter does not stay selected and the exporter is reverted back to the previous one
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6615731_1727334878461.2024-09-26_10_05_27.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: