Skip to content

Commit 574ec2f

Browse files
[8.x] [Console] Update autocomplete definitions for 8.16 (#196284) (#196503)
# Backport This will backport the following commits from `main` to `8.x`: - [[Console] Update autocomplete definitions for 8.16 (#196284)](#196284) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Elena Stoeva","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-16T09:03:33Z","message":"[Console] Update autocomplete definitions for 8.16 (#196284)\n\nCloses https://github.com/elastic/kibana/issues/194601\r\n\r\n## Summary\r\n\r\nThis PR updates the script-generated Console autocomplete definitions\r\nfor 8.16.\r\n\r\n\r\n### Testing\r\nWe currently don't have automated tests for all autocomplete definition\r\nendpoints, so we should test the changes manually. We do this by running\r\nKibana and verifying in Console that the changed endpoints are suggested\r\ncorrectly. It's important that we also test in serverless and make sure\r\nthat the changed endpoints are only available in the specified\r\nofferings, based on the `availability` property. For example, if an\r\nautocompletion definition has the following `availability` property:\r\n```\r\n \"availability\": {\r\n \"stack\": true,\r\n \"serverless\": false\r\n }\r\n```\r\nthis means that the endpoint should be suggested in stateful Kibana, but\r\nnot in serverless.","sha":"404e268596d3e477bb750f3794b418a6026db3c2","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.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"],"title":"[Console] Update autocomplete definitions for 8.16","number":196284,"url":"https://github.com/elastic/kibana/pull/196284","mergeCommit":{"message":"[Console] Update autocomplete definitions for 8.16 (#196284)\n\nCloses https://github.com/elastic/kibana/issues/194601\r\n\r\n## Summary\r\n\r\nThis PR updates the script-generated Console autocomplete definitions\r\nfor 8.16.\r\n\r\n\r\n### Testing\r\nWe currently don't have automated tests for all autocomplete definition\r\nendpoints, so we should test the changes manually. We do this by running\r\nKibana and verifying in Console that the changed endpoints are suggested\r\ncorrectly. It's important that we also test in serverless and make sure\r\nthat the changed endpoints are only available in the specified\r\nofferings, based on the `availability` property. For example, if an\r\nautocompletion definition has the following `availability` property:\r\n```\r\n \"availability\": {\r\n \"stack\": true,\r\n \"serverless\": false\r\n }\r\n```\r\nthis means that the endpoint should be suggested in stateful Kibana, but\r\nnot in serverless.","sha":"404e268596d3e477bb750f3794b418a6026db3c2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196284","number":196284,"mergeCommit":{"message":"[Console] Update autocomplete definitions for 8.16 (#196284)\n\nCloses https://github.com/elastic/kibana/issues/194601\r\n\r\n## Summary\r\n\r\nThis PR updates the script-generated Console autocomplete definitions\r\nfor 8.16.\r\n\r\n\r\n### Testing\r\nWe currently don't have automated tests for all autocomplete definition\r\nendpoints, so we should test the changes manually. We do this by running\r\nKibana and verifying in Console that the changed endpoints are suggested\r\ncorrectly. It's important that we also test in serverless and make sure\r\nthat the changed endpoints are only available in the specified\r\nofferings, based on the `availability` property. For example, if an\r\nautocompletion definition has the following `availability` property:\r\n```\r\n \"availability\": {\r\n \"stack\": true,\r\n \"serverless\": false\r\n }\r\n```\r\nthis means that the endpoint should be suggested in stateful Kibana, but\r\nnot in serverless.","sha":"404e268596d3e477bb750f3794b418a6026db3c2"}}]}] BACKPORT--> Co-authored-by: Elena Stoeva <[email protected]>
1 parent f98b781 commit 574ec2f

22 files changed

+119
-20
lines changed

src/plugins/console/server/lib/spec_definitions/json/generated/capabilities.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"patterns": [
77
"_capabilities"
88
],
9-
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/capabilities.html",
9+
"documentation": "https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/README.asciidoc#require-or-skip-api-capabilities",
1010
"availability": {
1111
"stack": false,
1212
"serverless": false

src/plugins/console/server/lib/spec_definitions/json/generated/cluster.stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"filter_path": [],
66
"human": "__flag__",
77
"pretty": "__flag__",
8-
"flat_settings": "__flag__",
8+
"include_remotes": "__flag__",
99
"timeout": [
1010
"-1",
1111
"0"

src/plugins/console/server/lib/spec_definitions/json/generated/connector.last_sync.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
],
1515
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/update-connector-last-sync-api.html",
1616
"availability": {
17-
"stack": true,
18-
"serverless": true
17+
"stack": false,
18+
"serverless": false
1919
}
2020
}
2121
}

src/plugins/console/server/lib/spec_definitions/json/generated/enrich.stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats-api.html",
1616
"availability": {
1717
"stack": true,
18-
"serverless": true
18+
"serverless": false
1919
}
2020
}
2121
}

src/plugins/console/server/lib/spec_definitions/json/generated/esql.query.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"smile",
1616
"arrow"
1717
],
18-
"delimiter": ""
18+
"delimiter": "",
19+
"drop_null_columns": "__flag__"
1920
},
2021
"methods": [
2122
"POST"

src/plugins/console/server/lib/spec_definitions/json/generated/indices.create_data_stream.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@
44
"error_trace": "__flag__",
55
"filter_path": [],
66
"human": "__flag__",
7-
"pretty": "__flag__"
7+
"pretty": "__flag__",
8+
"master_timeout": [
9+
"30s",
10+
"-1",
11+
"0"
12+
],
13+
"timeout": [
14+
"30s",
15+
"-1",
16+
"0"
17+
]
818
},
919
"methods": [
1020
"PUT"

src/plugins/console/server/lib/spec_definitions/json/generated/indices.data_streams_stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
2424
"availability": {
2525
"stack": true,
26-
"serverless": true
26+
"serverless": false
2727
}
2828
}
2929
}

src/plugins/console/server/lib/spec_definitions/json/generated/indices.delete_data_lifecycle.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-delete-lifecycle.html",
3131
"availability": {
3232
"stack": true,
33-
"serverless": true
33+
"serverless": false
3434
}
3535
}
3636
}

src/plugins/console/server/lib/spec_definitions/json/generated/indices.delete_data_stream.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"filter_path": [],
66
"human": "__flag__",
77
"pretty": "__flag__",
8+
"master_timeout": [
9+
"30s",
10+
"-1",
11+
"0"
12+
],
813
"expand_wildcards": [
914
"all",
1015
"open",

src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_data_lifecycle.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
"hidden",
1313
"none"
1414
],
15-
"include_defaults": "__flag__"
15+
"include_defaults": "__flag__",
16+
"master_timeout": [
17+
"30s",
18+
"-1",
19+
"0"
20+
]
1621
},
1722
"methods": [
1823
"GET"

0 commit comments

Comments
 (0)