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

[$250] LHN - RBR is missing from the report when it fails to export to QBO #53924

Open
2 of 8 tasks
IuliiaHerets opened this issue Dec 11, 2024 · 41 comments
Open
2 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Dec 11, 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.74-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5324684&group_by=cases:section_id&group_id=309135&group_order=asc
Issue reported by: Applause Internal Team

Action Performed:

  1. https://staging.new.expensify.com/
  2. Log in with a new Gmail account
  3. Click on FAB - New workspace
  4. Enable "Accounting" in the "More features" page.
  5. Navigate to "Accounting"
  6. Connect to QBO
  7. Wait for the sync to finish (refresh the browser if it's stuck at importing data)
  8. Navigate to the workspace chat
  9. Submit a manual expense with any amount, merchant, and category
  10. Pay the expense "elsewhere"
  11. Open the expense
  12. Click on "Export to QuickBooks Online"
  13. Wait a minute and refresh the browser

Expected Result:

RBR should be visible.

Actual Result:

RBR is missing from the report when it fails to export to QBO.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6690691_1733905188180!Capture

Bug6690691_1733905188166.bandicam_2024-12-11_09-04-56-770.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021866980041596226997
  • Upwork Job ID: 1866980041596226997
  • Last Price Increase: 2025-01-01
  • Automatic offers:
    • DylanDylann | Reviewer | 105609003
Issue OwnerCurrent Issue Owner: @thesahindia
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 11, 2024
Copy link

melvin-bot bot commented Dec 11, 2024

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

@joekaufmanexpensify
Copy link
Contributor

Reproduced

@joekaufmanexpensify joekaufmanexpensify added the External Added to denote the issue can be worked on by a contributor label Dec 11, 2024
@melvin-bot melvin-bot bot changed the title LHN - RBR is missing from the report when it fails to export to QBO [$250] LHN - RBR is missing from the report when it fails to export to QBO Dec 11, 2024
Copy link

melvin-bot bot commented Dec 11, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021866980041596226997

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 11, 2024
Copy link

melvin-bot bot commented Dec 11, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

@joekaufmanexpensify
Copy link
Contributor

cc @arosiclair as I see you originally implemented this

@arosiclair arosiclair self-assigned this Dec 12, 2024
@arosiclair
Copy link
Contributor

I'll manage this. I might take it internal if I get the cycles.

@joekaufmanexpensify
Copy link
Contributor

TY!

Copy link

melvin-bot bot commented Dec 16, 2024

@arosiclair, @joekaufmanexpensify, @thesahindia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Dec 16, 2024
@truph01
Copy link
Contributor

truph01 commented Dec 16, 2024

I cannot trigger the error "failed to export the report to QuickBooks Online. @joekaufmanexpensify Could you give me a trick to reproduce it, please? Thanks

@joekaufmanexpensify
Copy link
Contributor

@truph01 did you follow the steps in OP of the issue? I had no issue reproducing it with those steps.

@garrettmknight garrettmknight moved this to Bugs and Follow Up Issues in [#whatsnext] #expense Dec 17, 2024
Copy link

melvin-bot bot commented Dec 18, 2024

@arosiclair, @joekaufmanexpensify, @thesahindia Huh... This is 4 days overdue. Who can take care of this?

@truph01
Copy link
Contributor

truph01 commented Dec 18, 2024

@joekaufmanexpensify Yes, I followed the steps and got stuck on the screen below, where the message remains as "started exporting this report to QuickBooks Online..." instead of updating to "failed to export this report..." as mentioned by the OP:

image

@joekaufmanexpensify
Copy link
Contributor

Interesting. Even after refreshing the browser?

Copy link

melvin-bot bot commented Dec 18, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@truph01
Copy link
Contributor

truph01 commented Dec 18, 2024

Interesting. Even after refreshing the browser?

Yes

Copy link

melvin-bot bot commented Dec 20, 2024

@arosiclair, @joekaufmanexpensify, @thesahindia 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@joekaufmanexpensify
Copy link
Contributor

Got it. I'll try reproducing again to make sure I still can.

@joekaufmanexpensify
Copy link
Contributor

I just tried again and could still reproduce it. @truph01 after exporting, try syncing the QBO connection to see if that triggers the error on the report.

@joekaufmanexpensify
Copy link
Contributor

Moving this to weekly for now as I am OOO after today through EOY. If this needs any BZ urgently before then, please ask in Slack. Otherwise, I will continue to assist when I return.

@arosiclair
Copy link
Contributor

Ah okay I just looked at the frontend and there are some changes that I think probably broke this. We changed logic for showing the RBR here. When the export fails, we set report.errorFields.export but it doesn't look like the new shouldShowRedBrickRoad function checks report.errorFields at all. If true, that's the root of the problem. That was changed in this PR cc @pac-guerreiro @DylanDylann @puneetlath

Copy link

melvin-bot bot commented Jan 1, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@joekaufmanexpensify
Copy link
Contributor

@arosiclair Thanks for investigating! Would this be a frontend fix?

@arosiclair
Copy link
Contributor

@arosiclair Thanks for investigating! Would this be a frontend fix?

Yup that's correct

@joekaufmanexpensify
Copy link
Contributor

Sounds good! I'll move this back to daily so we can look for proposals (unless you have interest in fixing it).

@joekaufmanexpensify
Copy link
Contributor

cc @pac-guerreiro @DylanDylann in case you guys are interested too as it sounds like you worked on the PR that introduced this.

@joekaufmanexpensify joekaufmanexpensify added Daily KSv2 and removed Weekly KSv2 labels Jan 6, 2025
@melvin-bot melvin-bot bot removed the Overdue label Jan 6, 2025
@DylanDylann
Copy link
Contributor

DylanDylann commented Jan 7, 2025

@arosiclair Nice catch!

In this PR, we updated to use getAllReportActionsErrorsAndReportActionThatRequiresAttention instead of getAllReportErrors in shouldShowRedBrickRoad function

Screenshot 2025-01-07 at 13 21 20

@pac-guerreiro It maybe our mistake while implementing and reviewing

@DylanDylann
Copy link
Contributor

In this issue, I can't reproduce it but if When the export fails, we set report.errorFields.export I think the fix for the above problem will solve this bug

@DylanDylann
Copy link
Contributor

@pac-guerreiro If you agree with above point, please raise a PR to address it

Copy link

melvin-bot bot commented Jan 8, 2025

@arosiclair @joekaufmanexpensify @thesahindia this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

@pac-guerreiro
Copy link
Contributor

@DylanDylann @arosiclair sorry for the bug! What you mentioned seems to make sense, so I'll try to apply your suggestions and check if it works 😄

@joekaufmanexpensify
Copy link
Contributor

Reassigning this to @DylanDylann and @pac-guerreiro since they have context for this issue.

@melvin-bot melvin-bot bot removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Jan 8, 2025
Copy link

melvin-bot bot commented Jan 8, 2025

📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Jan 8, 2025

📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@pac-guerreiro
Copy link
Contributor

@DylanDylann @arosiclair @IuliiaHerets @joekaufmanexpensify

I just opened a PR with the fix for this issue 😄

@pac-guerreiro
Copy link
Contributor

pac-guerreiro commented Jan 10, 2025

Today I dedicated my time to write unit tests for this PR but I haven't finished them yet.

@pac-guerreiro
Copy link
Contributor

PR was merged! 🚀

Thanks @DylanDylann and @arosiclair 😄

@joekaufmanexpensify
Copy link
Contributor

Wooo, TY!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

7 participants