Reproduce:
- Add whitelist item in global whitelist section (literals for example)
- Remove use case from the configuration file
- Save configuration file so that historical whitelist is processed
Since the use case can't be found anymore for the hits we want to remove, the global whitelist is also ignored (break statement):
# Extract information and get analyzer linked to this outlier
model_name = doc["_source"]["outliers"]["model_name"][i]
model_type = doc["_source"]["outliers"]["model_type"][i]
config_section_name = model_type + "_" + model_name
if config_section_name not in dict_with_analyzer:
self.logging.logger.debug("Outlier '" + config_section_name + "' " +
" haven't been found in configuration, could not check whitelist")
break # If one outlier is not whitelisted, we keep all other outliers
For outlier hits for which the generating use case has been deleted, the global whitelist (literals and regexp) should still be applied.
Reproduce:
Since the use case can't be found anymore for the hits we want to remove, the global whitelist is also ignored (break statement):
For outlier hits for which the generating use case has been deleted, the global whitelist (literals and regexp) should still be applied.