These change add the new ConditionEvaluator class and all tests for evaluateCondition which takes a string representation of the JSON and condition query.
A lot of helper methods, enums, etc. were added to support this as well.
All tests pass. I left some commented-out code to help with test debugging.
A bunch more GrowthBookUtils helper methods for variations, bucket ranges, and BucketRange class improvements as well to work better with variations.
These change add the new
ConditionEvaluator
class and all tests forevaluateCondition
which takes a string representation of the JSON and condition query.A lot of helper methods, enums, etc. were added to support this as well.
All tests pass. I left some commented-out code to help with test debugging.
A bunch more
GrowthBookUtils
helper methods for variations, bucket ranges, andBucketRange
class improvements as well to work better with variations.