/** * Gets lists of {@link ProblemSummary} objects organized by {@link IssueCategoryModel}. */ public static Map<IssueCategoryModel, List<ProblemSummary>> getProblemSummaries( GraphContext graphContext, Set<ProjectModel> projectModels, Set<String> includeTags, Set<String> excludeTags) { return getProblemSummaries(graphContext, projectModels, includeTags, excludeTags, false, false); }
addToResults(results, summary); addToResults(results, summary);
addToResults(results, summary); addToResults(results, summary);
/** * Gets lists of {@link ProblemSummary} objects organized by {@link IssueCategoryModel}. */ public static Map<IssueCategoryModel, List<ProblemSummary>> getProblemSummaries( GraphContext graphContext, Set<ProjectModel> projectModels, Set<String> includeTags, Set<String> excludeTags) { return getProblemSummaries(graphContext, projectModels, includeTags, excludeTags, false, false); }
= ProblemSummaryService.getProblemSummaries(event.getGraphContext(), projectModels, includeTags, excludeTags);
= ProblemSummaryService.getProblemSummaries(event.getGraphContext(), projectModels, includeTags, excludeTags);
Map<IssueCategoryModel, List<ProblemSummary>> issues = ProblemSummaryService.getProblemSummaries( graphContext, projectModels,
/** * This counts incidents for every category issue type */ @Override public EffortByCategoryDTO getAggregatedCategories(Long executionId, Map<String, Object> filterAsMap) { GraphContext graphContext = this.getGraph(executionId); Set<String> includeTags = new HashSet<>(); Set<String> excludeTags = new HashSet<>(); Set<ProjectModel> projectModels = null; //ReportFilterDTO filter = this.reportFilterService.getReportFilter(executionId); ReportFilterDTO filter = this.reportFilterService.getReportFilterFromMap(filterAsMap); if (filter.isEnabled()) { includeTags.addAll(filter.getIncludeTags()); excludeTags.addAll(filter.getExcludeTags()); projectModels = this.getProjectModels(graphContext, filter); } Map<IssueCategoryModel, List<ProblemSummary>> issues = ProblemSummaryService.getProblemSummaries( graphContext, projectModels, includeTags, excludeTags, true, false); return getIncidentsByEffort(issues); }
ProblemSummaryService.getProblemSummaries( event.getGraphContext(), projectModelTraversal.getAllProjects(true), Collections.emptySet(), Collections.emptySet()) .entrySet().stream().collect(Collectors.toMap((e) -> e.getKey().getCategoryID(), Map.Entry::getValue));
ProblemSummaryService.getProblemSummaries( event.getGraphContext(), projectModelTraversal.getAllProjects(true), Collections.emptySet(), Collections.emptySet()) .entrySet().stream().collect(Collectors.toMap((e) -> e.getKey().getCategoryID(), Map.Entry::getValue));