kibana/tasks
Spencer 466fb4b010
[6.x] [savedObjects] Use index template (#14271) (#15103)
* [es][savedObjects/index] put template on each savedObject write

The elasticsearch plugin currently checks for the Kibana index on each iteration of the healthCheck, and creates it if it does not exist. This removes that step from the healthCheck and instead, before each savedObject is written to elasticsearch, ensures that Elasticsearch has the necessary index template should the write result in index creation.

The healthCheck still has the `patchKibanaIndex()` logic, which checks the type in the Kibana index and adds any missing types. This step now does nothing when the Kibana index does not exist, and does what it has always done when it does.

* [ftr] remove unused kibanaIndex service

(cherry picked from commit b1ef897dafeb6d43fe279776e44a9d793a389dc3)

* [savedObjects/integration] create now creates kibana index

* [es/healthCheck] remove use of format()

* [es/healthCheck/tests] use sinon assertions

* [es/patchKibanaIndex] test for kibana index missing behavior

* [savedObjects/errors] add tests for EsAutoCreateIndexError

* [savedObjects/config] deprecate and remove savedObjects.indexCheckTimeout config

* use dangling commas consistently

* [ui/error_auto_create_index] fix class names

* [ui/savedObjectsClient] no need to specify basePath

* [eslint] fix linting issue
2017-11-21 18:26:29 -07:00
..
build [6.x] Upgrade to eslint 4 (#14862) (#14951) 2017-11-14 20:20:37 -07:00
config [6.x] [savedObjects] Use index template (#14271) (#15103) 2017-11-21 18:26:29 -07:00
lib Adds task to export a CSV of all dependencies (#15068) 2017-11-21 10:30:52 -06:00
utils [6.x] [precommit hook] add dev script (#14890) (#15065) 2017-11-20 17:00:37 -07:00
check_plugins.js Add checkPlugins task to check for plugins before running tests. (#8981) 2016-11-15 16:11:03 -08:00
functional_test_runner.js [6.x] [precommit hook] add dev script (#14890) (#15065) 2017-11-20 17:00:37 -07:00
jenkins.js [6.x] [eslint] add eslint dev script (#14889) (#14941) 2017-11-14 10:24:00 -07:00
licenses.js Remove use of npm ls in grunt tasks (#11965) 2017-05-24 08:34:55 -07:00
licenses_csv_report.js Adds task to export a CSV of all dependencies (#15068) 2017-11-21 10:30:52 -06:00
plugin.js
reject_rej_files.js
release.js [eslint] enable no undef (#10825) 2017-03-22 07:08:23 -07:00
release_packages.js Use Object spread instead of Object.assign where it makes sense (#13903) (#14397) 2017-10-10 15:55:06 +02:00
setup_kibana.js
sterilize.js [6.x] Upgrade to eslint 4 (#14862) (#14951) 2017-11-14 20:20:37 -07:00
test.js [6.x] [eslint] add eslint dev script (#14889) (#14941) 2017-11-14 10:24:00 -07:00
test_jest.js [grunt/jest] fail task when jest fails (#12049) 2017-05-26 17:21:45 -07:00
ui_framework.js [6.x] Upgrade to webpack 3 (#14315) (#14824) 2017-11-07 15:54:48 -07:00