-
Notifications
You must be signed in to change notification settings - Fork 9
fix: Honor x-ld-fd-fallback header in FDv2 initializer phase and on successful responses #251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
1b5458b
fix: Honor x-ld-fd-fallback header in FDv2 initializer phase and on s…
keelerm84 67dad46
test: Wire FDv1 Fallback Directive contract-test capability and add u…
keelerm84 2a2bf1f
fix: Trigger FallingBack tracker action when FDv1 fallback signaled r…
keelerm84 7a60a57
test: Add end-to-end FDv1 fallback test using real FDv2 streaming source
keelerm84 3bc179e
test: Add real-streaming 403 + FDv1 directive end-to-end test
keelerm84 19c7727
ci: Upload contract-test service log on FDv2 contract-test failure
keelerm84 ecb4768
test: Map dataSystem.fdv1Fallback JSON field with explicit JsonProper…
keelerm84 4b3559e
fix: Skip building FDv1 fallback factory list when no FDv1 synchroniz…
keelerm84 0edfb9d
fix: Attach FDv1 fallback applier unconditionally so the directive ha…
keelerm84 1fe0537
fix: defer blacklist applier's Apply-driven advancement to coordinate…
keelerm84 c235747
refactor: Replace FDv1 fallback latch with BlockAll and ChangeSet dir…
keelerm84 e86a900
fix: Address review feedback from second review round on FDv1 fallbac…
keelerm84 d9a0697
fix: Fail tracker when FDv1 directive fires but no fallback is config…
keelerm84 752da6a
fix: Resolve polling source _initTask when shutting down for FDv1 fal…
keelerm84 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
23 changes: 23 additions & 0 deletions
23
pkgs/sdk/server/src/Internal/DataSources/CompositeDataSource/CompositeEntryKind.cs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| namespace LaunchDarkly.Sdk.Server.Internal.DataSources | ||
| { | ||
| /// <summary> | ||
| /// Categorizes an entry in a composite source's list. Appliers use this to express | ||
| /// "block every FDv2 entry" via <see cref="ICompositeSourceActionable.BlockAll"/> | ||
| /// without having to count positions or know which phase they were attached at. | ||
| /// </summary> | ||
| internal enum CompositeEntryKind | ||
| { | ||
| /// <summary> | ||
| /// Default kind. Entries that participate in the FDv2 protocol -- initializers and | ||
| /// FDv2 synchronizers in the outer composite, and any entry that is not the | ||
| /// FDv1 fallback synchronizer. | ||
| /// </summary> | ||
| FDv2, | ||
|
|
||
| /// <summary> | ||
| /// The FDv1 fallback synchronizer entry. Used by the FDv1 fallback applier to | ||
| /// distinguish the fallback target from the FDv2 entries it should block. | ||
| /// </summary> | ||
| FDv1Fallback | ||
| } | ||
| } |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure there is sufficient unit test coverage for the various head position edge cases, such as when the predicate matches every entry and all entries are removed.