Repository navigation
posthog-v7.79.0
Immutable
release. Only release title and notes can be modified.
Minor changes
-
bb2b9d6 Report flags that local evaluation could not resolve on
evaluate_flags()snapshots.FeatureFlagEvaluations.unresolved_flagsmaps each such flag to anUnresolvedFlagReason(experience_continuity,unsupported_definition,unresolved_dependencyormissing_context), and reading one reports thelocal_evaluation_inconclusiveerror instead offlag_missing. When definitions load, log one warning per flag that local evaluation can never resolve (experience continuity, a static cohort, an unknown operator, a malformed value, or a missing or circular flag dependency), and again only when its definition changes.AsyncClientevaluates only remotely, so its snapshots have no unresolved flags.Behavior changes:
- A condition with a filter that local evaluation can't check and a filter that does not match now resolves locally as no match. Before, such a flag fell back to a remote request, or stayed unresolved with
only_evaluate_locally=True. - An inactive flag with experience continuity enabled now resolves to
falselocally instead of falling back to a remote request. - A flag that depends on a flag with experience continuity enabled is no longer evaluated locally. It falls back to a remote request, or stays unresolved with
only_evaluate_locally=True. - On
$feature_flag_calledevents from anevaluate_flags()snapshot,$feature_flag_erroris nowlocal_evaluation_inconclusiveinstead offlag_missingfor a flag that has a loaded definition but that local evaluation could not resolve. get_all_flags(),get_all_flags_and_payloads()andevaluate_flags()no longer log an error with a traceback when a flag needs the server (for example, a static cohort). They fall back to a remote request without logging, asget_feature_flag()already did. — Thanks @gustavohstrassburger!
- A condition with a filter that local evaluation can't check and a filter that does not match now resolves locally as no match. Before, such a flag fell back to a remote request, or stayed unresolved with