Skip to content
Snippets Groups Projects
Commit 0f3f21fe authored by uhensler's avatar uhensler
Browse files

OO-4074: Average calculation in trend diagram should respect all rubric sliders

parent 58b5cfab
No related branches found
No related tags found
No related merge requests found
...@@ -322,7 +322,7 @@ public class QualityAnalysisServiceImpl implements QualityAnalysisService { ...@@ -322,7 +322,7 @@ public class QualityAnalysisServiceImpl implements QualityAnalysisService {
List<String> identifiers = rubrics.stream().map(Rubric::getSliders).flatMap(s -> s.stream()).map(Slider::getId).collect(toList()); List<String> identifiers = rubrics.stream().map(Rubric::getSliders).flatMap(s -> s.stream()).map(Slider::getId).collect(toList());
List<RawGroupedStatistic> statisticsList = filterDao.loadGroupedStatistic(searchParams, List<RawGroupedStatistic> statisticsList = filterDao.loadGroupedStatistic(searchParams,
identifiers, true, groupBy, temporalGroupBy); identifiers, false, groupBy, temporalGroupBy);
GroupedStatistics<RawGroupedStatistic> rawStatistics = new GroupedStatistics<>(statisticsList); GroupedStatistics<RawGroupedStatistic> rawStatistics = new GroupedStatistics<>(statisticsList);
GroupedStatistics<GroupedStatistic> statistics = statisticsCalculator.getGroupedStatistics(rawStatistics, rubrics); GroupedStatistics<GroupedStatistic> statistics = statisticsCalculator.getGroupedStatistics(rawStatistics, rubrics);
return statisticsCalculator.getTrendsByMultiKey(statistics, temporalGroupBy); return statisticsCalculator.getTrendsByMultiKey(statistics, temporalGroupBy);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment