Commit graph

29421 commits

Author SHA1 Message Date
Dima Arnautov
b4c7216f0f
[ML] New Platform server shim: update data visualizer routes to use new platform router (#56739) (#56873)
* [ML] data_visualizer TS refactor, NP router

* [ML] fix schema, add apiDoc

* [ML] update apiDoc order

* [ML] validate_cardinality with NP router

* [ML] use mlClient

* [ML] remove redundant code

* [ML] support legacy callWithRequest for job validation

* [ML] fix schema validation

# Conflicts:
#	x-pack/legacy/plugins/ml/server/routes/apidoc.json
2020-02-06 13:33:35 +01:00
Anton Dosov
6086487d13
Move new_vis_modal to visualizations plugin (#56654) (#56956)
Move new_vis_modal to visualizations plugin.
These removes one import from visualisations plugin to kibana/
showNewVisModal() is part of the plugin contract and plugin dependencies are provided implicitly.
# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
2020-02-06 12:46:56 +01:00
Vadim Dalecky
11257e32b4
[7.x] UiComponent (#56555) (#56895)
* UiComponent (#56555)

* feat: 🎸 add UiComponent and adapters

* feat: 🎸 improve UiComponent

* feat: 🎸 add MenuItem to IAction

* test: 💍 add uiToReactComponent() tests

* test: 💍 add reactToUiComponent() tests

* feat: 🎸 allow specifying wrapper tag in uiToReactComponent()

* style: 💄 format according to ESLint

* docs: ✏️ improve JSDocs

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Matthew Kime <matt@mattki.me>

* chore: 🤖 remove missing exports

* style: add comma

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Matthew Kime <matt@mattki.me>
2020-02-06 03:38:41 -08:00
Pierre Gayvallet
181862c191
Restructure SavedObject types internal representation (#56378) (#56953)
* adapt types and tests to prepare for new NP api

* rename and export public types

* update generated doc

* first implementation of registerMappings

* adapt es archiver to convert legacy mappings

* update generated doc

* fix more tests

* add unit tests

* add legacy-compat unit test

* add documentation and examples

* Introduce SavedObjectTypeRegistry and SavedObjectType types

* add and fix tests

* expose createSerializer API and fix usages

* remove registerMappings API, add internal registerType

* revert changes to migration guide

* adapt ES-archiver migrator creation

* export serializer-related types

* update generated doc

* add and use convertTypesToLegacySchema

* remove / move to internal some mapping types

* fix forEach closure context

* add missing docs

* fix core path

* some nits

* fix so_mixin tests

* fix integration tests

* fix integration tests for real

* add documentation on serializer + restructure files and types

* nit

* add and use the ISavedObjectTypeRegistry interface

* Add documentation, deprecates migrationLogger#warning

* better typing for SavedObjectsRawDoc._source

* nits

* update generated doc

* remove exposition of SavedObjectsTypeMappingDefinitions, update doc

* creates so internal contracts mocks

* improve documentation
2020-02-06 12:10:31 +01:00
Pete Harverson
7efcd61115
[ML] (Accessibility) Fix page heading structure (#56741) (#56952)
* [ML] (Accessibility) Fix page heading structure

* [ML] Fix file datavisualizer SCSS import

* [ML] Switch to EuiTitle for influencers list and data viz cards

* [ML] Fix positioning of chart tooltip in Single Metric Viewer
2020-02-06 11:03:20 +00:00
Joe Reuter
eebf010924
[7.x] Disable url tracking for dashboard (#55818) (#56878) 2020-02-06 11:30:39 +01:00
Daniil Suleiman
c9ede92f4a
[Vis Editor] Fix fields filtering in top hit agg (#56367) (#56871)
* Fix top hit agg

* Add unit tests

* Fix fields filtering in table vis

* Resolve merge conflicts

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-06 12:45:54 +03:00
Pierre Gayvallet
ce0c341491
[NP] add plugin integrations testing strategies (#56278) (#56945)
* add plugin integration section

* NITs/wording
2020-02-06 10:30:02 +01:00
Joe Reuter
6d23969bfb
Move lens server to new platform (#56474) (#56888) 2020-02-06 09:22:06 +01:00
CJ Cenizal
8577233e15
[NP migration] Shim ILM (#56068) (#56938)
- Move UI metric constants into public directory.
- Convert server-side code to TS, largely with use of any.
- Remove unused sendPut method from API service.
- Update http error handling to consume NP http service errors.
- Refactor DI pattern of Index Mangement extensions to require various NP service dependencies.
- Inject NP http service into Index Management extensions. Remove dependency upon Angular's $http.
2020-02-05 19:21:36 -08:00
Brandon Kobel
9daaa2f52b
Updating tree-kill to 1.2.2 (#55889) (#56925)
* Updating tree-kill to 1.2.2

* Building more stuff

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 18:52:27 -08:00
Tiago Costa
eb9cfe80d1
Improve webpack memory footprint (#56885) (#56936)
* chore(NA): introduce futureEmitAssets option. chore(NA): bump related webpack dependencies.

* chore(NA): remove minimizer compress on dll compiler.

* chore(NA): re enable dead code removal.

* chore(NA): remove not needed file

* docs(NA): add todo on dll compiler to remove this on webpack 5
2020-02-06 02:51:26 +00:00
Ryland Herrick
4380d0753e
[SIEM] Remove legacy ui imports (#56630) (#56935)
* Replace uses of chrome.getBasePath with NP equivalent

* Prefer functional form of ApolloLink creation

Mainly because there's no mention of direct instantiation in their
documentation.

* Replace uses of chrome.getBasePath with custom hook

This ultimately uses useKibana() for now, but that will change in the
future.

* Refactor our frontend lib composition to use core instead of chrome

This gets rid of our last usage of chrome.getBasePath.

* Remove unused ui modules

These have been unused since we excised our dependence on angular.

* Remove unused mocks

chrome.getBasePath has been deprecated and is unused within SIEM.

* Mock core HTTP service in tests

Now that some of these components are implicitly using the http service
to get the app's basepath, we need to mock it out.

There is a more robust set of mocks provided for core services, but I
don't want to pull that in yet as we're only using this single method,
and it should be addressed when we start paring this down to more
fine-grained mocks for each test/component.

* Define singleton module for our kibana services

The app is currently retrieving services in one of three ways:

* from the ui/new_platform module
* from 'ui/chrome'
* from the KibanaContext, via hooks or HOCs

This module is the first step in consolidating those. We'll initialize
it on plugin start(), and then populate the context with the same
references. ui/chrome will eventually be removed.

* Populate KibanaContext via our services module

This ensures that all references to these services are coming from the
same place, which is easier to reason about and also easier to
mock/test.

* Move our kibana-based hooks to a more appropriate location

These hooks all use the `useKibana()` context hook under the hood, so
it's slightly less confusing to nest them under lib/kibana/hooks.

* Remove outstanding uses of chrome.getUiSettingsClient

This uses our services singleton to fetch the NP UISettings client
directly, rather than through ui/chrome.

Modifies the singleton to export a function rather than a variable, as
this allows us to guard against any misuse, and allows us to mock the
module more easily in tests as well.

* Replace ui/i18n with NP equivalent

The i18n provider comes from the core i18n plugin, now.

* Replace use of ui/chrome in new overview page

* Replace use of npStart with our facade

These are functionally equivalent, but getServices is under our control
and won't go away.

* Retrive data plugin dependencies through consistent code path

One of our components was destructuring and then re-exporting
ui/new_platform code. This works, it's just a little surprising. This
refactors the code to use getServices and useKibana() as appropriate.

* Pass kibana services to our React component

We have a few very specific needs for uses of these services outside of
react, so I've decided to keep that singleton as small as possible until
we can refactor out their need.

* Remove uses of kibana services during module evaluation

There was an issue here where we were calling into UISettings when our
redux code was imported. With the ui/chrome module this just worked, but
now that we're using getServices, those calls were blowing up as the
services had not yet been initialized.

The current solution is to defer the initial state creation (which
accesses UI settings) to start time, when we have our UISettings service
available.

This refactored the default_date_settings helpers and tests pretty
significantly: I consolidated those helpers into two functions for
timeRange settings and refreshInterval settings, respectively.

* Replace static settings functions with short-circuited regular functions

Adds tests for this invocation, too.

* Refactor getIndexPatterns to accept the savedObjects client

This removes one more use of our global getServices helper, and instead
pulls from the kibana context.

* Clean up our use of the data plugin

This removes our one use of getServices with the data plugin, opting
instead for a `useKibana` hook in the calling component.

This cleans up any unnecessary mocks, and converts the needed ones to
mock out useKibana, for now.

* Limit what we can retrieve from getServices

All these uses are now code smells. To prevent their proliferation,
let's try to whitelist which services are available to just what we
need.

* Replace breadcrumbs with NP equivalent

* Convert our getServices module to a singleton Class

Rather than relying on our build system for proper closures, this
enforces that behavior via plain ol' javascript.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 20:00:55 -06:00
CJ Cenizal
0b32cd899d
Fix i18n pluralization bugs in "Remove Lifecycle Policy" modal and "Freeze" action of context menu (#39979) (#56933)
* Fix i18n pluralization bugs in 'Remove Lifecycle Policy' confirmation modal of ILM.
* Fix i18n pluralization bugs in freeze action of Index Management actions context menu.
2020-02-05 17:50:22 -08:00
Anton Dosov
d77dae4d78
Limit fetching index patterns (#56603) (#56901)
Should address #56352.

I did a look up and it seems like only id and title a really used in case that savedObjectsCache is used. So I simply limited that request to fetch only title

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 15:00:53 -08:00
Spencer
ffdc1806df Fix compatibility with yarn 1.22.0 (#56917)
* Revert "force yarn 1.21.1 until we can handle invalid output of 1.22.0 (#56914)"

This reverts commit 5686010b46.

* move the --json argument before `workspaces` so it still works

* update kbn/pm dist

(cherry picked from commit 12de6a8459)
2020-02-05 14:19:11 -07:00
igoristic
9416713c08
Revert "Added new index pattern (#54681) (#54931)" (#56807)
This reverts commit bd3bbefbd5.
2020-02-05 15:41:06 -05:00
Dima Arnautov
840c3f9759
[ML] replace angular copy (#56855) (#56877) 2020-02-05 21:22:03 +01:00
Nathan L Smith
1abc56286b
APM Service Map popover fixes round 1 (#56502) (#56568)
Some fixes for #54405.

* Use the `popoverPositionFluid` method of `EuiPopover` to properly position the arrow based on where the popover was opened
* Rearrange the variable declarations and effects in the popover index
* Create a `Contents` component to separate the internals of the popover from the index, where the poisitioning is done
* Add a story to show the contents rendering

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 13:27:52 -06:00
Matthew Kime
0855f1249a
Create index pattern / create_index_pattern/lib => typescript (#56811) (#56880)
* Create index pattern / create_index_pattern/lib => typescript
2020-02-05 12:37:11 -06:00
Tim Sullivan
736ed90ca3
[Reporting/FieldFormats] expose setFieldFormats and call from ReportingPlugin.start (#56563) (#56875)
* [Reporting] New Platform Migration

Part of #53898

* fix CI

* fix typescript

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 11:33:21 -07:00
Ben Skelker
d5a1546eda
[Docs][SIEM] 7.6 updates (#56844) (#56869)
* adds detections description

* 7.6 updated and screenshots
2020-02-05 19:47:08 +02:00
Alexey Antonov
a912ce8042
Rollup index pattern error: must match one rollup index (#56732) (#56863)
Closes: #32765

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 20:39:39 +03:00
Dima Arnautov
b056edce97
[ML] Setup apiDocs to generate routes docs (#56006) (#56860)
* [ML] setup typedoc to generate routes docs

* [ML] remove typedoc packages

* [ML] apiDoc

* [ML] update optional params

* [ML] address pr comments

* [ML] change names

* [ML] change description for GetDataFrameAnalyticsMessages

* [ML] add custom order
2020-02-05 18:34:08 +01:00
Caroline Horn
ad2901deb3
Fix: Filter pill base coloring (#56761) (#56774) 2020-02-05 12:22:39 -05:00
Tim Sullivan
8bf73685b5
[7.x] [Reporting] Use ES plugin from NP (#56209) (#56693)
* [Reporting] Use ES plugin from NP (#56209)

* [Reporting] Use ES plugin from NP

* fix elasticsearchErrors reference

* fix mocha test

* convert to jest

* fix the code and tests

* cosmetics

* fix mocha tests

* fix imports

* fix mocha tests

* fix jest

* simplify

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* fix eslint

* fix missing import

* fix the backport

* fix mocha test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 09:31:50 -07:00
Daniil Suleiman
1575f0ff90
Remove the editor config provider registry (#56501) (#56850)
* Remove the editor_config_providers

* Remove unused translations

* Fix eslint errors

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

# Conflicts:
#	src/plugins/data/public/index_patterns/index_patterns/index_pattern.tsx
2020-02-05 19:15:26 +03:00
Alejandro Fernández Haro
9b045e74f2
[Telemetry] Report Kibana distro in local collectors + Usage Collectors in TS (#55859) (#56849)
* [Telemetry] Report Kibana distro in local collectors + Usage Collectors in TS

* Ensure isReady is a function

* Move CollectorSet tests to TS + Jest

* Fix test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 16:15:11 +00:00
Aaron Caldwell
85037bd7b0
[Maps] Set filterByMapBounds to default constant if no arg passed (#55068) (#56767)
* Set filterByMapBounds to default constant if no arg passed

* toggle accidentally refers to props instead of state for filterByBounds. update to state

* Review feedback. Remove extra filterByMapBounds

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 08:39:57 -07:00
Anton Dosov
4922867825
improve validation on tuncate field formater editor (#56521) (#56841)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 16:27:05 +01:00
Shahzad
6b631273ca
[Uptime] Kuery Bar Filters break overview page (#56793) (#56843)
* update filter

* fix status panel not using filter group
2020-02-05 15:35:24 +01:00
Alison Goryachev
99d51cbd25
[Rollups] Adjust max width for job detail panel (#56674) (#56795) 2020-02-05 07:25:04 -05:00
Joe Reuter
8f62f0bf2e
Rollup TSVB integration: Add test and fix warning text (#56639) (#56827) 2020-02-05 13:20:29 +01:00
Aleh Zasypkin
20b3db163c
Properly handle password change for users authenticated with provider other than basic. (#55206) (#56831) 2020-02-05 13:17:13 +01:00
Mike Côté
b5b610e0a7
Disable creating alerts client instances when ESO plugin is using an ephemeral encryption key (#56676) (#56790)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 07:17:03 -05:00
Aleh Zasypkin
8df263b153
[7.x] Do not treat HTTP 500 error as possible reason for the expired/missing tokens. (#56758) 2020-02-05 09:21:55 +01:00
Alexey Antonov
433de8536e
Move kuery_autocomplete ⇒ NP (#56607) (#56752)
* Move kuery_autocomplete ⇒ NP

Closes: #51277

* fix i18n keys

* update translations

* data_xpack -> data_enhanced

* data -> data_enhanced

* fix i18nrc

* fix PR comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 11:07:24 +03:00
Tyler Smalley
57ce6be969
Bumps terser-webpack-plugin to 2.3.4 (#56662) (#56787)
We're seeing occasional "Error: Call retries were exceeded" exception
with Terser, which should be resolved by
abfd950620,
first included in 2.3.4

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-04 22:18:01 -08:00
Matthias Wilhelm
ef6f1f90cd
[Discover] Migrate get_sort.js test from mocha to TypeScript (#56011) (#56742)
* Migrate get_sort.js test from mocha to jest and convert to TypeScript
* Add jest test
2020-02-05 06:33:26 +01:00
Frank Hassanabad
dc87741087
[SIEM][Detection Engine] Final final rule changes (#56806) (#56819)
## Summary

* Final, final, Rule changes

### Checklist

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~~

~~- [ ] [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)~~

### For maintainers

~~- [ ] 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)~~

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-04 21:10:53 -07:00
Andrew Cholakian
abcc6b7cbd
[Uptime] Add unit tests for QueryContext time calculation (#56671) (#56718)
Add Unit tests for the QueryContext class that was missing testing. This would have caught #56612

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-04 22:05:49 -06:00
Corey Robertson
f0194db368
Only change handlers as the element changes (#56782) (#56821)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-04 22:47:23 -05:00
Luke Elmers
1a47927468
Move ui/agg_types in to shim data plugin (#56353) (#56815) 2020-02-04 20:28:12 -07:00
Frank Hassanabad
696cacc990
[SIEM][Detection Engine] critical blocker, wrong ilm policy, need to match beats ilm policy (#56817)
## Summary

Need to match ILM policy of auditbeat and we almost forgot this and it would be bad for shipping if we did not have best practices for ILM.

### Checklist

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~~

~~- [ ] [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)~~

### For maintainers

~~- [ ] 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)~~

### Checklist

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
- [ ] [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)

### For maintainers

- [ ] 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)
2020-02-04 19:47:52 -07:00
Corey Robertson
1d328a6bea
[Canvas] Use unique Id for Canvas Embeddables (#56783) (#56801)
* Use uniqueID for embeddable registry

* Adds type to renderer
2020-02-04 19:57:27 -05:00
Xavier Mouligneau
7cfa489494
fix open close signal on detail page (#56757) (#56778)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-04 19:44:09 -05:00
Ryland Herrick
e23b5863ea
Prevent http client from converting our form data (#56772) (#56792)
If we don't specify an undefined content-type like so, the client
attempts to convert our form data into a JSON string, and the backend
returns an understandable 415.

This fixes rule imports.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-04 18:09:01 -06:00
Matthew Kime
2b26a3950b
Advanced settings component registry ⇒ kibana platform plugin (#55940) (#56808)
* advanced settings component registry to new platform
2020-02-04 18:07:23 -06:00
Andrew Goldstein
f48c339f3f
[SIEM] Fixes Signals count spinner (#56797) (#56809)
## Fixes an issue where the Signals count spinner can spin forever

Per the animated gif below, in `7.6` `BC 4`, the `Signals count` spinner on the Overview page spins forever until the signals index is created (in the current Kibana space):

![signals-count-loading-spinner](https://user-images.githubusercontent.com/4459398/73785251-2ca42000-4754-11ea-8671-daa81f351c9b.gif)

The `Signals count` spinner will spin forever until the user clicks the `Detections` tab, which-in turn creates the signals index (if it doesn't exist), per the animated gif below:

![create-signals-index](https://user-images.githubusercontent.com/4459398/73785319-4ba2b200-4754-11ea-9bb0-a745a8b2be5d.gif)

This behavior is an issue because:

- When a fresh deployment is created on Elastic Cloud, a user won't understand why the `Signals count` widget is always spinning on the `Overview` page. (The user must click the `Detections` page to resolve this.)
- In deployments where authentication is disabled, or, for _reasons_, a Detections index will never be created, the `Signals count` spinner on the Overview page will always spin.

To reproduce:

1. Spin up a new `7.6` `BC 4` deployment on Elastic Cloud
2. Login to Kibana for the first time
3. Navigate to the SIEM app

**Expected result**
- All histograms on the Overview page eventually stop displaying their respective loading spinners

**Actual result**
- The `Signals count` widget spinner spins forever. (The user must click the `Detections` tab to create the signals index.)

## Deleting the signals index

To reproduce the issue above when a signals index has already been created (by clicking on the Detections tab), run the following from the Kibana `Dev Tools` `Console`:

```
DELETE /.siem-signals-default-000001
```

It is also possible to reproduce this issue by creating a new space, because it won't have a signals index.

https://github.com/elastic/siem-team/issues/514
2020-02-04 16:55:28 -07:00
Tyler Smalley
33f937e118 [docs] Update upgrade version path (#56658)
When upgrading to the next major version, users should first upgrade to
the last minor in the previous release. In 6.x this is 6.8.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-02-04 14:00:56 -08:00