Skip to content

Conversation

rafaeelaudibert
Copy link
Member

This commit introduces local evaluation capabilities for feature flags in the PostHog Elixir SDK. It includes a new PostHog.FeatureFlags.Poller module for polling feature flag definitions, a PostHog.FeatureFlags.Evaluator for local evaluation logic, and updates to the configuration to support local evaluation options. Additionally, comprehensive tests have been added to ensure the functionality works as expected.

![WARNING] This includes a lot of the code from am-feature-flags branch. All that base FF code will go away once we merge the FF code.

martosaur and others added 7 commits August 31, 2025 18:48
This will make it more ergonomic for future updates. Most of the code stayed the same.

I've also added a helper `checked!` function that avoids the whole `{:ok, _}` check, but it's more prone to errors. People should still use `check` most of the time, but `check!` is more ergonomic for scripts
This commit introduces local evaluation capabilities for feature flags in the PostHog Elixir SDK. It includes a new `PostHog.FeatureFlags.Poller` module for polling feature flag definitions, a `PostHog.FeatureFlags.Evaluator` for local evaluation logic, and updates to the configuration to support local evaluation options. Additionally, comprehensive tests have been added to ensure the functionality works as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants