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

HGI-6642 / Add event_filter to plan, product and charge streams #31

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

arilton
Copy link
Contributor

@arilton arilton commented Oct 14, 2024

No description provided.

@@ -368,6 +368,7 @@ class Plans(StripeStreamV2):
replication_key = "updated"
object = "plan"
from_invoice_items = False
event_filter = "plan.*"
Copy link
Contributor

@keyn4 keyn4 Oct 15, 2024

Choose a reason for hiding this comment

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

for plans the reason that the event_filter is not set is because when a subscription price/plan is updated on the subscription itself the triggered event is not of type plan.* but customer.subscription.updated so we were missing those when using plan.*, I think it's not possible to request multiple event types, therefore we opted to fetch all events :c

@@ -580,6 +581,7 @@ class Products(StripeStreamV2):
name = "products"
replication_key = "updated"
object = "product"
event_filter = "product.*"
Copy link
Contributor

Choose a reason for hiding this comment

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

same as plans for products we need to get events from products.* and from invoice.*

@arilton arilton requested a review from keyn4 October 15, 2024 13:00
@hsyyid hsyyid merged commit 73afb5c into master Oct 15, 2024
@hsyyid hsyyid deleted the hgi-6642 branch October 15, 2024 16:35
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