@@ -195,7 +195,7 @@ def variable(user, key, default, opts = {})
195195 value = default
196196 type = determine_variable_type ( default )
197197 defaulted = true
198- eval = { reason : DevCycle ::DEFAULT_REASONS ::UNKNOWN , details : DevCycle ::EVAL_REASON_DETAILS :: UNKNOWN }
198+ eval = { reason : DevCycle ::DEFAULT_REASONS ::USER_NOT_TARGETED , details : DevCycle ::DEFAULT_REASON_DETAILS :: USER_NOT_TARGETED }
199199 if local_bucketing_initialized? && @local_bucketing . has_config
200200 type_code = variable_type_code_from_type ( type )
201201 variable_pb = variable_for_user_pb ( user , key , type_code )
@@ -204,7 +204,7 @@ def variable(user, key, default, opts = {})
204204 defaulted = false
205205 eval = get_eval_reason ( variable_pb )
206206 else
207- eval = { reason : DevCycle ::DEFAULT_REASONS ::USER_NOT_TARGETED , details : DevCycle ::DEFAULT_REASONS ::USER_NOT_TARGETED }
207+ eval = { reason : DevCycle ::DEFAULT_REASONS ::USER_NOT_TARGETED , details : DevCycle ::DEFAULT_REASON_DETAILS ::USER_NOT_TARGETED }
208208 end
209209 else
210210 @logger . warn ( "Local bucketing not initialized, returning default value for variable #{ key } " )
@@ -581,7 +581,7 @@ def get_variable_value(variable_pb)
581581
582582 def get_eval_reason ( variable_pb )
583583 if variable_pb . eval . nil?
584- { reason : DevCycle ::DEFAULT_REASONS ::UNKNOWN , details : DevCycle ::DEFAULT_REASONS :: UNKNOWN }
584+ { reason : DevCycle ::DEFAULT_REASONS ::USER_NOT_TARGETED , details : DevCycle ::DEFAULT_REASON_DETAILS :: USER_NOT_TARGETED }
585585 else
586586 puts ( "variable_pb.eval bruh: #{ variable_pb . eval } " )
587587 { reason : variable_pb . eval . reason , details : variable_pb . eval . details }
0 commit comments