Hello! GrowthBook `forcedFeatures` broke in the l...
# sdk-kotlin
f
Hello! GrowthBook
forcedFeatures
broke in the latest version of the kotlin SDK.
forcedFeatures
recently changed from
Map<String, Any>
to
Map<String, GBValue>
. The problem is that
GBFeatureEvaluator
wasn't updated, and it's still using Any here. That means than when actually evaluating a forced feature, it's expecting a JsonElement instead of a GBValue over here. Instead of returning the forced value, it instead returns
GBValue.Unknown
. Further, there is another bug where
GBValue.Unknown
is parsed as
isOn=true
, instead of false. That is happening over here. The default should be
false
, not
true
, so this logic is incorrect. You can see where I printed out the `GBFeatureResult`:
Copy code
GBFeatureResult(gbValue=Unknown, on=true, off=false, source=override, experiment=null, experimentResult=null)
Thank you!
a
Yes
It is fixed in this pull request . Could you please review it?
👍 1
f
thank you! please let me know when the new version with the fix is released
b
The problem still happening becase the map in
GrowthBookSDK
called
forceFeatures
still with type
Map<String, GBValue>
and never is gonna be