Repository navigation
feat!: Remove the FDv1 data system - #573
Merged
Merged
Conversation
The client always uses the FDv2 data system. When datasystem_config is not set, the sync client uses datasystem.default() and the async client uses async_datasystem.default(). The FDv1 fallback synchronizer stays. Removed from Config and AsyncConfig: stream, use_ldd, feature_store, update_processor_class, feature_requester_class, payload_filter_key, data_source_update_sink, get_latest_flags_uri, the stream_uri property, and Config.copy_with_new_sdk_key. Removed from the public API: the UpdateProcessor, FeatureRequester, DataSourceUpdateSink and DataStoreUpdateSink interfaces and their async versions, the v1 TestData integration, and Files.new_data_source. Daemon mode (a data system with no initializers and no synchronizers) takes over from use_ldd. It does not log the cached-data evaluation warning, and with events off it does not log the fork warning. The FDv2 persistent store wrapper now drops writes that start after close, and close waits for a write in progress, as the FDv1 wrapper did. The diagnostic event no longer reports streamingDisabled or usingRelayDaemon. dataStoreType comes from the data system config. CI runs only the v3 contract-test harness, because the v2 harness tests only FDv1.
…ve-fdv1-data-system # Conflicts: # contract-tests/async_client_entity.py # contract-tests/async_service.py # contract-tests/client_entity.py # contract-tests/service.py # ldclient/async_config.py # ldclient/integrations/test_data.py # ldclient/testing/integrations/test_test_data_source.py
kinyoklion
approved these changes
Nov 10, 2026
…ve-fdv1-data-system
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 client always uses the FDv2 data system. When
datasystem_configis not set, the sync client usesdatasystem.default()and the async client usesasync_datasystem.default(). The FDv1 fallback synchronizer stays.ConfigandAsyncConfig:stream,use_ldd,feature_store,update_processor_class,feature_requester_class,payload_filter_key,data_source_update_sink,get_latest_flags_uri, thestream_uriproperty, andConfig.copy_with_new_sdk_key. Every argument aftersdk_keyis now keyword-only, so a 9.x positional call fails instead of binding to the wrong parameter.UpdateProcessor,FeatureRequester,DataSourceUpdateSinkandDataStoreUpdateSinkinterfaces and their async versions, the v1TestDataintegration, andFiles.new_data_source.use_ldd. It does not log the cached-data evaluation warning, and with events off it does not log the fork warning. A data system with no data sources and no store logs a warning that all evaluations return default values.streamingDisabledorusingRelayDaemon.dataStoreTypecomes from the data system config.Note
Overview
This is a breaking migration that removes the FDv1 data system so sync and async clients always run FDv2, using
datasystem.default()/async_datasystem.default()whendatasystem_configis unset.Configuration:
ConfigandAsyncConfigdrop FDv1 knobs (stream,use_ldd,feature_store, update/feature requester hooks,payload_filter_key, etc.) and make every option aftersdk_keykeyword-only. Daemon mode (persistent store with no synchronizers/initializers) replacesuse_ldd; evaluation readiness uses the data system’starget_availabilityinstead of hard-coded FDv1/LDD paths.Code removal: Large deletions across
impl/datasource/*,impl/datasystem/fdv1*, v1 file/test data sources, and related tests—contract-test harness setup is trimmed to v3-only (CI/Makefile, fewer advertised capabilities).Follow-on behavior: FDv2’s persistent-store wrapper gains FDv1-style close/write locking; diagnostics no longer report streaming/LDD flags and infer store type from the data system; docs reference TestDataV2.
Reviewed by Cursor Bugbot for commit 4cefd0e. Bugbot is set up for automated code reviews on this repo. Configure here.