Skip to content

Commit

Permalink
test: remove extra spaces and timeField=\\"products.created_on\\"} to…
Browse files Browse the repository at this point in the history
… timeField=\"products.created_on\"}
  • Loading branch information
mbondyra committed Apr 29, 2020
1 parent 93e6956 commit caad0b7
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions x-pack/plugins/lens/server/migrations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,22 +268,10 @@ describe('Lens migrations', () => {
attributes: {
...example.attributes,
expression: `kibana
| kibana_context query="{\\"query\\":\\"\\",\\"language\\":\\"kuery\\"}" filters="[]"
| lens_merge_tables layerIds="bd09dc71-a7e2-42d0-83bd-85df8291f03c"
tables={esaggs
index="ff959d40-b880-11e8-a6d9-e546fe2bba5f"
metricsAtAllLevels=false
partialRows=false
includeFormatHints=true
aggConfigs="[{\\"id\\":\\"1d9cc16c-1460-41de-88f8-471932ecbc97\\",\\"enabled\\":true,\\"type\\":\\"date_histogram\\",\\"schema\\":\\"segment\\",\\"params\\":{\\"field\\":\\"products.created_on\\",\\"useNormalizedEsInterval\\":true,\\"interval\\":\\"auto\\",\\"drop_partials\\":false,\\"min_doc_count\\":0,\\"extended_bounds\\":{}}},{\\"id\\":\\"66115819-8481-4917-a6dc-8ffb10dd02df\\",\\"enabled\\":true,\\"type\\":\\"count\\",\\"schema\\":\\"metric\\",\\"params\\":{}}]"
timeField=\\"products.created_on\\"
}
| lens_xy_chart
xTitle="products.created_on"
yTitle="Count of records"
legend={lens_xy_legendConfig isVisible=true position="right"}
layers={}
`,
| kibana_context query="{\\"query\\":\\"\\",\\"language\\":\\"kuery\\"}" filters="[]"
| lens_merge_tables layerIds="bd09dc71-a7e2-42d0-83bd-85df8291f03c"
tables={esaggs index="ff959d40-b880-11e8-a6d9-e546fe2bba5f" metricsAtAllLevels=false partialRows=false includeFormatHints=true aggConfigs="[{\\"id\\":\\"1d9cc16c-1460-41de-88f8-471932ecbc97\\",\\"enabled\\":true,\\"type\\":\\"date_histogram\\",\\"schema\\":\\"segment\\",\\"params\\":{\\"field\\":\\"products.created_on\\",\\"useNormalizedEsInterval\\":true,\\"interval\\":\\"auto\\",\\"drop_partials\\":false,\\"min_doc_count\\":0,\\"extended_bounds\\":{}}},{\\"id\\":\\"66115819-8481-4917-a6dc-8ffb10dd02df\\",\\"enabled\\":true,\\"type\\":\\"count\\",\\"schema\\":\\"metric\\",\\"params\\":{}}]" timeField=\"products.created_on\"}
| lens_xy_chart xTitle="products.created_on" yTitle="Count of records" legend={lens_xy_legendConfig isVisible=true position="right"} layers={}`,
},
};
const result = migrations['7.8.0'](input, context);
Expand Down

0 comments on commit caad0b7

Please sign in to comment.