We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8ae5ab commit 7764097Copy full SHA for 7764097
src/main/java/com/flagsmith/mappers/EngineMappers.java
@@ -302,10 +302,10 @@ private static String getFeatureStateKey(JsonNode featureState) {
302
if (node != null && !node.isNull()) {
303
return node.asText();
304
}
305
- // Feature state key is used in multivariate feature evaluation, not to
306
- // identify features uniquely, so if both fields are missing,
307
- // we don't need to care about collisions.
308
- return "";
+
+ throw new IllegalArgumentException(
+ "Feature state must have either 'django_id' or 'featurestate_uuid'");
+ }
309
310
private static double getMultivariateFeatureValuePriority(JsonNode multivariateValue) {
311
JsonNode idNode = multivariateValue.get("id");
0 commit comments