From 60e3091a75e9619339de95d8e28b65e1b45b3426 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Wed, 6 Mar 2024 17:09:24 -0800 Subject: [PATCH] Extracted out helper function. Signed-off-by: AWSHurneyt --- .../main/kotlin/org/opensearch/alerting/util/AlertingUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/util/AlertingUtils.kt b/alerting/src/main/kotlin/org/opensearch/alerting/util/AlertingUtils.kt index 55dea88e0..0f092290c 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/util/AlertingUtils.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/util/AlertingUtils.kt @@ -194,7 +194,7 @@ fun printsSampleDocData(trigger: Trigger): Boolean { // TODO: Consider excluding `{{ctx}}` from criteria for bucket-level triggers as printing all of // their sample documents could make the notification message too large to send. action.messageTemplate.idOrCode.contains("{{ctx}}") || - action.messageTemplate.idOrCode.contains(AlertContext.SAMPLE_DOCS_FIELD) + action.messageTemplate.idOrCode.contains(AlertContext.SAMPLE_DOCS_FIELD) } }