From 21f8c2f705523514a9e90d84d968bc2818b87324 Mon Sep 17 00:00:00 2001 From: Marius Iversen Date: Tue, 3 Sep 2024 14:38:57 +0200 Subject: [PATCH] [Automatic Import] Resolve http_endpoint config not loading correctly (#191964) ## Summary This resolves a regression from `https://github.com/elastic/kibana/pull/188695` where the http_endpoint input was also modified together with the rest of the inputs with multiple words, however `http_endpoint` uses `_` rather than `-` in its actual name. While this modifies the API, it is an internal API and under tech preview. The only consumer of this API is our own UI, which is also modified in this PR to pass the correct parameter. ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --- .../common/api/model/common_attributes.schema.yaml | 2 +- .../integration_assistant/common/api/model/common_attributes.ts | 2 +- .../steps/data_stream_step/data_stream_step.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/integration_assistant/common/api/model/common_attributes.schema.yaml b/x-pack/plugins/integration_assistant/common/api/model/common_attributes.schema.yaml index eafd318b40c33..4c4810b22f9be 100644 --- a/x-pack/plugins/integration_assistant/common/api/model/common_attributes.schema.yaml +++ b/x-pack/plugins/integration_assistant/common/api/model/common_attributes.schema.yaml @@ -109,7 +109,7 @@ components: - filestream - gcp-pubsub - gcs - - http-endpoint + - http_endpoint - journald - kafka - tcp diff --git a/x-pack/plugins/integration_assistant/common/api/model/common_attributes.ts b/x-pack/plugins/integration_assistant/common/api/model/common_attributes.ts index 4a82a3fd97534..964aa9386a87f 100644 --- a/x-pack/plugins/integration_assistant/common/api/model/common_attributes.ts +++ b/x-pack/plugins/integration_assistant/common/api/model/common_attributes.ts @@ -123,7 +123,7 @@ export const InputType = z.enum([ 'filestream', 'gcp-pubsub', 'gcs', - 'http-endpoint', + 'http_endpoint', 'journald', 'kafka', 'tcp', diff --git a/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/data_stream_step/data_stream_step.tsx b/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/data_stream_step/data_stream_step.tsx index f78ec69639ca2..6e20d739532c5 100644 --- a/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/data_stream_step/data_stream_step.tsx +++ b/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/data_stream_step/data_stream_step.tsx @@ -36,7 +36,7 @@ export const InputTypeOptions: Array> = [ { value: 'filestream', label: 'File Stream' }, { value: 'gcp-pubsub', label: 'GCP Pub/Sub' }, { value: 'gcs', label: 'Google Cloud Storage' }, - { value: 'http-endpoint', label: 'HTTP Endpoint' }, + { value: 'http_endpoint', label: 'HTTP Endpoint' }, { value: 'journald', label: 'Journald' }, { value: 'kafka', label: 'Kafka' }, { value: 'tcp', label: 'TCP' },