Skip to content

Commit

Permalink
geo_centroid should not be available as a metric (elastic#11630)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck authored and snide committed May 30, 2017
1 parent 74c6e81 commit a49e6b2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core_plugins/kbn_vislib_vis_types/public/area.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export default function PointSeriesVisType(Private) {
group: 'metrics',
name: 'metric',
title: 'Y-Axis',
aggFilter: ['!geo_centroid'],
min: 1,
defaults: [
{ schema: 'metric', type: 'count' }
Expand Down
1 change: 1 addition & 0 deletions src/core_plugins/kbn_vislib_vis_types/public/histogram.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export default function PointSeriesVisType(Private) {
name: 'metric',
title: 'Y-Axis',
min: 1,
aggFilter: ['!geo_centroid'],
defaults: [
{ schema: 'metric', type: 'count' }
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export default function PointSeriesVisType(Private) {
name: 'metric',
title: 'Y-Axis',
min: 1,
aggFilter: ['!geo_centroid'],
defaults: [
{ schema: 'metric', type: 'count' }
]
Expand Down
1 change: 1 addition & 0 deletions src/core_plugins/kbn_vislib_vis_types/public/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default function PointSeriesVisType(Private) {
name: 'metric',
title: 'Y-Axis',
min: 1,
aggFilter: ['!geo_centroid'],
defaults: [
{ schema: 'metric', type: 'count' }
]
Expand Down
2 changes: 1 addition & 1 deletion src/core_plugins/metric_vis/public/metric_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function MetricVisProvider(Private) {
name: 'metric',
title: 'Metric',
min: 1,
aggFilter: ['!derivative'],
aggFilter: ['!derivative', '!geo_centroid'],
defaults: [
{ type: 'count', schema: 'metric' }
]
Expand Down
1 change: 1 addition & 0 deletions src/core_plugins/table_vis/public/table_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function TableVisTypeProvider(Private) {
group: 'metrics',
name: 'metric',
title: 'Metric',
aggFilter: '!geo_centroid',
min: 1,
defaults: [
{ type: 'count', schema: 'metric' }
Expand Down

0 comments on commit a49e6b2

Please sign in to comment.