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-08-07] [QBO Export] Implement offline pattern B for manual report exports #43040

Closed
arosiclair opened this issue Jun 4, 2024 · 26 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 NewFeature Something to build that is a new item.

Comments

@arosiclair
Copy link
Contributor

arosiclair commented Jun 4, 2024

Part of QBO Export and Error Handling in NewDot

Doc section: https://docs.google.com/document/d/1aQl-AK_F6IqszWYG2aEllTsD5x3h4b8Zu0XEG0LuQ08/edit#heading=h.xw0s9oqvo44s
Project: https://github.com/orgs/Expensify/projects/129

Feature Description

During review for the detailed design, we decided we should support offline pattern B when manually exporting reports here. To implement that we need to

  • Create an optimistic EXPORTINTEGRATION action in our Report.exportToIntegration and Report.markAsManuallyExported actions
    • The text should say started exporting this report to {integration}...
  • Pass the optimisticReportActionID to both Report_Export and MarkAsExported APIs
  • Use the ID to create the action in Auth
    • Auth will queue updates for the report action with the final text: exported this report to {integration}. [View out-of-pocket expenses].
  • On failure
    • create the INTEGRATIONSMESSAGE action with the error message like normal (using a different ID)
    • delete the optimistic action on the frontend using failureData

Manual Test Steps

Sucessful offline export

  1. Submit an expense report
  2. Log in as the workspace admin
  3. Approve the report
  4. Go offline
  5. 3-dot menu > Export > Quickbooks Online
  6. Verify a semi-transparent started exporting this report to QuickBooks Online... message shows
  7. Go online
  8. Verify the action becomes fully opaque
  9. Wait a few seconds
  10. Verify the action updates to exported this report to QuickBooks Online. [View out-of-pocket expenses].

Failed offline export

Prerequisites

  • Add a chart of account (category) to QBO that you can delete later

Steps

  1. Create a report with an expense
  2. Categorize the expense using the new QBO category
  3. Submit it
  4. Log in as the workspace admin and approve the report
  5. Log into QBO and deactivate the chart of account for the category (Menu > Transactions > Chart of accounts > {account} menu > Make inactive)
  6. Go offline in NewDot
  7. Export the report to QBO (3-dot menu > Export > Quickbooks Online)
  8. Verify a semi-transparent started exporting this report to QuickBooks Online... message shows
  9. Go online
  10. Verify the action becomes fully opaque
  11. Wait a few seconds
  12. Verify a report export error message is added the report

Automated Tests

  • Verify optimisticData for the INTEGRATIONSMESSAGE is merged for both Report.exportToIntegration and Report.markAsManuallyExported actions
  • Verify failureData removes the action
Issue OwnerCurrent Issue Owner: @dylanexpensify
@arosiclair arosiclair added the NewFeature Something to build that is a new item. label Jun 4, 2024
Copy link

melvin-bot bot commented Jun 4, 2024

Triggered auto assignment to @dylanexpensify (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added the Weekly KSv2 label Jun 4, 2024
@arosiclair arosiclair changed the title Implement offline pattern B for manual report exports [HOLD] Implement offline pattern B for manual report exports Jun 4, 2024
@arosiclair
Copy link
Contributor Author

cc @trjExpensify @lakchote @sakluger

@trjExpensify trjExpensify changed the title [HOLD] Implement offline pattern B for manual report exports [HOLD] [QBO Export] Implement offline pattern B for manual report exports Jun 6, 2024
@trjExpensify
Copy link
Contributor

Sounds good, moved it into the release. 👍

@melvin-bot melvin-bot bot added the Overdue label Jun 12, 2024
@dylanexpensify
Copy link
Contributor

Held!

@melvin-bot melvin-bot bot removed the Overdue label Jun 17, 2024
@arosiclair
Copy link
Contributor Author

Pointed the hold to #44022

@trjExpensify trjExpensify changed the title [HOLD] [QBO Export] Implement offline pattern B for manual report exports [HOLD #44022] [QBO Export] Implement offline pattern B for manual report exports Jun 24, 2024
@trjExpensify
Copy link
Contributor

^^ updated the title to reflect that.

@melvin-bot melvin-bot bot added the Overdue label Jun 25, 2024
@dylanexpensify
Copy link
Contributor

held

@melvin-bot melvin-bot bot removed the Overdue label Jun 26, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Jun 28, 2024
@kosmydel
Copy link
Contributor

kosmydel commented Jul 2, 2024

Hey, I'm from SWM and I would like to work on this issue :)

@trjExpensify
Copy link
Contributor

Assigned you! Going to remove the Reviewing label as there isn't a PR for this yet right?

@trjExpensify trjExpensify added Daily KSv2 and removed Weekly KSv2 Reviewing Has a PR in review labels Jul 2, 2024
@kosmydel
Copy link
Contributor

kosmydel commented Jul 2, 2024

Assigned you! Going to remove the Reviewing label as there isn't a PR for this yet right?

Yep, we don’t have a PR for this yet.

@dylanexpensify
Copy link
Contributor

Held

@dylanexpensify
Copy link
Contributor

Still holding

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Overdue Daily KSv2 Weekly KSv2 labels Jul 15, 2024
@arosiclair
Copy link
Contributor Author

Posted these PRs to support optimisticReportActionID:

Should be able to get those deployed next week.

@dylanexpensify
Copy link
Contributor

@arosiclair looks like 44022 is now in regression period - we good to take this off hold?

@arosiclair arosiclair changed the title [HOLD #44022] [QBO Export] Implement offline pattern B for manual report exports [QBO Export] Implement offline pattern B for manual report exports Jul 22, 2024
@arosiclair
Copy link
Contributor Author

https://github.com/Expensify/Web-Expensify/pull/42762 still needs to get reviewed and merged and then we can finalize and merge #44733

This comment was marked as off-topic.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 31, 2024
@melvin-bot melvin-bot bot changed the title [QBO Export] Implement offline pattern B for manual report exports [HOLD for payment 2024-08-07] [QBO Export] Implement offline pattern B for manual report exports Jul 31, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 31, 2024
Copy link

melvin-bot bot commented Jul 31, 2024

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

Copy link

melvin-bot bot commented Jul 31, 2024

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

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

  • @hungvu193 requires payment through NewDot Manual Requests
  • @kosmydel does not require payment (Contractor)

Copy link

melvin-bot bot commented Jul 31, 2024

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@hungvu193] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [@dylanexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

@dylanexpensify
Copy link
Contributor

Payment coming up!

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Aug 7, 2024
Copy link

melvin-bot bot commented Aug 7, 2024

Payment Summary

Upwork Job

  • Reviewer: @hungvu193 owed $250 via NewDot
  • Contributor: @kosmydel is from an agency-contributor and not due payment

BugZero Checklist (@dylanexpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@dylanexpensify
Copy link
Contributor

Payment summary:

Please apply/request!

@JmillsExpensify
Copy link

$250 approved for @hungvu193

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 Daily KSv2 NewFeature Something to build that is a new item.
Projects
No open projects
Status: Done
Development

No branches or pull requests

6 participants