aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAntoine Vinot <antoine.vinot@sonarsource.com>2022-06-06 17:30:00 +0200
committersonartech <sonartech@sonarsource.com>2022-06-08 20:02:53 +0000
commita59c04aafa00acf3ba1a3299b0637f36a63e0c8d (patch)
tree16ef4a2e8b18363e1421e9d63713dcaf609690c7 /server
parentea84ac7fdde51d7374d9af00d4eb26a14ff2e7ff (diff)
downloadsonarqube-a59c04aafa00acf3ba1a3299b0637f36a63e0c8d.tar.gz
sonarqube-a59c04aafa00acf3ba1a3299b0637f36a63e0c8d.zip
SONAR-16251 Use calendarInterval and not deprecated dateHistogramInterval
Diffstat (limited to 'server')
-rw-r--r--server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java2
1 files changed, 1 insertions, 1 deletions
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()))