Repository navigation
feat(flags): evaluate feature enrollment locally #411
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
11 commits
Select commit
Hold shift + click to select a range
f408412
feat(flags): evaluate feature enrollment locally
marandaneto d08dabc
docs(release): add dependent-package changesets for core changes they…
marandaneto 2c51731
fix(flags): read enrollment passed as a JsonDocument
marandaneto 5beaa5a
fix(flags): evaluate only the referenced flag of a dependency
marandaneto f03b5f3
fix(flags): bound the depth of flag dependency evaluation
marandaneto ade960b
fix(flags): evaluate an unresolved flag dependency once per evaluation
marandaneto fa057f4
fix(flags): don't cache path-dependent dependency failures
marandaneto 08c900b
fix(flags): read enrollment passed as a JsonNode
marandaneto 323f691
docs(flags): document enrollment in known-absent keys and dependency …
marandaneto 3c3b886
Merge remote-tracking branch 'origin/main' into feat/flags-feature-en…
marandaneto 02637f9
fix(flags): keep dependency work linear after a depth-limit failure
marandaneto 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "PostHog.AspNetCore": minor | ||
| --- | ||
|
|
||
| Picks up the `PostHog` support for early access feature enrollment in local evaluation. With local evaluation, the PostHog feature manager now resolves a flag with `feature_enrollment` from the person property `$feature_enrollment/<flag key>` before the holdout and release conditions, as the flags service does. |
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,5 @@ | ||
| --- | ||
| "PostHog": minor | ||
| --- | ||
|
|
||
| Local feature flag evaluation now supports early access feature enrollment (`feature_enrollment`). Before the holdout and release conditions, the SDK reads the person property `$feature_enrollment/<flag key>`: `true` or `"true"` resolves the flag to `true`, and any other passed value, `null` included, resolves it to `false`. Group flags read the person property too. Without the property, the flag falls back to `/flags` (`missing_context` when `OnlyEvaluateLocally` is true). When the key is listed in `PersonPropertyKeysKnownAbsent`, evaluation continues through the holdout and release conditions. |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.