From ddd3e8dea7e38741539a986db5b7ce66b09b23bb Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Wed, 29 Nov 2023 14:26:29 +0200 Subject: [PATCH] [8.11] [ES|QL] Make the dashboard SO lighter (#172130) (#172145) # Backport This will backport the following commits from `main` to `8.11`: - [[ES|QL] Make the dashboard SO lighter (#172130)](https://github.com/elastic/kibana/pull/172130) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --- .../public/datasources/text_based/text_based_languages.test.ts | 1 + .../lens/public/datasources/text_based/text_based_languages.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/x-pack/plugins/lens/public/datasources/text_based/text_based_languages.test.ts b/x-pack/plugins/lens/public/datasources/text_based/text_based_languages.test.ts index 0b0437cc96c0b..0a7b29ee8a7b2 100644 --- a/x-pack/plugins/lens/public/datasources/text_based/text_based_languages.test.ts +++ b/x-pack/plugins/lens/public/datasources/text_based/text_based_languages.test.ts @@ -401,6 +401,7 @@ describe('Textbased Data Source', () => { ); expect(suggestions[0].state).toEqual({ ...state, + initialContext: undefined, fieldList: textBasedQueryColumns, layers: { newid: { diff --git a/x-pack/plugins/lens/public/datasources/text_based/text_based_languages.tsx b/x-pack/plugins/lens/public/datasources/text_based/text_based_languages.tsx index 43d971caf24a9..eac90e3588a96 100644 --- a/x-pack/plugins/lens/public/datasources/text_based/text_based_languages.tsx +++ b/x-pack/plugins/lens/public/datasources/text_based/text_based_languages.tsx @@ -125,6 +125,7 @@ export function getTextBasedDatasource({ const query = context.query; const updatedState = { ...state, + initialContext: undefined, fieldList: textBasedQueryColumns, layers: { ...state.layers,