Repository navigation
Conversation
The FDv1 data sources no longer fall back to writing to the feature store when config.data_source_update_sink is None. The FDv1 data systems always set the sink before they build a data source, so the data sources now read it once at construction and raise ValueError if it is missing. Also remove the unused LDClient._make_update_processor, which the FDv1 data system replaced.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The FDv1 polling, streaming and file data sources (sync and async) no longer fall back to writing straight to the feature store when
config.data_source_update_sinkisNone. The fallback skipped data source status updates and flag change events. The FDv1 data systems always set the sink before they build a data source, so each data source now reads the sink once at construction and raisesValueErrorif it is missing.This also removes the unused
LDClient._make_update_processor, which the FDv1 data system replaced.Note
Overview
FDv1 sync/async polling, streaming, and file data sources no longer fall back to writing directly to the feature store when
config.data_source_update_sinkis missing.sink_or_store/async_sink_or_storeare replaced byrequire_update_sink, which fails fast at construction withValueErrorif the sink is unset.Each data source now routes all
init/ upsert / delete work and data source status updates through the sink only, removing scatteredif sink is not Nonechecks. The file integration drops its private store fallback helper and no longer keeps a store reference for updates.LDClient._make_update_processoris removed; update processor selection stays onFDv1(unchanged behavior for normal clients, which already assign the sink before building a processor). Tests gainwith_update_sink/with_async_update_sinkhelpers and coverage that constructors reject a missing sink.Reviewed by Cursor Bugbot for commit b4c595e. Bugbot is set up for automated code reviews on this repo. Configure here.