-
Notifications
You must be signed in to change notification settings - Fork 4
fix: Use strict typing in EvaluationEngine and fix evaluation boolean handling #36
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
Conversation
✅ No documentation updates required. |
## [1.2.3](1.2.2...1.2.3) (2025-05-29) ### Bug Fixes * Use strict typing in EvaluationEngine and fix evaluation boolean handling ([#36](#36)) ([b2c5621](b2c5621))
🎉 This PR is included in version 1.2.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This breaks the old behavior where you had to use When I deployed this our feature flags stopped working. I think booleans should still work with 1 or 0. |
@ruudk, thanks for raising this. To clarify, are you using "1" and "0" in your flag definition to support boolean matching? |
Yes and in PHP I feed a real Boolean. The old situation would convert the bool to "1" and thus it would match. With your fix you broke that, and require me to match against true in amplitude. Fine, but others will get hit by this ! |
@ruudk thank you for the clarification. To ensure the results of local and remote evaluation are the same, we recommend that existing flag configs using |
Sure, I can change my Feature Flag conditions in Amplitude. But my point is, that you broke existing behavior in a patch version. You should be more careful next time. Especially with something important as what you're offering. People rely on the feature flags to keep on working, after a patch release. Your answer doesn't give me confidence for future updates tbh. |
Issue for reference.
Changes:
EvaluationEngine
to use strict typingEvaluationEngine
to properly handle different boolean representations