From 710a74137af962942dac77a2422a3bba33e0122e Mon Sep 17 00:00:00 2001 From: Corey Robertson Date: Tue, 24 Aug 2021 14:11:18 -0400 Subject: [PATCH] Clean up --- src/plugins/discover/common/index.ts | 1 + src/plugins/expressions/public/mocks.tsx | 2 ++ src/plugins/expressions/server/mocks.ts | 2 ++ .../canvas_plugin_src/functions/external/saved_lens.test.ts | 2 +- .../canvas_plugin_src/functions/external/saved_map.test.ts | 2 +- .../canvas_plugin_src/functions/external/saved_search.test.ts | 2 +- .../functions/external/saved_visualization.test.ts | 2 +- 7 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/plugins/discover/common/index.ts b/src/plugins/discover/common/index.ts index 63f03655d935b..b30fcf972eda5 100644 --- a/src/plugins/discover/common/index.ts +++ b/src/plugins/discover/common/index.ts @@ -20,3 +20,4 @@ export const MODIFY_COLUMNS_ON_SWITCH = 'discover:modifyColumnsOnSwitch'; export const SEARCH_FIELDS_FROM_SOURCE = 'discover:searchFieldsFromSource'; export const MAX_DOC_FIELDS_DISPLAYED = 'discover:maxDocFieldsDisplayed'; export const SHOW_MULTIFIELDS = 'discover:showMultiFields'; +export const SEARCH_EMBEDDABLE_TYPE = 'search'; diff --git a/src/plugins/expressions/public/mocks.tsx b/src/plugins/expressions/public/mocks.tsx index 84287aefe046b..3a5450fc02837 100644 --- a/src/plugins/expressions/public/mocks.tsx +++ b/src/plugins/expressions/public/mocks.tsx @@ -16,6 +16,7 @@ export type Start = jest.Mocked; const createSetupContract = (): Setup => { const setupContract: Setup = { + extract: jest.fn(), fork: jest.fn(), getFunction: jest.fn(), getFunctions: jest.fn(), @@ -23,6 +24,7 @@ const createSetupContract = (): Setup => { getRenderers: jest.fn(), getType: jest.fn(), getTypes: jest.fn(), + inject: jest.fn(), registerFunction: jest.fn(), registerRenderer: jest.fn(), registerType: jest.fn(), diff --git a/src/plugins/expressions/server/mocks.ts b/src/plugins/expressions/server/mocks.ts index 9bc25d89a04ca..f4379145f6a6c 100644 --- a/src/plugins/expressions/server/mocks.ts +++ b/src/plugins/expressions/server/mocks.ts @@ -15,6 +15,7 @@ export type Start = jest.Mocked; const createSetupContract = (): Setup => { const setupContract: Setup = { + extract: jest.fn(), fork: jest.fn(), getFunction: jest.fn(), getFunctions: jest.fn(), @@ -22,6 +23,7 @@ const createSetupContract = (): Setup => { getRenderers: jest.fn(), getType: jest.fn(), getTypes: jest.fn(), + inject: jest.fn(), registerFunction: jest.fn(), registerRenderer: jest.fn(), registerType: jest.fn(), diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.test.ts b/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.test.ts index 55ad7fd4d3cef..e3e6afae8bd69 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.test.ts +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_lens.test.ts @@ -6,7 +6,7 @@ */ import { savedLens } from './saved_lens'; -import { getQueryFilters } from '../../../public/lib/build_embeddable_filters'; +import { getQueryFilters } from '../../../common/lib/build_embeddable_filters'; import { ExpressionValueFilter } from '../../../types'; const filterContext: ExpressionValueFilter = { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_map.test.ts b/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_map.test.ts index 02c0af2984520..88acf0deabb35 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_map.test.ts +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_map.test.ts @@ -6,7 +6,7 @@ */ import { savedMap } from './saved_map'; -import { getQueryFilters } from '../../../public/lib/build_embeddable_filters'; +import { getQueryFilters } from '../../../common/lib/build_embeddable_filters'; import { ExpressionValueFilter } from '../../../types'; const filterContext: ExpressionValueFilter = { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_search.test.ts b/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_search.test.ts index f7cf8c47803ac..da0ffcd8f3886 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_search.test.ts +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_search.test.ts @@ -6,7 +6,7 @@ */ import { savedSearch } from './saved_search'; -import { buildEmbeddableFilters } from '../../../public/lib/build_embeddable_filters'; +import { buildEmbeddableFilters } from '../../../common/lib/build_embeddable_filters'; import { ExpressionValueFilter } from '../../../types'; const filterContext: ExpressionValueFilter = { diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_visualization.test.ts b/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_visualization.test.ts index 3b1d431f2d641..52c452e61bd55 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_visualization.test.ts +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_visualization.test.ts @@ -6,7 +6,7 @@ */ import { savedVisualization } from './saved_visualization'; -import { getQueryFilters } from '../../../public/lib/build_embeddable_filters'; +import { getQueryFilters } from '../../../common/lib/build_embeddable_filters'; import { ExpressionValueFilter } from '../../../types'; const filterContext: ExpressionValueFilter = {