Go to file
Frank Hassanabad 2abbd808c7
[Security Solutions][Detection Engine] Removes duplicate API calls (#88420)
## Summary

This removes some duplicate API calls to reduce pressure on the backend and speed up querying times within the application for the front end. This fixes some of the issues of https://github.com/elastic/kibana/issues/82327, but there are several performance improvements that are going to be needed to help reduce the slowness when you have a system under a lot of pressure.

So far this removes duplication for these API calls when you are on the manage detection rules page:

```ts
api/detection_engine/rules/_find
api/detection_engine/rules/_find_statuses
api/detection_engine/tags
```

<img width="2465" alt="Screen Shot 2021-01-14 at 3 53 21 PM" src="https://user-images.githubusercontent.com/1151048/104662295-c031e080-5687-11eb-92d7-18b9ad355646.png">

* This hides the tags and searches while the page is loading to avoid duplicate calls when the pre-packaged rules counts come back
* This untangles the refetchRules from the refetchPrePackagedRulesStatus as two separate calls to avoid issues we have with re-rendering and re-calling the backend.
 
### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-01-17 09:18:34 -07:00
.ci chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
.github removing kibana-core-ui from codeowners (#88111) 2021-01-15 21:31:44 -06:00
.teamcity chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
common/graphql
config Add server.publicBaseUrl config (#85075) 2020-12-08 17:02:39 -07:00
dev_docs Split up plugin dev docs from team docs. Add some welcome landing pages. (#87353) 2021-01-06 08:18:51 -05:00
docs chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
examples [Search][Sessions] Rename Background Sessions to Search Sessions (#87500) 2021-01-07 17:28:27 +02:00
licenses
packages chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
plugins [dev/cli] ensure plugins/ and all watch source dirs exist (#78973) 2020-09-30 10:20:44 -07:00
rfcs [Search Sessions] Replace search session constants with kibana.yml configs (#88023) 2021-01-15 01:14:02 +02:00
scripts chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
src chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
tasks/config [build] Migrate grunt license:csv_report to script (#86001) 2021-01-13 09:50:51 -06:00
test chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
typings Get rid of global types (#81739) 2020-10-28 11:03:04 +01:00
utilities apply prettier styles 2020-05-22 09:08:58 +02:00
vars chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
x-pack [Security Solutions][Detection Engine] Removes duplicate API calls (#88420) 2021-01-17 09:18:34 -07:00
.backportrc.json [backportrc] Adds 7.11 branch and bumps 7.x (#86131) 2020-12-16 10:10:39 -08:00
.browserslistrc [browserlist] Excludes browsers not supporting es6-class (#81431) 2020-10-28 16:38:59 -07:00
.editorconfig
.eslintignore [@kbn/ui-framework] Removes all but dist files (#85347) 2020-12-10 08:23:33 -08:00
.eslintrc.js chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
.fossa.yml Adds FOSSA CLI configuration file (#70137) 2020-07-02 08:37:37 -07:00
.gitattributes
.gitignore [@kbn/ui-framework] Removes all but dist files (#85347) 2020-12-10 08:23:33 -08:00
.i18nrc.json [Time to Visualize] Add visualizations to dashboard from save modal (#83140) 2020-12-08 15:39:24 -06:00
.node-version Bump Node.js from version 14.15.3 to 14.15.4 (#87207) 2021-01-04 22:14:48 +01:00
.npmrc chore(NA): assure puppeteer_skip_chromium_download is applied across every yarn install situation (#88346) 2021-01-14 18:00:23 +00:00
.nvmrc Bump Node.js from version 14.15.3 to 14.15.4 (#87207) 2021-01-04 22:14:48 +01:00
.prettierignore [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
.prettierrc
.stylelintignore [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
.stylelintrc [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
.telemetryrc.json [Usage collection] Make schema mandatory (#79999) 2020-10-26 12:57:15 +02:00
.yarnrc chore(NA): enable yarn prefer offline and local mirror for development (#84124) 2020-11-25 00:18:18 +00:00
api-documenter.json Normalize EOL symbol in platform docs (#56021) 2020-01-27 18:42:45 +01:00
CONTRIBUTING.md Improvements to our developer guide (#67764) 2020-07-13 10:47:01 -04:00
FAQ.md
github_checks_reporter.json
Gruntfile.js apply prettier styles 2020-05-22 09:08:58 +02:00
Jenkinsfile chore(NA): remove usage of unverified es snapshots (#83589) 2020-11-18 00:18:31 +00:00
jest.config.integration.js Jest multi-project configuration (#77894) 2020-12-02 11:42:23 -08:00
jest.config.js Jest multi-project configuration (#77894) 2020-12-02 11:42:23 -08:00
jest.config.oss.js [coverage] re-enable jest (#85946) 2020-12-16 20:20:55 +01:00
kibana.d.ts Remove legacy plugins support (#77599) 2020-09-23 09:52:51 +02:00
LICENSE.txt
NOTICE.txt 🍾 update notice text for 2021 2021-01-01 01:26:53 -07:00
package.json chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
preinstall_check.js
README.md Fix "Getting started" link in README (#84153) 2020-11-23 15:33:02 -05:00
renovate.json5 [renovate] update label config 2020-12-04 12:23:47 -07:00
SECURITY.md Add security policy to the Kibana repository (#85407) 2020-12-10 09:26:00 -05:00
STYLEGUIDE.md chore(NA): tool to find plugins circular dependencies between plugins (#82867) 2020-11-30 22:19:32 +00:00
tsconfig.base.json Cleanup tsconfig files (#84396) 2020-11-30 19:12:00 +01:00
tsconfig.browser.json Introduce TS incremental builds & move src/test_utils to TS project (#76082) 2020-09-03 14:20:04 +02:00
tsconfig.json [DX] SavedObjectsManagement to TS project (#88240) 2021-01-13 22:23:06 +01:00
tsconfig.refs.json [DX] SavedObjectsManagement to TS project (#88240) 2021-01-13 22:23:06 +01:00
tsconfig.types.json ui_actions service initial docs (#78902) 2020-09-30 16:44:29 +02:00
TYPESCRIPT.md Fixed grammar (#74725) 2020-08-11 06:40:22 -04:00
yarn.lock [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06: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.