From 3d226b29981119b93e0ba60db0142984e8c91a7f Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Mon, 31 Jan 2022 20:27:53 +0000 Subject: [PATCH] [Bug] fix incorrect import for opensearch aggs Incorrect import statement that was introduced here: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/688 Verified other imports and the rest look fine. Issue: n/a Signed-off-by: Kawika Avilla --- src/plugins/data/common/search/expressions/opensearchaggs.ts | 2 +- src/plugins/data/config.ts | 2 +- .../test_suites/run_pipeline/{esaggs.ts => opensearchaggs.ts} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename test/interpreter_functional/test_suites/run_pipeline/{esaggs.ts => opensearchaggs.ts} (100%) diff --git a/src/plugins/data/common/search/expressions/opensearchaggs.ts b/src/plugins/data/common/search/expressions/opensearchaggs.ts index a5f884ff7b2b..b60ea4c3697f 100644 --- a/src/plugins/data/common/search/expressions/opensearchaggs.ts +++ b/src/plugins/data/common/search/expressions/opensearchaggs.ts @@ -34,7 +34,7 @@ import { OpenSearchDashboardsContext, OpenSearchDashboardsDatatable, ExpressionFunctionDefinition, -} from '../../../common/search'; +} from '../../../../expressions/common'; type Input = OpenSearchDashboardsContext | null; type Output = Promise; diff --git a/src/plugins/data/config.ts b/src/plugins/data/config.ts index 96016e16bb91..71d1d54e3656 100644 --- a/src/plugins/data/config.ts +++ b/src/plugins/data/config.ts @@ -45,7 +45,7 @@ export const configSchema = schema.object({ aggs: schema.object({ shardDelay: schema.object({ // Whether or not to register the shard_delay (which is only available in snapshot versions - // of Elasticsearch) agg type/expression function to make it available in the UI for either + // of OpenSearch) agg type/expression function to make it available in the UI for either // functional or manual testing enabled: schema.boolean({ defaultValue: false }), }), diff --git a/test/interpreter_functional/test_suites/run_pipeline/esaggs.ts b/test/interpreter_functional/test_suites/run_pipeline/opensearchaggs.ts similarity index 100% rename from test/interpreter_functional/test_suites/run_pipeline/esaggs.ts rename to test/interpreter_functional/test_suites/run_pipeline/opensearchaggs.ts