From e1cd48b46309de3b6150ef2a032848a2b2dd5e47 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Fri, 3 Jun 2011 20:43:47 +0400 Subject: [PATCH] SONAR-2396 Disallow selection of 'new_' metrics for alerts --- .../src/main/webapp/WEB-INF/app/views/alerts/_new.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/alerts/_new.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/alerts/_new.html.erb index a96fe2aa5cf..a3e6dcbc2f8 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/alerts/_new.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/alerts/_new.html.erb @@ -15,7 +15,8 @@ <% Metric.domains.each do |domain| %> - <% Metric.by_domain(domain).select{|m| m.alertable? }.each do |metric| %> + <%# 'new_' metrics excluded due to SONAR-2396 %> + <% Metric.by_domain(domain).select{ |m| m.alertable? && !m.name.start_with?("new_") }.each do |metric| %> <% end %> -- 2.39.5