From d90ed1b958801b6018d80070dec87ffa99566379 Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Thu, 30 Oct 2025 09:42:57 +0100 Subject: [PATCH 1/2] strip managed properties --- .../translate_unwired_stream_pipeline_actions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/x-pack/platform/plugins/shared/streams/server/lib/streams/state_management/execution_plan/translate_unwired_stream_pipeline_actions.ts b/x-pack/platform/plugins/shared/streams/server/lib/streams/state_management/execution_plan/translate_unwired_stream_pipeline_actions.ts index bf557f0a77405..dbd9152c819b2 100644 --- a/x-pack/platform/plugins/shared/streams/server/lib/streams/state_management/execution_plan/translate_unwired_stream_pipeline_actions.ts +++ b/x-pack/platform/plugins/shared/streams/server/lib/streams/state_management/execution_plan/translate_unwired_stream_pipeline_actions.ts @@ -5,7 +5,7 @@ * 2.0. */ -import type { IngestPipeline } from '@elastic/elasticsearch/lib/api/types'; +import type { IndicesGetIndexTemplateIndexTemplateItem, IngestPipeline } from '@elastic/elasticsearch/lib/api/types'; import type { IScopedClusterClient } from '@kbn/core/server'; import { isNotFoundError } from '@kbn/es-errors'; import { castArray, groupBy, omit, uniq } from 'lodash'; @@ -359,7 +359,9 @@ async function getIndexTemplate(name: string, scopedClusterClient: IScopedCluste const indexTemplates = await scopedClusterClient.asCurrentUser.indices.getIndexTemplate({ name, }); - return indexTemplates.index_templates[0]; + const template = omit(indexTemplates.index_templates[0], ['created_date_millis', 'modified_date_millis']); + + return template as IndicesGetIndexTemplateIndexTemplateItem; } function assertOnlyAppendActions( From 4a0cd007db50c67b729e30b78c101aca4d0af091 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 30 Oct 2025 09:11:02 +0000 Subject: [PATCH 2/2] [CI] Auto-commit changed files from 'node scripts/eslint_all_files --no-cache --fix' --- .../translate_unwired_stream_pipeline_actions.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/x-pack/platform/plugins/shared/streams/server/lib/streams/state_management/execution_plan/translate_unwired_stream_pipeline_actions.ts b/x-pack/platform/plugins/shared/streams/server/lib/streams/state_management/execution_plan/translate_unwired_stream_pipeline_actions.ts index dbd9152c819b2..f8fad56913bec 100644 --- a/x-pack/platform/plugins/shared/streams/server/lib/streams/state_management/execution_plan/translate_unwired_stream_pipeline_actions.ts +++ b/x-pack/platform/plugins/shared/streams/server/lib/streams/state_management/execution_plan/translate_unwired_stream_pipeline_actions.ts @@ -5,7 +5,10 @@ * 2.0. */ -import type { IndicesGetIndexTemplateIndexTemplateItem, IngestPipeline } from '@elastic/elasticsearch/lib/api/types'; +import type { + IndicesGetIndexTemplateIndexTemplateItem, + IngestPipeline, +} from '@elastic/elasticsearch/lib/api/types'; import type { IScopedClusterClient } from '@kbn/core/server'; import { isNotFoundError } from '@kbn/es-errors'; import { castArray, groupBy, omit, uniq } from 'lodash'; @@ -359,7 +362,10 @@ async function getIndexTemplate(name: string, scopedClusterClient: IScopedCluste const indexTemplates = await scopedClusterClient.asCurrentUser.indices.getIndexTemplate({ name, }); - const template = omit(indexTemplates.index_templates[0], ['created_date_millis', 'modified_date_millis']); + const template = omit(indexTemplates.index_templates[0], [ + 'created_date_millis', + 'modified_date_millis', + ]); return template as IndicesGetIndexTemplateIndexTemplateItem; }