Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
3572692f
Commit
3572692f
authored
Sep 28, 2018
by
Erik Sundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stackdriver: make it impossible to select no aggregation when a group by is selected
parent
cdcb14f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
public/app/plugins/datasource/stackdriver/query_aggregation_ctrl.ts
+6
-0
public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts
+1
-0
No files found.
public/app/plugins/datasource/stackdriver/query_aggregation_ctrl.ts
View file @
3572692f
...
...
@@ -65,6 +65,12 @@ export class StackdriverAggregationCtrl {
const
newValue
=
this
.
aggOptions
.
find
(
o
=>
o
.
value
!==
'REDUCE_NONE'
);
this
.
target
.
aggregation
.
crossSeriesReducer
=
newValue
?
newValue
.
value
:
''
;
}
if
(
this
.
target
.
aggregation
.
groupBys
.
length
>
0
)
{
this
.
aggOptions
=
this
.
aggOptions
.
filter
(
o
=>
o
.
value
!==
'REDUCE_NONE'
);
const
newValue
=
this
.
aggOptions
.
find
(
o
=>
o
.
value
!==
'REDUCE_NONE'
);
this
.
target
.
aggregation
.
crossSeriesReducer
=
newValue
?
newValue
.
value
:
''
;
}
}
formatAlignmentText
()
{
...
...
public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts
View file @
3572692f
...
...
@@ -241,6 +241,7 @@ export class StackdriverFilterCtrl {
this
.
target
.
aggregation
.
groupBys
=
this
.
groupBySegments
.
reduce
(
reducer
,
[]);
this
.
ensurePlusButton
(
this
.
groupBySegments
);
this
.
$rootScope
.
$broadcast
(
'metricTypeChanged'
);
this
.
$scope
.
refresh
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment