No description
Find a file
Ryland Herrick 7d51b97806
[Security Solution][Detections] Fix display of exceptions after creation on Rule Details (#72951)
* Refresh rule details when exception list modal modifies the rule

This addresses a bug where, when opening the exceptions modal for the first
time and creating exceptions, the details page does not reflect these
created exceptions until a full refresh.

This is due to the hook performing the refresh being dependent on the
rule's exceptions_list attribute, which is not populated until after
opening the modal. Because the UI is not informed of the rule update, it
did not know to refresh the rule.

This adds the machinery necessary to make the above work. It:

* adds a new hook for fetching/refreshing a rule
* Adds an onRuleChange callback to both the ExceptionsViewer and the
mutating AddExceptionModal
* passes the refresh function in as the onRuleChange callback

There's currently a gross intermediate state here where the loading screen is
displayed while the rule refreshes in the background; I'll be fixing
that shortly.

* Do not show loading/blank state while refreshing rule

On Rule Details, when the Add Exceptions modal creates the rule's
exception list, we refresh quietly in the background by setting our rule
from null -> ruleA -> ruleB instead of null -> ruleA -> null -> ruleB.

This also simplifies the loading logic in a few places now that we're
using our new rule: we mainly care whether or not our rule is populated.

* Display toast error if rule fetch fails

This should now have feature parity with useRule, while additionally
providing a function to refresh the rule.

* Refactor tests to leverage existing helpers

* Add return type to our callback function

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-23 12:01:18 -05:00
.ci skip 6.8 branch when triggering baseline-capture builds (#72706) 2020-07-21 14:00:19 -07:00
.github [kbn/es-archiver] move to a package (#72318) 2020-07-22 08:02:39 -07:00
common/graphql
config
data
docs Migrate status page app to core (#72017) 2020-07-23 12:15:03 +02:00
examples Adds Role Based Access-Control to the Alerting & Action plugins based on Kibana Feature Controls (#67157) 2020-07-22 14:45:57 +01:00
licenses
packages [kbn/test/failed_test_reporter] handle cypress junit better (#72968) 2020-07-23 08:49:24 -07:00
rfcs
scripts [renovate] simplify config, only enable specific packages (#72903) 2020-07-22 11:42:38 -07:00
src [Fix] Lose OriginatingApp Connection on Save As (#72725) 2020-07-23 12:21:31 -04:00
tasks chore(NA): fix grunt task for test:coverage (#72539) 2020-07-21 12:17:01 +01:00
test [Fix] Lose OriginatingApp Connection on Save As (#72725) 2020-07-23 12:21:31 -04:00
typings
utilities
vars [CI] In-progress PR comments (#72211) 2020-07-21 16:51:58 -04:00
webpackShims
x-pack [Security Solution][Detections] Fix display of exceptions after creation on Rule Details (#72951) 2020-07-23 12:01:18 -05:00
.backportrc.json
.browserslistrc
.editorconfig
.eslintignore [pre-req] Move .storybook to storybook; standardize files (#72384) 2020-07-20 22:18:20 -04:00
.eslintrc.js [pre-req] Move .storybook to storybook; standardize files (#72384) 2020-07-20 22:18:20 -04:00
.fossa.yml
.gitattributes
.gitignore
.i18nrc.json
.node-version
.nvmrc
.prettierrc
.sass-lint.yml Add inspector for VEGA (#70941) 2020-07-21 14:45:51 +03:00
.telemetryrc.json
.yarnrc
api-documenter.json
CONTRIBUTING.md
FAQ.md
github_checks_reporter.json
Gruntfile.js
Jenkinsfile
kibana.d.ts
LICENSE.txt
NOTICE.txt
package.json [kbn/es-archiver] move to a package (#72318) 2020-07-22 08:02:39 -07:00
preinstall_check.js
README.md
renovate.json5 disable renovate masterIssue 2020-07-22 14:43:12 -07:00
STYLEGUIDE.md
tsconfig.browser.json
tsconfig.json
tsconfig.types.json
TYPESCRIPT.md
yarn.lock

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.