Skip to content

Commit

Permalink
[Console] Update autocomplete definitions for 8.16 (#196284)
Browse files Browse the repository at this point in the history
Closes #194601

## Summary

This PR updates the script-generated Console autocomplete definitions
for 8.16.


### Testing
We currently don't have automated tests for all autocomplete definition
endpoints, so we should test the changes manually. We do this by running
Kibana and verifying in Console that the changed endpoints are suggested
correctly. It's important that we also test in serverless and make sure
that the changed endpoints are only available in the specified
offerings, based on the `availability` property. For example, if an
autocompletion definition has the following `availability` property:
```
    "availability": {
      "stack": true,
      "serverless": false
    }
```
this means that the endpoint should be suggested in stateful Kibana, but
not in serverless.
  • Loading branch information
ElenaStoeva authored Oct 16, 2024
1 parent daf4aae commit 404e268
Show file tree
Hide file tree
Showing 22 changed files with 119 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"patterns": [
"_capabilities"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/capabilities.html",
"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",
"availability": {
"stack": false,
"serverless": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"flat_settings": "__flag__",
"include_remotes": "__flag__",
"timeout": [
"-1",
"0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/update-connector-last-sync-api.html",
"availability": {
"stack": true,
"serverless": true
"stack": false,
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats-api.html",
"availability": {
"stack": true,
"serverless": true
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"smile",
"arrow"
],
"delimiter": ""
"delimiter": "",
"drop_null_columns": "__flag__"
},
"methods": [
"POST"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__"
"pretty": "__flag__",
"master_timeout": [
"30s",
"-1",
"0"
],
"timeout": [
"30s",
"-1",
"0"
]
},
"methods": [
"PUT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
"availability": {
"stack": true,
"serverless": true
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-delete-lifecycle.html",
"availability": {
"stack": true,
"serverless": true
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"master_timeout": [
"30s",
"-1",
"0"
],
"expand_wildcards": [
"all",
"open",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
"hidden",
"none"
],
"include_defaults": "__flag__"
"include_defaults": "__flag__",
"master_timeout": [
"30s",
"-1",
"0"
]
},
"methods": [
"GET"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
"hidden",
"none"
],
"include_defaults": "__flag__"
"include_defaults": "__flag__",
"master_timeout": [
"30s",
"-1",
"0"
],
"verbose": "__flag__"
},
"methods": [
"GET"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__"
"pretty": "__flag__",
"master_timeout": [
"30s",
"-1",
"0"
],
"timeout": [
"30s",
"-1",
"0"
]
},
"methods": [
"POST"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__"
"pretty": "__flag__",
"master_timeout": [
"30s",
"-1",
"0"
]
},
"methods": [
"POST"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html",
"availability": {
"stack": true,
"serverless": true
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"inference.stream_inference": {
"methods": [
"POST"
],
"patterns": [
"_inference/{inference_id}/_stream",
"_inference/{task_type}/{inference_id}/_stream"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/post-stream-inference-api.html",
"availability": {
"stack": true,
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html",
"availability": {
"stack": true,
"serverless": false
"serverless": true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-builtin-privileges.html",
"availability": {
"stack": true,
"serverless": false
"serverless": true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html",
"availability": {
"stack": true,
"serverless": false
"serverless": true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html",
"availability": {
"stack": true,
"serverless": false
"serverless": true
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"snapshot.repository_verify_integrity": {
"url_params": {
"error_trace": "__flag__",
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"meta_thread_pool_concurrency": "",
"blob_thread_pool_concurrency": "",
"snapshot_verification_concurrency": "",
"index_verification_concurrency": "",
"index_snapshot_verification_concurrency": "",
"max_failed_shard_snapshots": "",
"verify_blob_contents": "__flag__",
"max_bytes_per_sec": ""
},
"methods": [
"POST"
],
"patterns": [
"_snapshot/{repository}/_verify_integrity"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"availability": {
"stack": false,
"serverless": false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"format": ""
"format": [
"csv",
"json",
"tsv",
"txt",
"yaml",
"cbor",
"smile"
]
},
"methods": [
"POST",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"filter_path": [],
"human": "__flag__",
"pretty": "__flag__",
"categories": "",
"categories": [
"build",
"features",
"license"
],
"accept_enterprise": "__flag__"
},
"methods": [
Expand Down

0 comments on commit 404e268

Please sign in to comment.