diff options
author | Dimitris Kavvathas <dimitris.kavvathas@sonarsource.com> | 2023-05-12 15:10:06 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-05-12 20:02:41 +0000 |
commit | bf41fa92c7e7c3c6a5f5aabc7d23914a21994c71 (patch) | |
tree | 173c679b37277805e7e8358a95bdb929d03d0915 /server/sonar-webserver-es/src/main | |
parent | 5bd73a2bccb04fb48faec629996b5200761f4511 (diff) | |
download | sonarqube-bf41fa92c7e7c3c6a5f5aabc7d23914a21994c71.tar.gz sonarqube-bf41fa92c7e7c3c6a5f5aabc7d23914a21994c71.zip |
SONAR-19147 Fix assigned_to_me facet
Diffstat (limited to 'server/sonar-webserver-es/src/main')
-rw-r--r-- | server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java | 3 |
1 files changed, 1 insertions, 2 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 faa16c76147..1cc371ca21b 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 @@ -970,10 +970,9 @@ public class IssueIndex { private void addAssignedToMeFacetIfNeeded(SearchOptions options, TopAggregationHelper aggregationHelper, SearchSourceBuilder esRequest) { String uuid = userSession.getUuid(); if (options.getFacets().contains(ASSIGNED_TO_ME.getName()) && !StringUtils.isEmpty(uuid)) { - AggregationBuilder aggregation = aggregationHelper.buildTermTopAggregation( + AggregationBuilder aggregation = aggregationHelper.buildTopAggregation( ASSIGNED_TO_ME.getName(), ASSIGNED_TO_ME.getTopAggregationDef(), - ASSIGNED_TO_ME.getNumberOfTerms(), NO_EXTRA_FILTER, t -> // add sub-aggregation to return issue count for current user |