@@ -192,7 +192,7 @@ def _remove_empty_spaces(value, operation):
192192 """
193193 strip_value = value .strip ()
194194 if value != strip_value :
195- _LOGGER .warning ("%s: feature_name '%s' has extra whitespace, trimming." , operation , value )
195+ _LOGGER .warning ("%s: feature flag name '%s' has extra whitespace, trimming." , operation , value )
196196 return strip_value
197197
198198
@@ -234,9 +234,9 @@ def validate_key(key, method_name):
234234
235235def validate_feature_name (feature_name , should_validate_existance , split_storage , method_name ):
236236 """
237- Check if feature_name is valid for get_treatment.
237+ Check if feature flag name is valid for get_treatment.
238238
239- :param feature_name: feature_name to be checked
239+ :param feature_name: feature flag name to be checked
240240 :type feature_name: str
241241 :return: feature_name
242242 :rtype: str|None
@@ -249,7 +249,7 @@ def validate_feature_name(feature_name, should_validate_existance, split_storage
249249 if should_validate_existance and split_storage .get (feature_name ) is None :
250250 _LOGGER .warning (
251251 "%s: you passed \" %s\" that does not exist in this environment, "
252- "please double check what Splits exist in the web console ." ,
252+ "please double check what Feature flags exist in the Split user interface ." ,
253253 method_name ,
254254 feature_name
255255 )
@@ -283,7 +283,7 @@ def validate_traffic_type(traffic_type, should_validate_existance, split_storage
283283
284284 :param traffic_type: traffic_type to be checked
285285 :type traffic_type: str
286- :param should_validate_existance: Whether to check for existante in the split storage.
286+ :param should_validate_existance: Whether to check for existante in the feature flag storage.
287287 :type should_validate_existance: bool
288288 :param split_storage: Split storage.
289289 :param split_storage: splitio.storages.SplitStorage
@@ -301,7 +301,7 @@ def validate_traffic_type(traffic_type, should_validate_existance, split_storage
301301
302302 if should_validate_existance and not split_storage .is_valid_traffic_type (traffic_type ):
303303 _LOGGER .warning (
304- 'track: Traffic Type %s does not have any corresponding Splits in this environment, '
304+ 'track: Traffic Type %s does not have any corresponding Feature flags in this environment, '
305305 'make sure you\' re tracking your events to a valid traffic type defined '
306306 'in the Split console.' ,
307307 traffic_type
@@ -346,9 +346,9 @@ def validate_value(value):
346346
347347def validate_manager_feature_name (feature_name , should_validate_existance , split_storage ):
348348 """
349- Check if feature_name is valid for track.
349+ Check if feature flag name is valid for track.
350350
351- :param feature_name: feature_name to be checked
351+ :param feature_name: feature flag name to be checked
352352 :type feature_name: str
353353 :return: feature_name
354354 :rtype: str|None
@@ -361,7 +361,7 @@ def validate_manager_feature_name(feature_name, should_validate_existance, split
361361 if should_validate_existance and split_storage .get (feature_name ) is None :
362362 _LOGGER .warning (
363363 "split: you passed \" %s\" that does not exist in this environment, "
364- "please double check what Splits exist in the web console ." ,
364+ "please double check what Feature flags exist in the Split user interface ." ,
365365 feature_name
366366 )
367367 return None
@@ -376,27 +376,27 @@ def validate_features_get_treatments( # pylint: disable=invalid-name
376376 split_storage = None
377377):
378378 """
379- Check if features is valid for get_treatments.
379+ Check if feature flags is valid for get_treatments.
380380
381- :param features: array of features
381+ :param features: array of feature flags
382382 :type features: list
383383 :return: filtered_features
384384 :rtype: tuple
385385 """
386386 if features is None or not isinstance (features , list ):
387- _LOGGER .error ("%s: feature_names must be a non-empty array." , method_name )
387+ _LOGGER .error ("%s: feature flag names must be a non-empty array." , method_name )
388388 return None , None
389389 if not features :
390- _LOGGER .error ("%s: feature_names must be a non-empty array." , method_name )
390+ _LOGGER .error ("%s: feature flag names must be a non-empty array." , method_name )
391391 return None , None
392392 filtered_features = set (
393393 _remove_empty_spaces (feature , method_name ) for feature in features
394394 if feature is not None and
395- _check_is_string (feature , 'feature_name ' , method_name ) and
396- _check_string_not_empty (feature , 'feature_name ' , method_name )
395+ _check_is_string (feature , 'feature flag name ' , method_name ) and
396+ _check_string_not_empty (feature , 'feature flag name ' , method_name )
397397 )
398398 if not filtered_features :
399- _LOGGER .error ("%s: feature_names must be a non-empty array." , method_name )
399+ _LOGGER .error ("%s: feature flag names must be a non-empty array." , method_name )
400400 return None , None
401401
402402 if not should_validate_existance :
@@ -406,7 +406,7 @@ def validate_features_get_treatments( # pylint: disable=invalid-name
406406 for missing_feature in valid_missing_features :
407407 _LOGGER .warning (
408408 "%s: you passed \" %s\" that does not exist in this environment, "
409- "please double check what Splits exist in the web console ." ,
409+ "please double check what Feature flags exist in the Split user interface ." ,
410410 method_name ,
411411 missing_feature
412412 )
@@ -415,9 +415,9 @@ def validate_features_get_treatments( # pylint: disable=invalid-name
415415
416416def generate_control_treatments (features , method_name ):
417417 """
418- Generate valid features to control.
418+ Generate valid feature flags to control.
419419
420- :param features: array of features
420+ :param features: array of feature flags
421421 :type features: list
422422 :return: dict
423423 :rtype: dict|None
0 commit comments