Skip to content

Business intelligence made simple

Improved backwards compatibility [skip ci]

Andrew Kaned5cb262866a7
diff --git a/app/controllers/blazer/checks_controller.rb b/app/controllers/blazer/checks_controller.rb
index 4bdaad7e..58548945 100644
--- a/app/controllers/blazer/checks_controller.rb
+++ b/app/controllers/blazer/checks_controller.rb
@@ -5,7 +5,7 @@ module Blazer
def index
state_order = [nil, "disabled", "error", "timed out", "failing", "passing"]
@checks = Blazer::Check.joins(:query).includes(:query).order("blazer_queries.name, blazer_checks.id").to_a.sort_by { |q| state_order.index(q.state) || 99 }
- @checks.select! { |c| ([c.query.name] + Blazer.notifiers.flat_map { |n| n.notify_list(c) }).join(" ").downcase.include?(params[:q]) } if params[:q]
+ @checks.select! { |c| "#{c.query.name} #{Blazer.notifiers.flat_map { |n| n.notify_list(c) }.join(", ")}".downcase.include?(params[:q]) } if params[:q]
end
def new