Skip to content

Commit

Permalink
fixing based on UI review
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Mar 1, 2017
1 parent 7602ee1 commit 8af734c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
ng-model="agg.type"
required
auto-select-if-only-one="aggTypeOptions | aggFilter:agg.schema.aggFilter"
ng-options="agg as agg.title for agg in aggTypeOptions | aggFilter:agg.schema.aggFilter">
ng-options="agg as agg.title group by agg.group for agg in aggTypeOptions | aggFilter:agg.schema.aggFilter">
</select>
</div>
3 changes: 2 additions & 1 deletion src/ui/public/agg_types/metrics/bucket_avg.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ export default function AggTypeMetricDerivativeProvider(Private) {

return new MetricAggType({
name: 'avg_bucket',
title: 'Bucket Average',
title: 'Average Bucket',
makeLabel: agg => makeNestedLabel(agg, 'overall average'),
group: 'Pipeline Aggregations',
params: [
...siblingPipelineHelper.params()
]
Expand Down
3 changes: 2 additions & 1 deletion src/ui/public/agg_types/metrics/bucket_max.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ export default function AggTypeMetricDerivativeProvider(Private) {

return new MetricAggType({
name: 'max_bucket',
title: 'Bucket Max',
title: 'Max Bucket',
makeLabel: agg => makeNestedLabel(agg, 'overall max'),
group: 'Pipeline Aggregations',
params: [
...siblingPipelineHelper.params()
]
Expand Down
3 changes: 2 additions & 1 deletion src/ui/public/agg_types/metrics/bucket_min.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ export default function AggTypeMetricDerivativeProvider(Private) {

return new MetricAggType({
name: 'min_bucket',
title: 'Bucket Min',
title: 'Min Bucket',
makeLabel: agg => makeNestedLabel(agg, 'overall min'),
group: 'Pipeline Aggregations',
params: [
...siblingPipelineHelper.params()
]
Expand Down
3 changes: 2 additions & 1 deletion src/ui/public/agg_types/metrics/bucket_sum.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ export default function AggTypeMetricDerivativeProvider(Private) {

return new MetricAggType({
name: 'sum_bucket',
title: 'Bucket Sum',
title: 'Sum Bucket',
makeLabel: agg => makeNestedLabel(agg, 'overall sum'),
group: 'Pipeline Aggregations',
params: [
...siblingPipelineHelper.params()
]
Expand Down
1 change: 1 addition & 0 deletions src/ui/public/agg_types/metrics/derivative.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default function AggTypeMetricDerivativeProvider(Private) {
return new MetricAggType({
name: 'derivative',
title: 'Derivative',
group: 'Pipeline Aggregations',
makeLabel: agg => makeNestedLabel(agg, 'derivative'),
params: [
...parentPipelineAggHelper.params()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const SiblingPipelineAggHelperProvider = function (Private) {
const AggConfig = Private(VisAggConfigProvider);
const Schemas = Private(VisSchemasProvider);

const metricAggFilter = ['!top_hits', '!percentiles', '!percentile_ranks', '!median', '!std_dev'];
const metricAggFilter = ['!top_hits', '!percentiles', '!percentile_ranks', '!median', '!std_dev',
'!sum_bucket', '!avg_bucket', '!min_bucket', '!max_bucket'];

const metricAggSchema = (new Schemas([
{
group: 'none',
Expand Down
1 change: 1 addition & 0 deletions src/ui/public/agg_types/metrics/metric_agg_type.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default function MetricAggTypeProvider(Private) {
}, this);
}

MetricAggType.prototype.group = 'Basic Aggregations';
/**
* Read the values for this metric from the
* @param {[type]} bucket [description]
Expand Down

0 comments on commit 8af734c

Please sign in to comment.