sql-jarvis 2.1.7 → 2.1.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bed2c3742ad4617f4a401c4bca5715650847a537a11b26e60002e8d3524b4e57
|
4
|
+
data.tar.gz: 51ae9548f63a59916e0ae1a3237f90b1f36c8427b23b9207cb563a2ae12341f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abf69aec7584c0d0949f0fb6cfc5ebeca932a8ed1f79adafd6f3188a3b081185fc3f39486d6f169490ee90ce2507f5f0615a3b388e1c02325e6b5a110d1d30a0
|
7
|
+
data.tar.gz: d2bdaf214ea4838a2be9b394613664409b517d716cbec038ebb4550300176e699cd178e85eaa8a512e3d551bd9afaea6cfb1b807a4419b402cf8c553676c46e2
|
@@ -2,7 +2,6 @@ module Blazer
|
|
2
2
|
class ChecksController < BaseController
|
3
3
|
before_action :set_check, only: [:edit, :update, :destroy, :run]
|
4
4
|
before_action :set_new_check, only: [:new]
|
5
|
-
before_action :set_accessible, only: [:new, :edit]
|
6
5
|
|
7
6
|
def index
|
8
7
|
state_order = [nil, "disabled", "error", "timed out", "failing", "passing"]
|
@@ -58,7 +57,8 @@ module Blazer
|
|
58
57
|
@check = Blazer::Check.new(query_id: params[:query_id])
|
59
58
|
end
|
60
59
|
|
61
|
-
|
60
|
+
helper_method :slack_mentions
|
61
|
+
def slack_mentions
|
62
62
|
existed_members = @check&.slack_members.presence || []
|
63
63
|
@slack_mentions ||= get_slack_mentions + existed_members.each_with_object([]) { |m, list| list << [m, m] if m.present? }
|
64
64
|
ensure
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Blazer
|
2
2
|
class QueriesController < BaseController
|
3
3
|
before_action :set_query, only: [:show, :edit, :update, :destroy, :refresh]
|
4
|
-
before_action :set_data_source, only: [:new, :edit, :tables, :docs, :schema, :cancel, :columns]
|
4
|
+
before_action :set_data_source, only: [:new, :edit, :tables, :docs, :schema, :cancel, :columns, :update]
|
5
5
|
before_action :set_accessible, only: [:new, :create, :show, :edit, :update, :destroy, :refresh]
|
6
6
|
|
7
7
|
def home
|
@@ -42,9 +42,10 @@
|
|
42
42
|
.form-group
|
43
43
|
= f.label :slack_channels
|
44
44
|
= f.text_field :slack_channels, placeholder: "Optional, comma separated", class: "form-control"
|
45
|
+
- if slack_mentions.present?
|
45
46
|
.form-group
|
46
47
|
= f.label :slack_members
|
47
|
-
= f.collection_select :slack_members,
|
48
|
+
= f.collection_select :slack_members, slack_mentions, :first, :last, {}, { placeholder: "User, Users group Slack ID", class: "form-control", multiple: true }
|
48
49
|
%p.text-muted Slack members: can select or enter new user/user_group Slack ID. It also supports special mentions: channel, everyone, here.
|
49
50
|
%p.text-muted
|
50
51
|
Emails #{Blazer.slack? ? "and Slack notifications " : nil}are sent when a check starts failing, and when it starts passing again.
|
data/lib/blazer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sql-jarvis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|