]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16251 Use calendarInterval and not deprecated dateHistogramInterval
authorAntoine Vinot <antoine.vinot@sonarsource.com>
Mon, 6 Jun 2022 15:30:00 +0000 (17:30 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 8 Jun 2022 20:02:53 +0000 (20:02 +0000)
server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java

index 6b6fe478b9863f465b981f227fde98620fafe56e..dd303ee35c4e5288c376f043f81dc7967f928746 100644 (file)
@@ -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()))