Skip to content

Source-Stripe: Updating CBT to use invoices and customer parents #58633

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ericvanbenschoten-dv01
Copy link

What

How

Review guide

User Impact

Can this PR be safely reverted and rolled back?

  • YES πŸ’š
  • NO ❌

@ericvanbenschoten-dv01 ericvanbenschoten-dv01 requested a review from a team as a code owner April 24, 2025 12:49
Copy link

vercel bot commented Apr 24, 2025

@ericvanbenschoten-dv01 is attempting to deploy a commit to the Airbyte Growth Team on Vercel.

A member of the Team first needs to authorize it.

@@ -308,6 +308,8 @@ definitions:
$parameters:
request_parameters:
types[]: '{{["customer.created", "customer.updated", "customer.deleted"]}}'
cursor_field: updated
lookback_window_days: 1
Copy link
Contributor

Choose a reason for hiding this comment

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

How does this work with incremental streams?

Choose a reason for hiding this comment

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

Removed and using CustomStateMigrations class to roll back the cursors


class CustomerIdPartitionRouter(SubstreamPartitionRouter):
def stream_slices(self) -> Iterable[StreamSlice]: # type: ignore
parent_slices = list(super().stream_slices())
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought you had to iterate through each of the substream partition configs

Comment on lines +886 to +888
state_migrations:
- type: CustomStateMigration
class_name: source_stripe.components.CustomerBalanceStateMigration

Choose a reason for hiding this comment

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

@ericvanbenschoten-dv01 ericvanbenschoten-dv01 changed the title Updating CBT to use invoices and customer parents Source-Stripe: Updating CBT to use invoices and customer parents Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants