-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 |
Thanks so much for taking care of this since i had to peace out early yesterday @aldo-expensify 🙏 |
How's this one going, @aldo-expensify? |
@johncschuster I believe the PR was deployed to fix the Deploy blocker. I had helped with the PR review, and there would be a payout for me. Can you please update the payment summary for this one? Also @aldo-expensify do you think it's worth solving the FE error in this issue? |
The deploy blocker (this issue) was solved by this PR: #49818 @mananjadhav reviewed so we should pay While we worked on that, another bug was found: #49797 (comment), but I would recommend creating a new clean issue for that with reproduction steps.
Yes, but I think we should open a new issue to avoid confusions. I'm not really sure about what kind of solution are we looking for... it sounds like we should maybe lock the inputs until we have received the data or something like that. |
@mananjadhav the issue where the setting value is not available yet may be really the same root cause for this issue here: #49372 . In that issue, I understand that the setting reverts because of some updates that arrive late. |
Could be related. I can check that one if you'd like. |
@johncschuster @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! |
@johncschuster the PR was deployed 2 weeks ago, we need to process @mananjadhav 's C+ payment. |
Payment Summary: Contributor+: @mananjadhav due $250 via NewDot |
Sorry folks! I action all my payment issues every day by filtering my assignments by |
Thanks @johncschuster for the help here. |
$250 approved for @mananjadhav |
@aldo-expensify / @mananjadhav can you provide a regression test step list if we need one? |
I don't think we need a new one. This bug was caught while running the existing test: https://expensify.testrail.io/index.php?/tests/view/5006859 |
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: 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): [email protected]
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: