fix: Allow modifying fdv2 data source options independent of main config #403
+414
−237
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Note
Medium Risk
Touches core FDv2 synchronization and HTTP wiring; misconfigured defaults or builder overrides could change network behavior (URIs/timeouts) or break initialization if
.build()paths are missed.Overview
Refactors FDv2
DataSystemConfigto use a newDataSourceBuilderprotocol (objects withbuild(config)) instead ofCallable[[Config], T]factories, and updates FDv2 (fdv2.py) to call.build()for initializers/synchronizers.Updates polling and streaming FDv2 data sources to accept per-source overrides (base URI, poll interval / reconnect delay, and
HTTPConfig) via new builder classes; requesters now build their ownHTTPFactoryfrom_base_headers(config)and the builder-suppliedHTTPConfig/URI rather than always usingconfig.http/config.base_uri.Adds builder implementations for FileDataV2 and TestDataV2, updates integrations/tests/contract tests to use the new builder API, and adjusts
StreamingDataSource/SSE client builder signatures accordingly.Written by Cursor Bugbot for commit 451ff2d. This will update automatically on new commits. Configure here.