Skip to content

Commit 534113c

Browse files
Add IDType to GCIR (#342)
kong test: statsig-io/kong#2711
1 parent 12404b8 commit 534113c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

statsig/client_initialize_formatter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,17 @@ def config_to_response(config_name, config_spec):
7171
return None
7272

7373
result["value"] = eval_result.boolean_value
74+
result["id_type"] = config_spec["idType"]
7475
elif category == "dynamic_config":
7576
id_type = config_spec["idType"]
7677
result["value"] = eval_result.json_value
7778
result["group"] = eval_result.rule_id
7879
result["is_device_based"] = id_type.lower(
7980
) == "stableid" if isinstance(id_type, str) else False
8081

82+
if entity_type != "layer":
83+
result["id_type"] = config_spec["idType"]
84+
8185
if entity_type == "experiment":
8286
populate_experiment_fields(
8387
config_name, config_spec, eval_result, result)

0 commit comments

Comments
 (0)