chore: Add support for FDv1 polling synchronizer #368
Merged
+684
−32
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
Introduces an FDv1 polling fallback and triggers automatic failover from FDv2 based on response headers, with config hooks, parsing, and tests.
X-LD-FD-Fallback: trueand emit updates withrevert_to_fdv1, causing immediate switch to FDv1.FDv2consumesrevert_to_fdv1to switch synchronizers; OFF without fallback no longer implies FDv1.Urllib3FDv1PollingRequesterusingLATEST_ALL_URI.fdv1_polling_payload_to_changesetfor FDv1flags/segmentsfull-transfer parsing.UnsuccessfulResponseExceptionusage; propagateX-LD-EnvIDand fallback flags.Startaction headers; on fallback header emit OFF +revert_to_fdv1.DataSystemConfiggainsfdv1_fallback_synchronizer.ConfigBuilder.fdv1_compatible_synchronizer(...)and wire intodefault(),streaming(), andpolling()(uses FDv1 polling requester).UnsuccessfulResponseExceptionnow carriesheaders;throw_if_unsuccessful_responsepasses them.launchdarkly-eventsourceto>=1.5.0,<2.0.0.Written by Cursor Bugbot for commit df5c41c. This will update automatically on new commits. Configure here.