Skip to content

Commit

Permalink
[Automatic Import] Resolve http_endpoint config not loading correctly (
Browse files Browse the repository at this point in the history
…#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)
  • Loading branch information
P1llus authored Sep 3, 2024
1 parent 5c46dad commit 21f8c2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ components:
- filestream
- gcp-pubsub
- gcs
- http-endpoint
- http_endpoint
- journald
- kafka
- tcp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const InputType = z.enum([
'filestream',
'gcp-pubsub',
'gcs',
'http-endpoint',
'http_endpoint',
'journald',
'kafka',
'tcp',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const InputTypeOptions: Array<EuiComboBoxOptionOption<InputType>> = [
{ 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' },
Expand Down

0 comments on commit 21f8c2f

Please sign in to comment.