kennel 1.85.0 → 1.85.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kennel/models/dashboard.rb +5 -4
- data/lib/kennel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 335173d32b02065452cf2d0266fc013113c0f1641720276326de9eeea2446ee7
|
|
4
|
+
data.tar.gz: e6dcec34359ce1d2783706c06cd802e74c7a24d3833187e21f9099a1c1134acc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a94d5cd61609d1e36fa68a23322b27f6c995f2422d5231b9117b417d7e5674d54ad24dac286820547f535999a3b66b4936754f6ac732c54e5fac36f4443390a9
|
|
7
|
+
data.tar.gz: bf7afdcfa4ff36436eb7e8eaafc3372ac6d0986e44e5c1787da11f8bd5ebb8157a0dfdc5b2b5018ccb6b9e20c96f3ada52cf46608fdc1752a4d18f2f86475045
|
|
@@ -18,8 +18,7 @@ module Kennel
|
|
|
18
18
|
SUPPORTED_DEFINITION_OPTIONS = [:events, :markers, :precision].freeze
|
|
19
19
|
|
|
20
20
|
DEFAULTS = {
|
|
21
|
-
template_variable_presets: nil
|
|
22
|
-
reflow_type: "auto"
|
|
21
|
+
template_variable_presets: nil
|
|
23
22
|
}.freeze
|
|
24
23
|
|
|
25
24
|
settings :title, :description, :definitions, :widgets, :layout_type, :template_variable_presets, :reflow_type
|
|
@@ -29,7 +28,7 @@ module Kennel
|
|
|
29
28
|
definitions: -> { [] },
|
|
30
29
|
widgets: -> { [] },
|
|
31
30
|
template_variable_presets: -> { DEFAULTS.fetch(:template_variable_presets) },
|
|
32
|
-
reflow_type: -> {
|
|
31
|
+
reflow_type: -> { layout_type == "ordered" ? "auto" : nil },
|
|
33
32
|
id: -> { nil }
|
|
34
33
|
)
|
|
35
34
|
|
|
@@ -42,6 +41,7 @@ module Kennel
|
|
|
42
41
|
super
|
|
43
42
|
|
|
44
43
|
ignore_default(expected, actual, DEFAULTS)
|
|
44
|
+
ignore_default(expected, actual, reflow_type: "auto") if expected[:layout_type] == "ordered"
|
|
45
45
|
|
|
46
46
|
widgets_pairs(expected, actual).each do |pair|
|
|
47
47
|
# conditional_formats ordering is randomly changed by datadog, compare a stable ordering
|
|
@@ -112,12 +112,13 @@ module Kennel
|
|
|
112
112
|
layout_type: layout_type,
|
|
113
113
|
title: "#{title}#{LOCK}",
|
|
114
114
|
description: description,
|
|
115
|
-
reflow_type: reflow_type,
|
|
116
115
|
template_variables: render_template_variables,
|
|
117
116
|
template_variable_presets: template_variable_presets,
|
|
118
117
|
widgets: all_widgets
|
|
119
118
|
}
|
|
120
119
|
|
|
120
|
+
@json[:reflow_type] = reflow_type if reflow_type # setting nil breaks create with "ordered"
|
|
121
|
+
|
|
121
122
|
@json[:id] = id if id
|
|
122
123
|
|
|
123
124
|
validate_json(@json) if validate
|
data/lib/kennel/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kennel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.85.
|
|
4
|
+
version: 1.85.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Grosser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-04-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|