-
Notifications
You must be signed in to change notification settings - Fork 4.9k
fix(source-stripe): Remove min_datetime limitation from events_read_slice_cursor (do not merge) #69832
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
base: master
Are you sure you want to change the base?
fix(source-stripe): Remove min_datetime limitation from events_read_slice_cursor (do not merge) #69832
Conversation
…lice_cursor Fixes missing/duplicate records in incremental syncs for streams that use the Events API. The 30-day min_datetime limitation was preventing the connector from fetching events older than 30 days, causing missing records in incremental syncs for streams like Balance Transactions, Charges, Customers, Refunds, Payment Methods, Invoices, Invoice Line Items, and Subscription Items. The Stripe API handles date range validation on its end, so this artificial limitation is unnecessary and causes data loss. Fixes: airbytehq/oncall#10238 Fixes: airbytehq/oncall#8683 Related: #65911 Co-Authored-By: unknown <>
Original prompt from API User |
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
👋 Greetings, Airbyte Team Member!Here are some helpful tips and reminders for your convenience. Helpful Resources
PR Slash CommandsAirbyte Maintainers (that's you!) can execute the following slash commands on your PR:
|
|
Deploy preview for airbyte-docs ready! ✅ Preview Built with commit f494d4b. |
|
CI Status UpdateThe CI checks are showing 11 test failures in the source-stripe connector tests. This is expected behavior given the nature of the fix. Root Cause of Test Failures: Evidence:
What Needs to Be Done:
Recommendation:
The core fix (removing Note: This PR is marked as Draft with "(do not merge)" per the AI triage policy. It's intended as a "fix spike" to demonstrate the solution, not as a production-ready PR. |
What
This PR fixes missing and duplicate records in Stripe incremental syncs by removing the 30-day
min_datetimelimitation from theevents_read_slice_cursor.Related Issues:
invoice_line_itemsstreammin_datetimefromevents_read_slice_cursor#65911 - Original PR by @agarctfi with the same fix (has merge conflicts)Problem:
The Stripe connector uses the Events API for incremental syncs on certain streams. The
events_read_slice_cursorhad a hardcoded 30-day lookback limitation (min_datetime), which prevented fetching events older than 30 days. This caused:eventsstream fetches all data, butinvoice_line_itemsonly fetches last 30 days)Affected Streams:
How
The fix comments out the
min_datetimefield in theevents_read_slice_cursordefinition inmanifest.yaml(line 259). The Stripe API handles date range validation on its end, so this artificial client-side limitation is unnecessary.Changes:
manifest.yaml: Comment outmin_datetimewith explanation linking to oncall issuesmetadata.yaml: Bump version from 5.15.12 to 5.15.13stripe.md: Add changelog entry for version 5.15.13Review guide
Critical items to review:
min_datetimefromevents_read_slice_cursor#65911 testing, it does)Files changed:
airbyte-integrations/connectors/source-stripe/manifest.yaml- Core fixairbyte-integrations/connectors/source-stripe/metadata.yaml- Version bumpdocs/integrations/sources/stripe.md- Changelog entryUser Impact
Positive:
Potential concerns:
Workaround for current users:
lookback_window_daysconfiguration parameterCan this PR be safely reverted and rolled back?
This change can be safely reverted by uncommenting the
min_datetimeline. However, reverting would reintroduce the missing/duplicate records issue.Note: This PR was created by Devin AI as part of issue triage for oncall#10238. It builds on the work from PR #65911 by @agarctfi, resolving merge conflicts with master. The fix has been tested in PR #65911 with successful regression results.
Session: https://app.devin.ai/sessions/c34846c4368442d487205b25692563a4
Requested by: unknown () via
/ai-triagecommand