Repository navigation
2.24.0
·
8 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Minor changes
- 8df258f Feature flag evaluation accepts
:person_property_keys_known_absentand:group_property_keys_known_absentto list property keys the caller knows are absent. Local evaluation resolvesis_not_set,is_setand the other supported operators on those keys without calling/flags, and remote requests send the lists so/flagsgets the same result. A list longer than 1000 keys returns{:error, %PostHog.Error{}}without sending a request. — Thanks @marandaneto!
Patch changes
- 8df258f Local evaluation now resolves a group-aggregated flag when its group is not passed, as
/flagsdoes, instead of falling back to/flags. Conditions on that group don't match, so a flag with only those conditions returnsfalse. This also applies to a flag that another flag depends on. — Thanks @marandaneto! - 8df258f Local evaluation now treats a group key that is not a non-empty string or a number, such as
"", a boolean, a list or a map, as no group key, as/flagsdoes. A flag aggregated on that group type resolvesfalsewithout calling/flags, a group condition on it in a person flag is skipped, and such a key no longer buckets the flag or raises when a snapshot is built. — Thanks @marandaneto! - 05555f5 Local feature flag evaluation no longer matches filters of an unsupported type, such as
person_metadata, against caller-supplied properties with the same key. Those filters are now inconclusive with the:unsupported_definitionreason, and the flag falls back to remote evaluation unless another filter or condition decides it. — Thanks @marandaneto! - 8df258f Local evaluation of a group-aggregated flag without a usable group key now skips only the conditions on that group, as
/flagsdoes. A condition with its own person aggregation still runs and can match, directly or as a dependency. A flag with a holdout above 0% falls back to/flagsin that case, because only/flagscan decide the holdout. — Thanks @marandaneto!