Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature flag evaluation is case sensitive, while feature flag payload match evaluation is evaluated as lower() #178

Open
scotasaurus opened this issue Jan 28, 2025 · 0 comments

Comments

@scotasaurus
Copy link

In posthog/client.py, feature flag key matches are consistently evaluated with the raw/provided key value, whereas calls to evaluate payloads call str(key).lower(). This leads to inconsistencies for callers with capitalized feature flag key names--the flag will correctly evaluate as a match, but any payloads associated with the feature flag key will be returned as 'None.'

It's unclear what the desired behavior is here--either feature flags should be all lower case, or the payload evaluation with lower() should be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant