From 857fe79ecb7263ee6fbc81a4c38d55d4cf3be724 Mon Sep 17 00:00:00 2001 From: Alex Ruiz Date: Wed, 2 Oct 2024 12:40:47 +0200 Subject: [PATCH 1/2] Fix invalid cast from SecureIndexClient to NodeClient --- .../reportsscheduler/scheduler/ReportDefinitionJobRunner.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/org/opensearch/reportsscheduler/scheduler/ReportDefinitionJobRunner.kt b/src/main/kotlin/org/opensearch/reportsscheduler/scheduler/ReportDefinitionJobRunner.kt index b1f6624d..f2331e28 100644 --- a/src/main/kotlin/org/opensearch/reportsscheduler/scheduler/ReportDefinitionJobRunner.kt +++ b/src/main/kotlin/org/opensearch/reportsscheduler/scheduler/ReportDefinitionJobRunner.kt @@ -23,7 +23,6 @@ import org.opensearch.reportsscheduler.index.ReportInstancesIndex import org.opensearch.reportsscheduler.model.ReportDefinitionDetails import org.opensearch.reportsscheduler.model.ReportInstance import org.opensearch.reportsscheduler.util.NotificationApiUtils.getNotificationConfigInfo -import org.opensearch.reportsscheduler.util.SecureIndexClient import org.opensearch.reportsscheduler.util.buildReportLink import org.opensearch.reportsscheduler.util.logger import org.opensearch.reportsscheduler.util.sendNotificationWithHTML @@ -43,7 +42,7 @@ internal object ReportDefinitionJobRunner : ScheduledJobRunner { * @param clusterService The ES cluster service */ fun initialize(client: Client, clusterService: ClusterService) { - this.client = SecureIndexClient(client) + this.client = client this.clusterService = clusterService } @@ -65,7 +64,7 @@ internal object ReportDefinitionJobRunner : ScheduledJobRunner { val htmlWithURL: String? = htmlMessage?.replace("{{urlDefinition}}", urlDefinition)?.replace("{{hits}}", hits.toString()) - log.info("esto es el mensaje html $htmlMessage") + log.debug("HTML message: $htmlMessage") // TODO remove configInfo.sendNotificationWithHTML( this.client, title, From 3b03eb3c5de5dfcc0d83c90fa549aab0a8187401 Mon Sep 17 00:00:00 2001 From: Alex Ruiz Date: Wed, 2 Oct 2024 12:45:21 +0200 Subject: [PATCH 2/2] Add labels to issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .github/ISSUE_TEMPLATE/feature_request.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 29eddb95..4dceb58b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -2,7 +2,7 @@ name: 🐛 Bug report about: Create a report to help us improve title: '[BUG]' -labels: 'bug, untriaged' +labels: ["type/bug", "level/task"] assignees: '' --- diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 6198f338..e7a0a49c 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,8 +1,8 @@ --- name: 🎆 Feature request about: Request a feature in this project -title: '[FEATURE]' -labels: 'enhancement, untriaged' +title: '' +labels: ["type/enhancement", "level/task"] assignees: '' --- **Is your feature request related to a problem?**