diff options
author | Antoine Vinot <antoine.vinot@sonarsource.com> | 2022-06-06 17:30:00 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-06-08 20:02:53 +0000 |
commit | a59c04aafa00acf3ba1a3299b0637f36a63e0c8d (patch) | |
tree | 16ef4a2e8b18363e1421e9d63713dcaf609690c7 /server | |
parent | ea84ac7fdde51d7374d9af00d4eb26a14ff2e7ff (diff) | |
download | sonarqube-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.java | 2 |
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())) |