Skip to content

Commit a20131e

Browse files
Merge pull request #100 from statsig-io/gcir-dc-passed
Add Passed for Dynamic Configs to GCIR
2 parents 60d0f1c + e1c0a8c commit a20131e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ClientInitializeResponse.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ private function configToResponse(string $config_name, $config_spec)
8484
$result["group_name"] = $eval_result->group_name;
8585
}
8686
$entity_type = strtolower($config_spec["entity"] ?? "");
87+
if ($entity_type === "dynamic_config") {
88+
$result["passed"] = $eval_result->bool_value;
89+
}
8790
if ($entity_type === "experiment") {
8891
$result["is_user_in_experiment"] = $eval_result->is_experiment_group;
8992
$result["is_experiment_active"] = $config_spec["isActive"];

0 commit comments

Comments
 (0)