-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
✨Source Klaviyo: add new streams #37370
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
yield from super().read_records(sync_mode, cursor_field, stream_slice, stream_state) | ||
yield from self.archived_stream.read_records(sync_mode, cursor_field, stream_slice, stream_state) | ||
) -> Iterable[Optional[Mapping[str, Any]]]: | ||
return [{"archived": flag} for flag in (False, True)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does this need a custom component? why can't this be use a ListPartitionRouter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still needed for the CampaignsDetailed
stream, which also requires additional requests to be performed in order to fetch fields which are not available in the main endpoint
if stream_slice.get("archived"): | ||
archived_filter = "equals(archived,true)" | ||
if "filter" in params and archived_filter not in params["filter"]: | ||
params["filter"] = f"and({params['filter']},{archived_filter})" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect this can also be done with interpolation. does this need to stay in Python?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here - it is needed for the CampaignsDetailed
stream
What
Resolves https://github.com/airbytehq/product-request-backlog/issues/45
How
Added new streams with extended fields set:
campaigns_detailed
lists_detailed
Review guide
manifest.yaml
streams.py
User Impact
No
Can this PR be safely reverted and rolled back?