From ca22ab48ceb1cdba677740dafb55de3fe55febf4 Mon Sep 17 00:00:00 2001 From: Lorenzo Fontana Date: Thu, 8 Nov 2018 11:57:44 +0100 Subject: [PATCH] fix(flux/pivot): specify the right key for columnKey and valueKey Signed-off-by: Lorenzo Fontana --- CHANGELOG.md | 1 + ui/src/flux/constants/functions.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26d31b1a5..ef3a16740 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ 1. [#4772](https://github.com/influxdata/chronograf/pull/4772): Add protoboards enviroment variables to dockerfile 1. [#4763](https://github.com/influxdata/chronograf/pull/4763): Fix log columns not rendering 1. [#4767](https://github.com/influxdata/chronograf/pull/4767): Fix scroll loading indicator not hiding in logs +1. [#4776](https://github.com/influxdata/chronograf/pull/4776): Fix flux pivot function using wrong named parameters ## v1.7.0 [2018-11-06] diff --git a/ui/src/flux/constants/functions.ts b/ui/src/flux/constants/functions.ts index 1ed0eed89..4cab02d0b 100644 --- a/ui/src/flux/constants/functions.ts +++ b/ui/src/flux/constants/functions.ts @@ -857,13 +857,13 @@ export const functions: FluxToolbarFunction[] = [ type: 'Array of Strings', }, { - name: 'colKey', + name: 'columnKey', desc: 'List of columns used to pivot values onto each row identified by the rowKey.', type: 'Array of Strings', }, { - name: 'valueCol', + name: 'valueColumn', desc: 'The single column that contains the value to be moved around the pivot.', type: 'String', @@ -871,7 +871,7 @@ export const functions: FluxToolbarFunction[] = [ ], desc: 'Collects values stored vertically (column-wise) in a table and aligns them horizontally (row-wise) into logical sets.', - example: 'pivot(rowKey:["_time"], colKey: ["_field"], valueCol: "_value")', + example: 'pivot(rowKey:["_time"], columnKey: ["_field"], valueColumn: "_value")', category: 'Transformations', link: 'https://docs.influxdata.com/flux/latest/functions/transformations/pivot',