Skip to content

Commit

Permalink
[Lens] add typeToAgg for median
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Dec 16, 2020
1 parent 4dccbca commit f79962e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const typeToFn: Record<string, string> = {
max: 'aggMax',
avg: 'aggAvg',
sum: 'aggSum',
median: 'aggMedian',
};

function buildMetricOperation<T extends MetricColumn<string>>({
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/functional/apps/lens/smokescreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.lens.configureDimension(
{
dimension: 'lnsXY_yDimensionPanel > lns-empty-dimension',
operation: 'avg',
operation: 'median',
field: 'bytes',
},
1
Expand Down

0 comments on commit f79962e

Please sign in to comment.