Skip to content

Commit

Permalink
Drop title from base class args
Browse files Browse the repository at this point in the history
  • Loading branch information
v-zhuravlev committed Oct 11, 2023
1 parent 2c09610 commit d31a4bc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common-lib/common/panels/generic/base.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local options = timeSeries.options;

// This is base of ALL panels in the common lib
{
new(title, targets, description=''):
new(targets, description=''):
// hidden field to hold styles modifiers

timeSeries.queryOptions.withTargets(targets)
Expand Down
2 changes: 1 addition & 1 deletion common-lib/common/panels/generic/stat/base.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local base = import '../base.libsonnet';
base {
new(title, targets, description=''):
stat.new(title)
+ super.new(title, targets, description),
+ super.new(targets, description),

stylize(allLayers=true):
(if allLayers then super.stylize() else {}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ base {

new(title, targets, description=''):
statusHistory.new(title)
+ super.new(title, targets, description)
+ super.new(targets, description)
// Minimize number of points to avoid 'Too many data points' error on large time intervals
+ statusHistory.queryOptions.withMaxDataPoints(50),

Expand Down
2 changes: 1 addition & 1 deletion common-lib/common/panels/generic/table/base.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local base = import '../base.libsonnet';
base {
new(title, targets, description=''):
table.new(title)
+ super.new(title, targets, description),
+ super.new(targets, description),

stylize(allLayers=true):
(if allLayers then super.stylize() else {}),
Expand Down
2 changes: 1 addition & 1 deletion common-lib/common/panels/generic/timeSeries/base.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local base = import '../base.libsonnet';
base {
new(title, targets, description=''):
timeSeries.new(title)
+ super.new(title, targets, description),
+ super.new(targets, description),

stylize(allLayers=true):
(if allLayers then super.stylize() else {})
Expand Down

0 comments on commit d31a4bc

Please sign in to comment.