Skip to content

[150] Asynchronously process transaction backfills #195

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

Merged

Conversation

Noah-Silvera
Copy link
Member

@Noah-Silvera Noah-Silvera commented Jun 27, 2022

What is the goal of this PR?

Transaction backfills have the potential to encompass a large number of orders, so we should execute them asychronously, and direct the user to the in progress batch display page.

How do you manually test these changes? (if applicable)

  • Smoke test backfilling transactions

Merge Checklist

  • Run the manual tests
  • Update the changelog

@Noah-Silvera Noah-Silvera force-pushed the origin/150-asynchronously-process-transaction-backfills branch from 44fabcf to d8817f5 Compare June 27, 2022 21:43
Copy link
Collaborator

@forkata forkata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we may need to update a couple of specs here as a result of moving this process to async.

@@ -2,11 +2,10 @@

RSpec.describe SuperGood::SolidusTaxjar::BackfillTransactions do
describe ".call" do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it's not in this PR but this should be describe "#call" do because it's an instance method. That being said since we aren't passing anything to the initializer anymore it could also just be a class method instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed!

@Noah-Silvera Noah-Silvera force-pushed the 150-add-taxjar-backfill-to-tabs branch 2 times, most recently from 8e8e641 to 816b91a Compare August 12, 2022 19:35
@Noah-Silvera Noah-Silvera force-pushed the origin/150-asynchronously-process-transaction-backfills branch from d8817f5 to 56f0af1 Compare August 12, 2022 20:11
@Noah-Silvera Noah-Silvera changed the base branch from 150-add-taxjar-backfill-to-tabs to master August 12, 2022 20:11
@Noah-Silvera
Copy link
Member Author

Sorry just a rebase on master since the base branch was merged! No changes yet

@Noah-Silvera Noah-Silvera force-pushed the origin/150-asynchronously-process-transaction-backfills branch from 56f0af1 to 2b493fb Compare August 12, 2022 20:17
@forkata
Copy link
Collaborator

forkata commented Aug 12, 2022

Tests still need some attention, but otherwise :shipit:

@Noah-Silvera Noah-Silvera force-pushed the origin/150-asynchronously-process-transaction-backfills branch from 2b493fb to 9130fe3 Compare August 25, 2022 17:15
@Noah-Silvera
Copy link
Member Author

Just a push to fix the tests!

@Noah-Silvera Noah-Silvera force-pushed the origin/150-asynchronously-process-transaction-backfills branch from 9130fe3 to e8a6b60 Compare August 25, 2022 17:16
@Noah-Silvera Noah-Silvera enabled auto-merge (rebase) August 25, 2022 17:24
@Noah-Silvera Noah-Silvera force-pushed the origin/150-asynchronously-process-transaction-backfills branch from 60c5cc1 to beeec8a Compare August 26, 2022 22:23
Noah-Silvera and others added 5 commits August 26, 2022 15:23
This variable is no longer needed for test setup and can be removed.

Co-authored-by: Nick Van Doorn <[email protected]>
Transaction backfills have the potential to encompass a large number of
orders, so we should execute them asychronously, and direct the user to
the in progress batch display page.

Co-authored-by: Nick Van Doorn <[email protected]>
Co-authored-by: Chris Todorov <[email protected]>
The ID of the transaction sync batch can change when the whole suite is
run on CI, so we should just check for a number regex instead of a
hardcoded number.
@Noah-Silvera Noah-Silvera force-pushed the origin/150-asynchronously-process-transaction-backfills branch from beeec8a to 15c1e9f Compare August 26, 2022 22:24
@Noah-Silvera Noah-Silvera merged commit b3637a6 into master Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants