No description
Find a file
Spencer 9a7fa9a938
Upgrade to Jest 23.5.0 (#22791) (#22846)
I'd really like to upgrade to Typescript 3 for its `unknown` type, but we need to upgrade to `jest@23` to support a recent version of `ts-jest@23`.

The [jest changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) breaks down the breaking changes in 23.x, but I found it to be slightly incomplete so I've broken down the changes that actually caused breaks for us here, and addressed each in individual commits to make review a little easier:

- the `testURL` config default was changed from `about:blank` to `http://localhost`
    - this cause some XHR requests powered by JSdom to start failing. It seems these requests just do nothing in master but start to fail when JSdom is initialized with an actual URL... I think we would ideally stop sending meaningless XHR requests in the tests, but it was a lot easier to just set the config to `about:blank` for now, and we can worry about cleanup later if necessary
- `expect(...).toThrow()` only passes if an actual error was thrown.
     - In two places in the index pattern code we were throwing strings, which broke the assertions. Fortunately/Unfortunately the errors are not being consumed by anything, so I was able to wrap them in `new Error()` without causing any issues.
- snapshots of mock functions now include a `results` array, detailing the return values of the function
- React fragments are now serialized as `<React.Fragment>` instead of `<UNDEFINED>`
- undefined props in React components are now stripped from snapshots
- minor changes to the ordering of mocks, imports resolution, and before hooks caused the uiSettings API tests to start breaking, but I'm replacing them with totally new tests in #22694 so I just deleted them here
- mocks created with `jest.spyOn()` that are restored now have their `mock.calls` reset, so some of the kbn-pm tests stated failing. This was fixed by restoring them with `jest.restoreAllMocks()` rather than trying to do it before the assertions
2018-09-07 20:30:49 -07:00
.github [6.x] Switch to Yarn (#15485) (#15955) 2018-01-10 16:54:20 +01:00
bin [bin/windows] Remove title (#21567) 2018-08-03 06:55:28 -05:00
config Set kibana locale in kibana.yml config (#21201) (#21777) 2018-08-08 13:51:31 +03:00
data
docs docs: dashboard import/export API (#22835) 2018-09-07 15:53:26 -04:00
licenses Migrate x-pack-kibana source to kibana 2018-04-24 13:49:26 -07:00
maps
packages Upgrade to Jest 23.5.0 (#22791) (#22846) 2018-09-07 20:30:49 -07:00
plugins
scripts Integrate main i18n tool into build pipeline (#22254) (#22482) 2018-08-29 13:42:47 +03:00
src Upgrade to Jest 23.5.0 (#22791) (#22846) 2018-09-07 20:30:49 -07:00
style_guides Update JS style guide with rule for prefixing private class methods with an underscore. (#20851) (#20891) 2018-07-17 10:00:32 -07:00
tasks [ci] Run ES snapshot when possible (#22663) (#22788) 2018-09-06 19:12:51 -07:00
test Investigate flaky override colors dashboard test (#22726) (#22825) 2018-09-07 14:52:17 -04:00
utilities Backport/19383/6.x (#19487) 2018-05-28 20:24:23 -07:00
webpackShims add polyfill for ChildNode remove (#21797) (#21894) 2018-08-10 17:20:16 -06:00
x-pack Upgrade to Jest 23.5.0 (#22791) (#22846) 2018-09-07 20:30:49 -07:00
.backportrc.json Adds 6.4 branch to backports config (#21217) 2018-07-25 11:03:15 -07:00
.browserslistrc Dashboard LESS to SASS (#22017) 2018-08-15 16:48:27 -04:00
.editorconfig
.eslintignore Integrate new platform (core) server side into Kibana (#20661) 2018-07-11 13:12:33 +03:00
.eslintrc.js Enable prettier for kbn-dev-utils (Part of #17763) (#22239) 2018-08-21 19:38:37 -07:00
.gitignore Add bolilerplate sass for Kibana core (#21185) (#21257) 2018-07-26 23:40:16 -07:00
.i18nrc.json [I18n] Update i18n config (#22799) (#22811) 2018-09-07 18:08:27 +03:00
.node-version Bump node to 8.11.4 (#22045) 2018-08-16 13:05:05 -05:00
.nvmrc Bump node to 8.11.4 (#22045) 2018-08-16 13:05:05 -05:00
.prettierrc Increase prettier line width to 100 (#20535) (#20596) 2018-07-11 00:41:00 +02:00
CONTRIBUTING.md Fix misspellings (#19981) (#20284) 2018-06-27 20:50:06 -07:00
FAQ.md
Gruntfile.js [6.x] Validate current node version (#19154) (#19452) 2018-05-29 21:59:42 +01:00
LICENSE.txt Migrate x-pack-kibana source to kibana 2018-04-24 13:49:26 -07:00
NOTICE.txt add polyfill for ChildNode remove (#21797) (#21894) 2018-08-10 17:20:16 -06:00
package.json Upgrade to Jest 23.5.0 (#22791) (#22846) 2018-09-07 20:30:49 -07:00
preinstall_check.js Backport/19383/6.x (#19487) 2018-05-28 20:24:23 -07:00
README.md Revert "Point issue links to new choose page (#19042)" (#21519) (#21526) 2018-08-01 12:38:55 +02:00
STYLEGUIDE.md
tsconfig.browser.json [typescript] continue to use the default config in development (#21966) (#21973) 2018-08-15 16:22:35 -07:00
tsconfig.json [typescript] continue to use the default config in development (#21966) (#21973) 2018-08-15 16:22:35 -07:00
tslint.yaml [6.x] [tslint] enable no-default-export rule (#20952) (#20961) 2018-07-18 20:53:09 -07:00
yarn.lock Upgrade to Jest 23.5.0 (#22791) (#22846) 2018-09-07 20:30:49 -07:00

Kibana 6.5.0

Kibana is your window into the Elastic Stack. Specifically, it's a browser-based analytics and search dashboard for Elasticsearch.

Getting Started

If you just want to try Kibana out, check out the Elastic Stack Getting Started Page to give it a whirl.

If you're interested in diving a bit deeper and getting a taste of Kibana's capabilities, head over to the Kibana Getting Started Page.

Using a Kibana Release

If you want to use a Kibana release in production, give it a test run, or just play around:

Building and Running Kibana, and/or Contributing Code

You may want to build Kibana locally to contribute some code, test out the latest features, or try out an open PR:

Snapshot Builds

For the daring, snapshot builds are available. These builds are created nightly and have undergone no formal QA, so they should never be run in production. All builds are 64 bit.

platform default OSS
OSX tar tar
Linux tar deb rpm tar deb rpm
Windows zip zip

Documentation

Visit Elastic.co for the full Kibana documentation.

For information about building the documentation, see the README in elastic/docs.

Version Compatibility with Elasticsearch

Ideally, you should be running Elasticsearch and Kibana with matching version numbers. If your Elasticsearch has an older version number or a newer major number than Kibana, then Kibana will fail to run. If Elasticsearch has a newer minor or patch number than Kibana, then the Kibana Server will log a warning.

Note: The version numbers below are only examples, meant to illustrate the relationships between different types of version numbers.

Situation Example Kibana version Example ES version Outcome
Versions are the same. 5.1.2 5.1.2 💚 OK
ES patch number is newer. 5.1.2 5.1.5 ⚠️ Logged warning
ES minor number is newer. 5.1.2 5.5.0 ⚠️ Logged warning
ES major number is newer. 5.1.2 6.0.0 🚫 Fatal error
ES patch number is older. 5.1.2 5.1.0 ⚠️ Logged warning
ES minor number is older. 5.1.2 5.0.0 🚫 Fatal error
ES major number is older. 5.1.2 4.0.0 🚫 Fatal error

Questions? Problems? Suggestions?

  • If you've found a bug or want to request a feature, please create a GitHub Issue. Please check to make sure someone else hasn't already created an issue for the same topic.
  • Need help using Kibana? Ask away on our Kibana Discuss Forum and a fellow community member or Elastic engineer will be glad to help you out.