mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
# Backport This will backport the following commits from `main` to `9.0`: - [[Console] Add autocomplete for data streams (#214465)](https://github.com/elastic/kibana/pull/214465) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Elena Stoeva","email":"59341489+ElenaStoeva@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-20T19:43:15Z","message":"[Console] Add autocomplete for data streams (#214465)\n\nCloses https://github.com/elastic/kibana/issues/212905\n\n## Summary\n\nThis PR adds autocompletion for data-stream related endpoints.\nPreviously, it didn't work because the generated spec definitions that\nwere extracted from the Es specs repo were using the generic `{name}`\npattern instead of `{data_stream}`. In this PR, we override those\ndefinition files and specify the correct pattern.\n\n### How to test:\n\nTest the following endpoints and make sure that data stream names are\nsuggested:\n\n`GET _data_stream/{data_stream}/_stats`\n`DELETE _data_stream/{data_stream}/_lifecycle`\n`DELETE _data_stream/{data_stream}`\n`GET _data_stream/{dataStream}/_lifecycle`\n`GET _data_stream/{data_stream}`\n`POST _data_stream/_migrate/{data_stream}`\n`POST _data_stream/_promote/{data_stream}`\n`PUT _data_stream/{data_stream}/_lifecycle`","sha":"f89e03c286a7a7b1d26a7c4e5e6aeec6e3c2624c","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Console","Team:Kibana Management","release_note:skip","v9.0.0","backport:prev-minor","v9.1.0","v8.19.0","v9.0.1"],"title":"[Console] Add autocomplete for data streams","number":214465,"url":"https://github.com/elastic/kibana/pull/214465","mergeCommit":{"message":"[Console] Add autocomplete for data streams (#214465)\n\nCloses https://github.com/elastic/kibana/issues/212905\n\n## Summary\n\nThis PR adds autocompletion for data-stream related endpoints.\nPreviously, it didn't work because the generated spec definitions that\nwere extracted from the Es specs repo were using the generic `{name}`\npattern instead of `{data_stream}`. In this PR, we override those\ndefinition files and specify the correct pattern.\n\n### How to test:\n\nTest the following endpoints and make sure that data stream names are\nsuggested:\n\n`GET _data_stream/{data_stream}/_stats`\n`DELETE _data_stream/{data_stream}/_lifecycle`\n`DELETE _data_stream/{data_stream}`\n`GET _data_stream/{dataStream}/_lifecycle`\n`GET _data_stream/{data_stream}`\n`POST _data_stream/_migrate/{data_stream}`\n`POST _data_stream/_promote/{data_stream}`\n`PUT _data_stream/{data_stream}/_lifecycle`","sha":"f89e03c286a7a7b1d26a7c4e5e6aeec6e3c2624c"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214465","number":214465,"mergeCommit":{"message":"[Console] Add autocomplete for data streams (#214465)\n\nCloses https://github.com/elastic/kibana/issues/212905\n\n## Summary\n\nThis PR adds autocompletion for data-stream related endpoints.\nPreviously, it didn't work because the generated spec definitions that\nwere extracted from the Es specs repo were using the generic `{name}`\npattern instead of `{data_stream}`. In this PR, we override those\ndefinition files and specify the correct pattern.\n\n### How to test:\n\nTest the following endpoints and make sure that data stream names are\nsuggested:\n\n`GET _data_stream/{data_stream}/_stats`\n`DELETE _data_stream/{data_stream}/_lifecycle`\n`DELETE _data_stream/{data_stream}`\n`GET _data_stream/{dataStream}/_lifecycle`\n`GET _data_stream/{data_stream}`\n`POST _data_stream/_migrate/{data_stream}`\n`POST _data_stream/_promote/{data_stream}`\n`PUT _data_stream/{data_stream}/_lifecycle`","sha":"f89e03c286a7a7b1d26a7c4e5e6aeec6e3c2624c"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com>
This commit is contained in:
parent
3d44c1d207
commit
c68acf243e
8 changed files with 58 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"indices.data_streams_stats": {
|
||||
"patterns": [
|
||||
"_data_stream/_stats",
|
||||
"_data_stream/{data_stream}/_stats"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"indices.delete_data_lifecycle": {
|
||||
"patterns": [
|
||||
"_data_stream/{data_stream}/_lifecycle"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"indices.delete_data_stream": {
|
||||
"patterns": [
|
||||
"_data_stream/{data_stream}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"indices.get_data_lifecycle": {
|
||||
"patterns": [
|
||||
"_data_stream/{dataStream}/_lifecycle"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"indices.get_data_stream": {
|
||||
"patterns": [
|
||||
"_data_stream",
|
||||
"_data_stream/{data_stream}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"indices.migrate_to_data_stream": {
|
||||
"patterns": [
|
||||
"_data_stream/_migrate/{data_stream}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"indices.promote_data_stream": {
|
||||
"patterns": [
|
||||
"_data_stream/_promote/{data_stream}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"indices.put_data_lifecycle": {
|
||||
"patterns": [
|
||||
"_data_stream/{data_stream}/_lifecycle"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue