Skip to content

Commit 91cbee7

Browse files
Merge branch 'master' into remote_clusters/flaky_tests
2 parents a1f98a0 + 7e3c68b commit 91cbee7

4 files changed

Lines changed: 14 additions & 7 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License;
4+
* you may not use this file except in compliance with the Elastic License.
5+
*/
6+
7+
export enum DemoRows {
8+
CI = 'ci',
9+
SHIRTS = 'shirts',
10+
}

x-pack/legacy/plugins/canvas/canvas_plugin_src/functions/server/demodata/get_demo_rows.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66

77
import { cloneDeep } from 'lodash';
88
import ci from './ci.json';
9+
import { DemoRows } from './demo_rows_types';
910
import shirts from './shirts.json';
1011
import { getFunctionErrors } from '../../../../i18n';
1112

12-
export enum DemoRows {
13-
CI = 'ci',
14-
SHIRTS = 'shirts',
15-
}
16-
1713
export function getDemoRows(arg: string | null) {
1814
if (arg === DemoRows.CI) {
1915
return cloneDeep(ci);

x-pack/legacy/plugins/canvas/canvas_plugin_src/functions/server/demodata/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import { sortBy } from 'lodash';
88
import { ExpressionFunctionDefinition } from 'src/plugins/expressions';
99
// @ts-ignore unconverted lib file
1010
import { queryDatatable } from '../../../../common/lib/datatable/query';
11-
import { DemoRows, getDemoRows } from './get_demo_rows';
11+
import { DemoRows } from './demo_rows_types';
12+
import { getDemoRows } from './get_demo_rows';
1213
import { Filter, Datatable, DatatableColumn, DatatableRow } from '../../../../types';
1314
import { getFunctionHelp } from '../../../../i18n';
1415

x-pack/legacy/plugins/canvas/i18n/functions/dict/demodata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { i18n } from '@kbn/i18n';
88
import { demodata } from '../../../canvas_plugin_src/functions/server/demodata';
99
import { FunctionHelp } from '../function_help';
1010
import { FunctionFactory } from '../../../types';
11-
import { DemoRows } from '../../../canvas_plugin_src/functions/server/demodata/get_demo_rows';
11+
import { DemoRows } from '../../../canvas_plugin_src/functions/server/demodata/demo_rows_types';
1212

1313
export const help: FunctionHelp<FunctionFactory<typeof demodata>> = {
1414
help: i18n.translate('xpack.canvas.functions.demodataHelpText', {

0 commit comments

Comments
 (0)