From 4a533b80d994f6250f7ac82a6f537dba1a86375c Mon Sep 17 00:00:00 2001 From: Xin Li <137219293+xinlili-statsig@users.noreply.github.com> Date: Mon, 24 Jun 2024 15:20:50 -0700 Subject: [PATCH] Revert "hash secondary exposures and undelegated secondary exposures" (#270) Reverts statsig-io/private-python-sdk#267 --- statsig/client_initialize_formatter.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/statsig/client_initialize_formatter.py b/statsig/client_initialize_formatter.py index e37f38c..02b6e3f 100644 --- a/statsig/client_initialize_formatter.py +++ b/statsig/client_initialize_formatter.py @@ -59,7 +59,7 @@ def config_to_response(config_name, config_spec): result = { "name": hashed_name, "rule_id": eval_result.rule_id, - "secondary_exposures": hash_exposures(eval_result.secondary_exposures, hash_algo), + "secondary_exposures": eval_result.secondary_exposures, "value": False } @@ -134,11 +134,6 @@ def populate_layer_fields(config_spec, eval_result, result, hash_algo): result["undelegated_secondary_exposures"] = eval_result.undelegated_secondary_exposures or [] - def hash_exposures(exposures: list, algo: HashingAlgorithm): - for exposure in exposures: - exposure['gate'] = hash_name(exposure['gate'], algo) - return exposures - def filter_nones(arr): return dict([i for i in arr if i is not None])