diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-27 16:44:07 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-27 16:44:07 +0200 |
commit | 97090aad19a494b36f7fc514f7eb60405bc6156f (patch) | |
tree | 79612e1dd982dd7a02d48071e29e98cbed649acf /plugins | |
parent | 3e4d1ad986e546bf6699ce12555218ac09f546ee (diff) | |
download | sonarqube-97090aad19a494b36f7fc514f7eb60405bc6156f.tar.gz sonarqube-97090aad19a494b36f7fc514f7eb60405bc6156f.zip |
SONAR-4292 Create a IssueStatsFinder to be used by UnresolvedIssuesPerAssigneeWidget
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb index a34ac48d079..e8aa7cafb25 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb @@ -6,14 +6,13 @@ options['createdAfter'] = Api::Utils.format_datetime(@dashboard_configuration.from_datetime) options['createdBefore'] = Api::Utils.format_datetime(DateTime.now) end - results = Api.issues.find(options) - issues = results.issues() + results = Internal.issues.findIssueAssignees(options) + assignees = results.results - unless issues.empty? + unless assignees.empty? issues_by_assignee = {} counter_no_assignee = 0 - issues.each do |issue| - assignee = issue.assignee() + assignees.each do |assignee| if assignee counter = issues_by_assignee[assignee] if counter @@ -35,7 +34,7 @@ <h3><%= message('widget.unresolved_issues_per_assignee.name') -%></h3> -<% if issues.size ==0 %> +<% if assignees.size ==0 %> <span class="empty_widget"><%= message('widget.unresolved_issues_per_assignee.name') -%></span> <% else %> |