[Console] Clean up after initial 7.7.0 spec definitions update (#61227)

* Move JSON files in console_extensions to mirror console struct.

Also update the spec-to-console package README.md with the new
instructions.

* Re-add flat settings completion in indices.put_template

* Re-add template completion suggestions for indices.get_template

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Jean-Louis Leysens 2020-03-26 10:13:09 +01:00 committed by GitHub
parent 4b4c5bca2d
commit 535b933b66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
249 changed files with 20 additions and 31 deletions

View file

@ -26,7 +26,7 @@ At the root of the Kibana repository, run the following commands:
yarn spec_to_console -g "<ELASTICSEARCH-REPO-FOLDER>/rest-api-spec/src/main/resources/rest-api-spec/api/*" -d "src/plugins/console/server/lib/spec_definitions/json"
# X-pack
yarn spec_to_console -g "<ELASTICSEARCH-REPO-FOLDER>/x-pack/plugin/src/test/resources/rest-api-spec/api/*" -d "x-pack/plugins/console_extensions/server/spec/generated"
yarn spec_to_console -g "<ELASTICSEARCH-REPO-FOLDER>/x-pack/plugin/src/test/resources/rest-api-spec/api/*" -d "x-pack/plugins/console_extensions/server/lib/spec_definitions/json"
```
### Information used in Console that is not available in the REST spec

View file

@ -1,27 +0,0 @@
---
root: true
extends: '../../../../../../../.eslintrc.js'
rules:
block-scoped-var: off
camelcase: off
dot-location: off
dot-notation: off
eqeqeq: off
guard-for-in: off
new-cap: off
no-caller: off
no-empty: off
no-extend-native: off
no-loop-func: off
no-multi-str: off
no-nested-ternary: off
no-proto: off
no-sequences: off
no-undef: off
no-use-before-define: off
one-var: off
strict: off
no-var: off
prefer-const: off

View file

@ -4,7 +4,8 @@
"include_type_name": "__flag__",
"order": "",
"create": "__flag__",
"master_timeout": ""
"master_timeout": "",
"flat_settings": "__flag__"
},
"methods": [
"PUT",

View file

@ -0,0 +1,8 @@
{
"indices.get_template": {
"patterns": [
"_template",
"_template/{template}"
]
}
}

View file

@ -0,0 +1,7 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
export { processors } from './ingest';

Some files were not shown because too many files have changed in this diff Show more