We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d500bb commit 2f23df7Copy full SHA for 2f23df7
posthog/feature_flags.py
@@ -160,9 +160,10 @@ def evaluate_flag_dependency(
160
if operator == "flag_evaluates_to":
161
return matches_dependency_value(expected_value, actual_value)
162
else:
163
- # For backwards compatibility, treat other operators as exact comparison
164
- # but flag dependencies should use flag_evaluates_to
165
- return actual_value == expected_value
+ # This should never happen, but just to be defensive.
+ raise InconclusiveMatchError(
+ f"Flag dependency property for '{property.get('key', 'unknown')}' has invalid operator '{operator}'"
166
+ )
167
168
# If no value check needed, return True (all dependencies passed)
169
return True
0 commit comments