From 3f27ecc639fdd2969fba2f741c14555c38b1a1d2 Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Wed, 9 Feb 2022 17:14:01 -0800 Subject: [PATCH] [1.x][Bug] fix incorrect import for opensearch aggs (#1192) (#1227) 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 Backport PR: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/1192 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