Browse Source

SONAR-16251 Use calendarInterval and not deprecated dateHistogramInterval

tags/9.5.0.56709
Antoine Vinot 2 years ago
parent
commit
a59c04aafa

+ 1
- 1
server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java View 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()))

Loading…
Cancel
Save