Skip to content

Commit

Permalink
Merge branch 'master' into remote_clusters/flaky_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine authored Apr 8, 2020
2 parents a1f98a0 + 7e3c68b commit 91cbee7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export enum DemoRows {
CI = 'ci',
SHIRTS = 'shirts',
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@

import { cloneDeep } from 'lodash';
import ci from './ci.json';
import { DemoRows } from './demo_rows_types';
import shirts from './shirts.json';
import { getFunctionErrors } from '../../../../i18n';

export enum DemoRows {
CI = 'ci',
SHIRTS = 'shirts',
}

export function getDemoRows(arg: string | null) {
if (arg === DemoRows.CI) {
return cloneDeep(ci);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { sortBy } from 'lodash';
import { ExpressionFunctionDefinition } from 'src/plugins/expressions';
// @ts-ignore unconverted lib file
import { queryDatatable } from '../../../../common/lib/datatable/query';
import { DemoRows, getDemoRows } from './get_demo_rows';
import { DemoRows } from './demo_rows_types';
import { getDemoRows } from './get_demo_rows';
import { Filter, Datatable, DatatableColumn, DatatableRow } from '../../../../types';
import { getFunctionHelp } from '../../../../i18n';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { i18n } from '@kbn/i18n';
import { demodata } from '../../../canvas_plugin_src/functions/server/demodata';
import { FunctionHelp } from '../function_help';
import { FunctionFactory } from '../../../types';
import { DemoRows } from '../../../canvas_plugin_src/functions/server/demodata/get_demo_rows';
import { DemoRows } from '../../../canvas_plugin_src/functions/server/demodata/demo_rows_types';

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

0 comments on commit 91cbee7

Please sign in to comment.