From: Antoine Vinot Date: Mon, 6 Jun 2022 15:30:00 +0000 (+0200) Subject: SONAR-16251 Use calendarInterval and not deprecated dateHistogramInterval X-Git-Tag: 9.5.0.56709~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a59c04aafa00acf3ba1a3299b0637f36a63e0c8d;p=sonarqube.git SONAR-16251 Use calendarInterval and not deprecated dateHistogramInterval --- diff --git a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java index 6b6fe478b98..dd303ee35c4 100644 --- a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java +++ b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java @@ -841,7 +841,7 @@ public class IssueIndex { t -> { AggregationBuilder dateHistogram = AggregationBuilders.dateHistogram(CREATED_AT.getName()) .field(CREATED_AT.getFieldName()) - .dateHistogramInterval(bucketSize) + .calendarInterval(bucketSize) .minDocCount(0L) .format(DateUtils.DATETIME_FORMAT) .timeZone(Optional.ofNullable(query.timeZone()).orElse(system.getDefaultTimeZone().toZoneId()))