posthog icon indicating copy to clipboard operation
posthog copied to clipboard

Cohorts incorrectly matching on all users when conditions were set up using properties with mismatched types

Open dmarticus opened this issue 1 year ago • 0 comments

Bug description

See this thread for details and more context: https://posthog.slack.com/archives/C034XD440RK/p1719258942611049

Tim was able to fix this issue for the user, but it's hard to say how widespread this is, and it's very scary that we're not evaluating flags correctly in this situation.

Fixing this issue will require:

  • figuring out why this type mismatch situation is causing the feature flag to evaluate to true in the event that we have this type mismatch
  • fixing the issue

How to reproduce

  1. create a new cohort
  2. pick a string type property and have it match on some numbers
  3. switch the property to a numeric property
  4. notice that your cohort now matches everyone, instead of just people that match that condition

dmarticus avatar Jun 25 '24 00:06 dmarticus