From fbf646d693cfde2db68388e13c110d91b2c472a3 Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Tue, 8 Feb 2022 09:26:56 -0800 Subject: [PATCH] [Bug] fix incorrect import for opensearch aggs (#1192) 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