Skip to content

Commit

Permalink
Revert "hash secondary exposures and undelegated secondary exposures"…
Browse files Browse the repository at this point in the history
  • Loading branch information
xinlili-statsig authored Jun 24, 2024
1 parent cc65207 commit 4a533b8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions statsig/client_initialize_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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])

Expand Down

0 comments on commit 4a533b8

Please sign in to comment.