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

source-klaviyo: filter Profiles with > instead of >= #2115

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

Alex-Bair
Copy link
Contributor

@Alex-Bair Alex-Bair commented Nov 1, 2024

Description:

My earlier commit (dfbe8b5 in PR #2037 ) was too broad in changing all incremental streams to use >= in the filter query param. The /profiles endpoint used by both the Profiles and GlobalExclusions streams do not support filtering with >=, so they have to use >.

For streams that do use >, I subtracted one second (the smallest time granularity for Klaviyo timestamps) before the first request to avoid missing records that were updated in the same second but weren't available in the API at the exact same time.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

Although /profiles does not support >= filtering & the API returns a 400 response when trying to filter with >=, existing tasks have failed silently. I'm not sure exactly why tasks didn't fail / an error message wasn't logged, but I made issue #2114 to track this.

Tested on a local stack. Confirmed:

  • Previously working incremental streams still work incrementally.
  • Profiles and GlobalExclusions streams now work, are incremental, and no longer silently fail.

This change is Reviewable

My earlier commit (dfbe8b5) was too
broad in changing all incremental streams to use `"greater-or-equal"` in
the `filter` query param. The `/profiles` endpoint used by both the
`Profiles` and `GlobalExclusions` streams do not support filtering with
`"greater-or-equal"`, so they have to use `"greater-than"`.
@Alex-Bair Alex-Bair added the change:unplanned Unplanned change, useful for things like doc updates label Nov 1, 2024
@Alex-Bair Alex-Bair requested a review from a team November 1, 2024 23:42
Copy link
Member

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

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

LGTM

@Alex-Bair Alex-Bair merged commit 2fbd9b0 into main Nov 4, 2024
73 of 77 checks passed
@Alex-Bair Alex-Bair deleted the bair/klaviyo-comparisons branch November 4, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:unplanned Unplanned change, useful for things like doc updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants