Skip to content

Commit

Permalink
[lens] Fix arguments to esaggs using booleans (#39462)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wylie Conlon authored Jun 24, 2019
1 parent 8e1fdbf commit 85d4543
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ describe('IndexPattern Data Source', () => {
expect(indexPatternDatasource.toExpression(state)).toMatchInlineSnapshot(`
"esaggs
index=\\"1\\"
metricsAtAllLevels=\\"false\\"
partialRows=\\"false\\"
metricsAtAllLevels=false
partialRows=false
aggConfigs='[{\\"id\\":\\"col1\\",\\"enabled\\":true,\\"type\\":\\"count\\",\\"schema\\":\\"metric\\",\\"params\\":{}},{\\"id\\":\\"col2\\",\\"enabled\\":true,\\"type\\":\\"date_histogram\\",\\"schema\\":\\"segment\\",\\"params\\":{\\"field\\":\\"timestamp\\",\\"timeRange\\":{\\"from\\":\\"now-1d\\",\\"to\\":\\"now\\"},\\"useNormalizedEsInterval\\":true,\\"interval\\":\\"1d\\",\\"drop_partials\\":false,\\"min_doc_count\\":1,\\"extended_bounds\\":{}}}]' | lens_rename_columns idMap='{\\"col-0-col1\\":\\"col1\\",\\"col-1-col2\\":\\"col2\\"}'"
`);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export function toExpression(state: IndexPatternPrivateState) {

return `esaggs
index="${state.currentIndexPatternId}"
metricsAtAllLevels="false"
partialRows="false"
metricsAtAllLevels=false
partialRows=false
aggConfigs='${JSON.stringify(aggs)}' | lens_rename_columns idMap='${JSON.stringify(idMap)}'`;
}

Expand Down

0 comments on commit 85d4543

Please sign in to comment.