You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support starts_with and ends_with operators in local evaluation (#268)
* feat: support starts_with and ends_with operators in local evaluation
Adds local evaluation for the starts_with, not_starts_with, ends_with,
and not_ends_with property filter operators (PostHog/posthog#72992).
Matching is case-insensitive (OrdinalIgnoreCase) and mirrors icontains:
the override value is stringified and compared against the filter's
string value, and the Not variants are exact negations. New enum
members are appended so existing ComparisonOperator values keep their
numeric identity.
Generated-By: PostHog Code
Task-Id: ef980bb5-ff81-4191-a7df-796e932b8251
* Cover missing-key and null values for starts_with/ends_with operators
Generated-By: PostHog Code
Task-Id: bb15888a-04c4-4dc0-916e-793a0540ece3
* Map unrecognized operators to Unknown and test operator wire names
Deserializing a property filter whose operator this SDK version doesn't
recognize maps it to ComparisonOperator.Unknown instead of throwing,
so a future server-side operator makes only the affected flag
inconclusive (falling back to remote evaluation) rather than rejecting
the entire local evaluation response. Also adds focused deserialization
tests for the starts_with, not_starts_with, ends_with, and
not_ends_with wire names.
Generated-By: PostHog Code
Task-Id: bb15888a-04c4-4dc0-916e-793a0540ece3
Support the `starts_with`, `not_starts_with`, `ends_with`, and `not_ends_with` property filter operators in feature flag local evaluation. Matching is case-insensitive and mirrors `icontains`, so flags using these operators no longer fail local evaluation.
6
+
7
+
Property filter operators this SDK version doesn't recognize now deserialize as `ComparisonOperator.Unknown` instead of failing the entire local evaluation response, so only the affected flag falls back to remote evaluation.
0 commit comments