From 084a07636885c6c48b58def9638a3b29ad7c5c95 Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad Date: Fri, 25 Oct 2024 20:14:22 -0700 Subject: [PATCH] Fix release metrics query Signed-off-by: Sayali Gaikawad --- src/jenkins/ReleaseMetricsData.groovy | 1 - tests/jenkins/TestReleaseMetricsData.groovy | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/jenkins/ReleaseMetricsData.groovy b/src/jenkins/ReleaseMetricsData.groovy index 39edff67..80b63741 100644 --- a/src/jenkins/ReleaseMetricsData.groovy +++ b/src/jenkins/ReleaseMetricsData.groovy @@ -10,7 +10,6 @@ package jenkins import groovy.json.JsonOutput -import groovyjarjarantlr.collections.List import utils.OpenSearchMetricsQuery class ReleaseMetricsData { diff --git a/tests/jenkins/TestReleaseMetricsData.groovy b/tests/jenkins/TestReleaseMetricsData.groovy index 9619a0ce..c2894780 100644 --- a/tests/jenkins/TestReleaseMetricsData.groovy +++ b/tests/jenkins/TestReleaseMetricsData.groovy @@ -78,21 +78,21 @@ class TestReleaseMetricsData { filter: [ [ match_phrase: [ - component: "sql" + version: "2.18.0" ] ], [ match_phrase: [ - version: "2.18.0" + "component": "sql" ] ] ] - ], - sort: [ - [ - current_date: [ - order: "desc" - ] + ] + ], + sort : [ + [ + current_date: [ + order: "desc" ] ] ]