Skip to content

source-stripe-native: dynamic subtask state initialization#2812

Merged
JustinASmith merged 1 commit into
mainfrom
js/dynamic-subtask-state
May 22, 2025
Merged

source-stripe-native: dynamic subtask state initialization#2812
JustinASmith merged 1 commit into
mainfrom
js/dynamic-subtask-state

Conversation

@JustinASmith

@JustinASmith JustinASmith commented May 21, 2025

Copy link
Copy Markdown
Contributor

Description:

This pull request introduces changes to the source-stripe-native/source_stripe_native/resources.py file to improve the initialization logic for resource state handling. The most notable updates include adding type annotations for all_bindings, introducing additional validation for state properties, and restructuring the logic for initializing fetch_changes_fns and fetch_page_fns.

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:

(anything that might help someone review this PR)


This change is Reviewable

@JustinASmith

Copy link
Copy Markdown
Contributor Author

@williamhbaker @Alex-Bair This PR is still in progress, however, I need to step away very soon for personal reasons and wanted to get any feedback while I am away. The PR is getting close, but I expect there to be holes poked in the approach and/or test cases I have or do not have.

@Alex-Bair Alex-Bair left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Had a couple comments/questions. I'm sure you and Will have already talked about the approach, so feel free to update me if my comments go against something you guys have already discussed.

Comment thread estuary-cdk/estuary_cdk/capture/common.py Outdated
Comment thread estuary-cdk/estuary_cdk/capture/common.py Outdated
@JustinASmith JustinASmith force-pushed the js/dynamic-subtask-state branch from 88b08f8 to 33ea1e9 Compare May 22, 2025 11:58
@JustinASmith JustinASmith changed the title estuary-cdk: dynamic subtask state initialization source-stripe-native: dynamic subtask state initialization May 22, 2025
@JustinASmith JustinASmith marked this pull request as ready for review May 22, 2025 12:08
Comment thread source-stripe-native/source_stripe_native/resources.py Outdated
Comment thread source-stripe-native/source_stripe_native/resources.py Outdated
@JustinASmith JustinASmith force-pushed the js/dynamic-subtask-state branch 3 times, most recently from a2a9f0b to c8d11d7 Compare May 22, 2025 16:09

@Alex-Bair Alex-Bair left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM % a minor nit you could ignore if you want.

GitHub doesn't let me comment on the line, but a small nit is that it'd be a little clearer to me if the initialization of initial_state was before the open function definition. GPT is telling me that how it is now will work since initial_state is initialized before open is called, but my caveman brain doesn't realize that when initially glancing at the code.

@JustinASmith

Copy link
Copy Markdown
Contributor Author

@Alex-Bair thanks! My brain is all over the place. Working in the passenger seat of my car makes for a lot of distractions haha. I'll address this though and get it merged!

@JustinASmith JustinASmith force-pushed the js/dynamic-subtask-state branch from c8d11d7 to a85acf3 Compare May 22, 2025 16:37
@JustinASmith JustinASmith merged commit 0f7c5a3 into main May 22, 2025
96 of 99 checks passed
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