No description
Find a file
Frank Hassanabad d91c254eea
[SIEM] Fix unit tests to not throw unhandled promise rejections (#46152) (#46208)
One test was silently failing with unhandled exceptions:
```
(node:80263) UnhandledPromiseRejectionWarning: Error: Applying a filter requires a filter as context
(node:80263) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 14)
(node:80263) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
```

This fixes that as well does the following:
* Removes `any` types by using `unknown` and `is` type narrowing
* Removes the error handling helper in favor of just using Jest built in reject handling.

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~
~~- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~
~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
~~- [ ] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
2019-09-19 22:44:39 -06:00
.ci [7.x] Run pipeline scripts with runbld (#45844) (#46020) 2019-09-18 13:17:09 -04:00
.github Delete CODEOWNERS (#41944) 2019-07-25 09:19:41 +03:00
bin Update node options Initialization on our scripts (#40302) (#43358) 2019-08-15 17:30:07 +01:00
common/graphql
config [7.x] [i18n] .i18nrc file as the source of truth and enhance tooling (#39774) (#43284) 2019-08-14 13:47:01 -04:00
data
docs Spaces - updating moving SO between spaces docs (#45843) (#46183) 2019-09-19 17:45:54 -04:00
licenses
packages [7.x] [ftr/savedObjects] add simple saved object api client to… (#45940) 2019-09-17 14:45:56 -07:00
rfcs/text Console to NP ready (#43346) (#45511) 2019-09-12 18:30:03 +02:00
scripts [7.x] [Plugin Generator] Add integration test (#43219) (#45044) 2019-09-11 07:33:22 -06:00
src Revert hiding Kibana icon, test Percy rendering (#43990) (#46168) 2019-09-19 13:11:25 -06:00
style_guides
tasks [7.x] Use unique junit report filenames again (#45897) (#45944) 2019-09-18 10:37:09 -04:00
test Revert hiding Kibana icon, test Percy rendering (#43990) (#46168) 2019-09-19 13:11:25 -06:00
typings [7.x] Upgrade EUI to 13.8.1 (#45052) (#45398) 2019-09-11 12:52:43 -05:00
utilities
webpackShims [Code] Add localization for Code (#42368) 2019-07-31 11:53:40 -07:00
x-pack [SIEM] Fix unit tests to not throw unhandled promise rejections (#46152) (#46208) 2019-09-19 22:44:39 -06:00
.backportrc.json [backport-config] Adds 7.4 branch (#44402) 2019-08-29 10:11:53 -07:00
.browserslistrc [7.x] [autoprefixer] upgrade to 9.6.1, unify browserslist hand… (#41145) 2019-07-15 13:01:17 -07:00
.editorconfig
.eslintignore [FTR] Refactor FTR to live under KBN-TEST (#42547) (#42788) 2019-08-06 17:35:05 -06:00
.eslintrc.js [SIEM] removes awaits from return statements (#46006) (#46134) 2019-09-19 11:11:11 -04:00
.gitattributes
.gitignore Relative cache loader (#39272) (#39712) 2019-06-26 21:04:07 +01:00
.i18nrc.json [7.x] Split data and expression plugins (#45125) (#45516) 2019-09-12 13:57:32 -04:00
.node-version
.nvmrc
.prettierrc
.sass-lint.yml [7.x] Reverting PR 42545 (for now) (#44277) (#44285) 2019-08-28 12:47:01 -04:00
.yarnrc
CONTRIBUTING.md [7.x] Only report the mocha tests once, as "Mocha tests" (#395… (#39582) 2019-06-25 09:02:30 -07:00
FAQ.md
github_checks_reporter.json
Gruntfile.js
Jenkinsfile [7.x] Run pipeline scripts with runbld (#45844) (#46020) 2019-09-18 13:17:09 -04:00
kibana.d.ts [Core] Public saved objects client (#39891) (#42760) 2019-08-07 11:29:30 +02:00
LICENSE.txt
NOTICE.txt [Maps] Load Maki icons from spritesheet (#42499) (#42767) 2019-08-06 15:02:15 -07:00
package.json Upgrade EUI to 14.2.0 (#46075) (#46160) 2019-09-19 14:36:24 -04:00
preinstall_check.js
README.md
STYLEGUIDE.md
tsconfig.browser.json
tsconfig.json [7.x] Update babel related packages (#43595) (#43837) 2019-08-23 08:24:52 -07:00
tsconfig.types.json
TYPESCRIPT.md Fix path references into and out of x-pack/legacy 2019-06-20 13:35:00 -04:00
yarn.lock Upgrade EUI to 14.2.0 (#46075) (#46160) 2019-09-19 14:36:24 -04:00

Kibana

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 might want to build Kibana locally to contribute some code, test out the latest features, or try out an open PR:

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.