Commit graph

9677 commits

Author SHA1 Message Date
Nathan Reese
917598141f
[Maps] choropleth layer wizard (#69699)
* [Maps] choropleth layer wizard

* add boundaries radio group

* geo_index_pattern_select

* consolidate more logic into geo_index_pattern_select

* small clean-up

* left geo field and join field

* move EuiPanel into render wizard

* cleanup

* right panel

* createEmsChoroplethLayerDescriptor

* createEsChoroplethLayerDescriptor

* i18n cleanup

* tslint

* snapshot update

* review feedback

* review feedback

* update snapshot

* make EMS default source

* tslint

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:12:09 -06:00
John Schulz
7db95a1691
Make custom errors by extending Error (#69966)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 17:08:50 -04:00
Jen Huang
d9fcc585cf
[Ingest Manager] Support updated package output structure (#69864)
* Update EPM package registry typings to reflect registry changes

* Change `dataset.id` references to `dataset.name`

* Fix RegistryStream

* Fix packageToConfigDatasourceInputs service

* Fix assignPackageStream service

* Fix validateDatasource service

* Fix configure data source components

* Fix variable

* Fix stream template installation

* Add support for `input[].dataset.type` and change `stream.dataset` mapping to be object containing `name` with instead of just a string

* Nest package information under `meta` in agent config yaml

* Move `dataset.type` to stream level instead of input level

* Make single call to fetch registry package information instead of doing it per stream

* Fix type issues

* Update endpoint test assertion

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 14:06:05 -07:00
Robert Austin
ad9d3dcb9c
Resolver test coverage (#70246)
* Move AABB, Matrix3, and Vector2 modules from lib to models

* Add tests for AABB

* remove dead code
2020-06-29 17:04:29 -04:00
Lee Drengenberg
752fa6e01e
Async Discover search test (#64388)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:40:02 -05:00
Spencer
9c965fef72
[ui-shared-deps] include styled-components (#69322)
* [ui-shared-deps] include styled-components

* update snapshots caused by react-is upgrade

* fix jest snapshots

* declare react-is dep in x-pack too so it uses the right version

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 13:06:14 -07:00
nnamdifrankie
f196546f4b
SECURITY-ENDPOINT: add host properties (#70238) 2020-06-29 16:03:02 -04:00
MadameSheema
04991d40c2
[SIEM] Fixes 'sets and reads the url state for timeline by id' Cypress test (#69882)
* fixes 'sets and reads the url state for timeline by id' test

* fixes merge issue

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 21:20:54 +02:00
Shahzad
df44a3e779
[RUM Dashboard] Chart breakdowns (#69420)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 20:54:52 +02:00
Wylie Conlon
736e64c60f
[Lens] Fix cross cluster bug and optimize existence query (#70132)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 13:47:08 -04:00
MadameSheema
c2944855bd
renames 'detections' to 'alerts' (#70164) 2020-06-29 19:29:37 +02:00
MadameSheema
2a25df3f1c
[SIEM] Fixes Cypress 'Search Bar' test (#69952)
* fixes 'Search Bar' test

* [DEBUG] executes only Security Cypress tests

* Revert "[DEBUG] executes only Security Cypress tests"

This reverts commit e727790dbf.

* [DEBUG] executes only Security Cypress tests

* [DEBUG] fixes jenkins file

* [DEBUG] fixes Jenkinsfile

* Revert "[DEBUG] fixes Jenkinsfile"

This reverts commit 8f42e82edd.

* Revert "[DEBUG] fixes jenkins file"

This reverts commit 98487467eb.

* Revert "[DEBUG] executes only Security Cypress tests"

This reverts commit 6a089305e1.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 19:28:46 +02:00
Robert Austin
8ffdd4568b
[Security Solution] Resolver in Timeline (#69728)
Display Resolver in Security Solution's Timeline.
2020-06-29 13:10:39 -04:00
Joel Griffith
c53f036f5d
Ensure that security is enabled before doing user authentication checks (#70127)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 09:26:11 -07:00
Luke Elmers
851e7ff9b8
[data.search.aggs] Remove fieldFormats from AggConfig & AggConfigs (#69762) 2020-06-29 10:10:34 -06:00
Brian Seeders
462bf1520f skip flaky suite (#69617) 2020-06-29 11:48:39 -04:00
Vadim Dalecky
9f6ad5a8d8
"Explore underlying data" in-chart action kibana.yml flag (#70045)
* refactor: 💡 rename folder to "explore_data"

* style: 💄 check for "share" plugin in more semantic way

"explore data" actions use Discover URL generator, which is registered
in "share" plugin, which is optional plugin, so we check for its
existance, because otherwise URL generator is not available.

* refactor: 💡 move KibanaURL to a separate file

* feat: 🎸 add "Explore underlying data" in-chart action

* fix: 🐛 fix imports after refactor

* feat: 🎸 add start.filtersFromContext to embeddable plugin

* feat: 🎸 add type checkers to data plugin

* feat: 🎸 better handle empty filters in Discover URL generator

* feat: 🎸 implement .getUrl() method of explore data in-chart act

* feat: 🎸 add embeddable.filtersAndTimeRangeFromContext()

* feat: 🎸 improve getUrl() method of explore data action

* test: 💍 update test mock

* fix possible stale hashHistory.location in discover

* style: 💄 ensureHashHistoryLocation -> syncHistoryLocations

* docs: ✏️ update autogenerated docs

* test: 💍 add in-chart "Explore underlying data" unit tests

* test: 💍 add in-chart "Explore underlying data" functional tests

* test: 💍 clean-up custom time range after panel action tests

* chore: 🤖 fix embeddable plugin mocks

* chore: 🤖 fix another mock

* test: 💍 add support for new action to pie chart service

* feat: 🎸 add kibana.yml to disable in-chart "explore data" actio

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 17:47:08 +02:00
Larry Gregory
28b70923df
Consolidate capabilities check for Stack Management (#69437)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 11:43:43 -04:00
Pierre Gayvallet
fe1c508d8d
Move and rename legacy elasticsearch client (#69797)
* move last snapshot to inline

* move legacy files to legacy subfolder

* move request types out of legacy

* export Headers from http instead of elasticsearch

* renaming - first pass

* renaming - second pass

* fix core mocks

* adapt new calls

* update generated doc

* fix IT test mocks

* fix new usages
2020-06-29 17:43:31 +02:00
patrykkopycinski
821aa9903b
Bump react-router (#69608) 2020-06-29 16:55:38 +02:00
Nicolas Chaulet
6e9972e693
[Ingest Manager] expose method to get agent and list agents to other plugins (#70087) 2020-06-29 10:51:30 -04:00
Corey Robertson
f47b3e50c7
[Canvas] Update Canvas Plugin documentation (#65910)
* Update Canvas Plugin documentation

* Small fix

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
2020-06-29 10:39:49 -04:00
Daniil Suleiman
19bda1fcee
Reactify visualize app (#67848)
* Reactify visualize app

* Fix typescript failures after merging master

* Make sure refresh button works

* Subscribe filter manager fetches

* Use redirect to landing page

* Update savedSearch type

* Add check for TSVB is loaded

* Fix comments

* Fix uiState persistence on vis load

* Remove extra div around TableListView

* Update DTS selectors

* Add error handling for embeddable

* Remove extra argument from useEditorUpdates effect

* Update comments, fix typos

* Remove extra div wrapper

* Apply design suggestions

* Revert accidental config changes

* Apply navigating to dashboard

* Apply redirect legacy urls

* Apply incoming changes

* Apply incoming changes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 17:21:49 +03:00
Dario Gieselaar
dbdc3cd01a
[APM] Run API tests as restricted user (#70050) 2020-06-29 16:17:32 +02:00
Sandra Gonzales
81022a3206
[Ingest Manager] rollover data stream when index template mappings are not compatible (#69180)
* rollover data stream when index template mappings are not compatible

* update error messages

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 10:01:59 -04:00
Shahzad
64e87cd6b5
[Uptime] Use ML Capabilities API to determine license type (#66921)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:36:59 +02:00
Sonja Krause-Harder
e91594aeb9
[Ingest Manager] Use DockerServers service in integration tests. (#69822)
* Partially disable test files.

* Use DockerServers in EPM tests.

* Only run tests when DockerServers have been set up

* Reenable ingest manager API integration tests

* Pass new test_packages to registry container

* Enable DockerServers tests in CI.

* Correctly serve filetest package for file tests.

* Add helper to skip test and log warning.

* Reenable further file tests.

* Add developer documentation about Docker in Kibana CI.

* Document use of yarn test:ftr

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:24:11 +02:00
Nathan L Smith
8e57db696a
[APM] Use licensing from context (#70118)
* [APM] Use licensing from context

We added the usage of `featureUsage.notifyUsage` from the licensing plugin in #69455.

This required us to use `getStartServices to add `licensing` to `context.plugins`.

In #69838 `featureUsage` was added to `context.licensing`, so we don't need to add it to `context.plugins`.
2020-06-29 08:23:52 -05:00
Pierre Gayvallet
7e5cff4be9
[GS] add application result provider (#68488)
* add application result provider

* remove empty contracts & cache searchable apps

* fix types
2020-06-29 15:17:00 +02:00
Alison Goryachev
3571100bcc
[CCR] Fix reducer function when finding missing privileges (#70158) 2020-06-29 08:31:59 -04:00
Wylie Conlon
40ff82d779
[Lens] Fix broken test (#70117) 2020-06-27 08:20:29 +02:00
Angela Chuang
f4e7f14ffe
[SIEM] Import timeline fix (#65448)
* fix import timeline and clean up

fix unit tests

apply failure checker

clean up error message

fix update template

* add unit tests

* clean up common libs

* rename variables

* add unit tests

* fix types

* Fix imports

* rename file

* poc

* fix unit test

* review

* cleanup fallback values

* cleanup

* check if title exists

* fix unit test

* add unit test

* lint error

* put the flag for disableTemplate into common

* add immutiable

* fix unit

* check templateTimelineVersion only when update via import

* update template timeline via import with response

* add template filter

* add filter count

* add filter numbers

* rename

* enable pin events and note under active status

* disable comment and pinnedEvents for template timelines

* add timelineType for openTimeline

* enable note icon for template

* add timeline type for propertyLeft

* fix types

* duplicate elastic template

* update schema

* fix status check

* fix import

* add templateTimelineType

* disable note for immutable timeline

* fix unit

* fix error message

* fix update

* fix types

* rollback change

* rollback change

* fix create template timeline

* add i18n for error message

* fix unit test

* fix wording and disable delete btn for immutable timeline

* fix unit test provider

* fix types

* fix toaster

* fix notes and pins

* add i18n

* fix selected items

* set disableTemplateto true

* move templateInfo to helper

* review + imporvement

* fix review

* fix types

* fix types

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2020-06-27 04:53:53 +01:00
Candace Park
684289d6e3
[SECURITY SOLUTION][INGEST] UX update for ingest manager edit/create datasource for endpoint (#70079)
[security solution][ingest]UX update for ingest manager edit/create datasource for endpoint
2020-06-26 20:25:01 -04:00
Ahmad Bamieh
266f853b0b
[Telemetry] Collector Schema (#64942)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-27 02:52:26 +03:00
Kevin Logan
5236335d63
[Endpoint] Add Endpoint empty states for onboarding (#69626) 2020-06-26 18:08:07 -04:00
Michael Olorunnisola
5c8df21ca0
Hide unused resolver buttons (#70112)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 17:38:02 -04:00
Andrew Goldstein
295ac7ef12
[Security] Investigate in Resolver Timeline Integration (#70111)
## [Security] `Investigate in Resolver` Timeline Integration

This PR adds a new `Investigate in Resolver` action to the Timeline, and all timeline-based views, including:

- Timeline
- Alert list (i.e. Signals)
- Hosts > Events
- Hosts > External alerts
- Network > External alerts

![investigate-in-resolver-action](https://user-images.githubusercontent.com/4459398/85886173-c40d1c80-b7a2-11ea-8011-0221fef95d51.png)

### Resolver Overlay

When the `Investigate in Resolver` action is clicked, Resolver is displayed in an overlay over the events. The screenshot below has placeholder text where Resolver will be rendered:

![resolver-overlay](https://user-images.githubusercontent.com/4459398/85886309-10f0f300-b7a3-11ea-95cb-0117207e4890.png)

The Resolver overlay is closed by clicking the `< Back to events` button shown in the screenshot above.

The state of the timeline is restored when the overlay is closed. The scroll position (within the events), any expanded events, etc, will appear exactly as they were before the Resolver overlay was displayed.

### Case Integration

Users may link directly to a Timeline Resolver view from cases via the `Attach to new case` and `Attach to existing case...` actions show in the screenshot below:

![case-integration](https://user-images.githubusercontent.com/4459398/85886773-e3587980-b7a3-11ea-87b6-b098ea14bc5f.png)

![investigate-in-resolver](https://user-images.githubusercontent.com/4459398/85885618-daff3f00-b7a1-11ea-9356-2e8a1291f213.gif)

When users click the link in a case, Timeline will automatically open to the Resolver view in the link.

### URL State

Users can directly share Resolver views (in saved Timelines) with other users by copying the Kibana URL to the clipboard when Resolver is open.

When another user pastes the URL in their browser, Timeline will automatically open and display the Resolver view in the URL.

### Enabling the `Investigate in Resolver` action

In this PR, the `Investigate in Resolver` action is only enabled for events where all of the following are true:

- `agent.type` is `endpoint`
- `process.entity_id` exists

### Context passed to Resolver

The only context passed to `Resolver` is the `_id` of the event (when the user clicks `Investigate in Resolver`)

### What's next?

- @oatkiller will replace the placeholder text shown in the screenshots above with the actual call to Resolver in a separate PR
- I will follow-up this PR with additional tests
- The action text `Investigate in Resolver` may be changed in a future PR
- Hide the `Add to case` action in timeline-based views (it's currently visible, but disabled)
2020-06-26 15:36:51 -06:00
Chris Cowan
938733e862
[Metrics UI] Fix EuiTheme type issue (#69735)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 12:55:36 -07:00
Brian Seeders
e4aaed6926 skip failing suite (#70104) (#70103) 2020-06-26 15:06:49 -04:00
Paul Tavares
0bdff15297
[ENDPOINT] Hide the Timeline Flyout while on the Management Pages (#69998)
* hide timeline on Management pages
* adjust managment page view styles
* Added additional tests for validating no timeline button on management views
* centralize API Path responses and reuse across some tests
* Fix state being reset incorrectly
2020-06-26 14:59:13 -04:00
Christos Nasikas
6808903d57
[SIEM][CASE] Persist callout when dismissed (#68372) 2020-06-26 21:31:41 +03:00
Yara Tercero
e4043b736b
[SIEM][Exceptions] - Cleaned up and updated exception list item comment structure (#69532)
### Summary

This PR is a follow up to #68864 . That PR used a partial to differentiate between new and existing comments, this meant that comments could be updated when they shouldn't. It was decided in our discussion of exception list schemas that comments should be append only. This PR assures that's the case, but also leaves it open to editing comments (via API). It checks to make sure that users can only update their own comments.
2020-06-26 14:15:35 -04:00
Nathan Reese
8aa2206e04
[Maps] remove indexing state from redux (#69765)
* [Maps] remove indexing state from redux

* add indexing step

* tslint

* tslint fixes

* tslint item

* clear preview when file changes

* review feedback

* use prevState instead of this.state in setState

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 12:12:35 -06:00
CJ Cenizal
497dfc7af3
Add API integration test for deleting data streams. (#70020) 2020-06-26 10:59:59 -07:00
Dmitry Lemeshko
6ebf56ba66
Adding saved_objects_page in OSS (#69900)
* add savedObjects own PO

* fix usage

* simplify functions

* fix test

* fix title parsing

* add missing await

* improve parsing

* wait for table is loaded

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 19:02:30 +02:00
Marta Bondyra
7440eea3dc
[Lens] Use accordion menus in field list for available and empty fields (#68871) 2020-06-26 18:43:35 +02:00
Anton Dosov
3ac5bc5323
Dynamic uiActions & license support (#68507)
This pr adds convenient license support to dynamic uiActions in x-pack.
Works for actions created with action factories & drilldowns.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 18:33:32 +02:00
Angela Chuang
100a5fd18b
[SIEM] Update readme for timeline apis (#67038)
* update doc

* update unit test

* remove redundant params

* fix types

* update readme

* update readme

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 17:12:21 +01:00
John Dorlus
4845bef181
Fixed issue where promise chain was broken. (#70004)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 11:59:50 -04:00
Walter Rafelsberger
eea33a0db2
[ML] Transforms: Adds functional tests for transform cloning and editing. (#69933)
Adds functional tests for transform cloning and editing.
2020-06-26 17:03:00 +02:00
Marta Bondyra
2a68dc7c6b
[Lens] Last used Index pattern is saved to and retrieved from local storage (#69511) 2020-06-26 16:33:09 +02:00
Jean-Louis Leysens
c8089a5aa2
[Ingest Pipelines Editor] First round of UX improvements (#69381)
* First round of UX tweaks

- Fixed potential text overflow issue on descriptions
- Removed border around text input when editing description

* Updated the on-failure pipeline description copy

* Properly encode URI component pipeline names

* use xjson editor in flyout

* also hide the test flyout if we are editing a component

* add much stronger dimming effect when in edit mode

* also added dimming effect to moving state

* remove box shadow if dimmed

* add tooltips to dropzones

* fix CITs after master merge

* fix nested rendering of processors tree

* only show the tooltip when the dropzone is unavaiable and visible

* keep white background on dim

* hide controls when moving

* fix on blur bug

* Rename variables and prefix booleans with "is"

* Remove box shadow on all nested tree items

* use classNames as it is intended to be used

* Refactor SCSS values to variables

* Added cancel move button

- also hide the description in move mode when it is empty
- update and refactor some shared sass variables
- some number of sass changes to make labels play nice in move
  mode
- changed the logic to not render the buttons when in move mode
  instead of display: none on them. The issue is with the tooltip
  not hiding when when we change to move mode and the mouse event
  "leave" does get through the tooltip element causing tooltips
  to hang even though the mouse has left them.

* Fixes for monaco XJSON grammar parser and update form copy

- Monaco XJSON worker was not handling trailing whitespace
- Update copy in the processor configuration form

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 16:25:50 +02:00
Kevin Qualters
9ebf41c77c
[Endpoint] use rbush to only render to DOM resolver nodes that are in view (#68957)
* [Endpoint] use rbush to only render resolver nodes that are in view in the DOM

* Add related events code back

* Change processNodePositionsAndEdgeLineSegments selector to return a function that takes optional bounding box

* Refactor selectors to not break original, and not run as often

* Memoize rtree search selector, fix tests

* Update node styles to use style hook, update jest tests

* Fix type change issue in jest test
2020-06-26 09:42:10 -04:00
Alejandro Fernández Haro
ae7e9d9ad5
[License Management] Do not break when telemetry.enabled:false (#69711)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 13:57:17 +01:00
Xavier Mouligneau
09e3f75bc3
[SECURITY] Redirect app/security to app/security/overview (#70005)
* redirect app/security to app/security/overview

* missing re-naming initialization

* add unit test for intialization value of indicesExists

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 08:56:09 -04:00
Vadim Dalecky
684aa68f17
"Explore underlying data" in-chart action (#69494)
* refactor: 💡 rename folder to "explore_data"

* style: 💄 check for "share" plugin in more semantic way

"explore data" actions use Discover URL generator, which is registered
in "share" plugin, which is optional plugin, so we check for its
existance, because otherwise URL generator is not available.

* refactor: 💡 move KibanaURL to a separate file

* feat: 🎸 add "Explore underlying data" in-chart action

* fix: 🐛 fix imports after refactor

* feat: 🎸 add start.filtersFromContext to embeddable plugin

* feat: 🎸 add type checkers to data plugin

* feat: 🎸 better handle empty filters in Discover URL generator

* feat: 🎸 implement .getUrl() method of explore data in-chart act

* feat: 🎸 add embeddable.filtersAndTimeRangeFromContext()

* feat: 🎸 improve getUrl() method of explore data action

* test: 💍 update test mock

* fix possible stale hashHistory.location in discover

* style: 💄 ensureHashHistoryLocation -> syncHistoryLocations

* docs: ✏️ update autogenerated docs

* test: 💍 add in-chart "Explore underlying data" unit tests

* test: 💍 add in-chart "Explore underlying data" functional tests

* test: 💍 clean-up custom time range after panel action tests

* chore: 🤖 fix embeddable plugin mocks

* chore: 🤖 fix another mock

* test: 💍 add support for new action to pie chart service

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2020-06-26 14:26:35 +02:00
Devon Thomson
52223da44f
prep state transfer for passing embeddables by value to editor and back (#69991)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 12:55:12 +01:00
Gidi Meir Morris
1ab5b4ab8b
[alerting] migrates the old alerting consumer to be alerts (#69982)
This PR migrates all old alerts with the `alerting` consumer to have `alerts` instead.
This is because in 7.9 we changed the feature ID and we need these to remain in sync otherwise the RBAC work (https://github.com/elastic/kibana/pull/67157) will break old alerts.
2020-06-26 12:04:42 +01:00
Cauê Marcondes
41ecf39539
[APM]Create API to return data to be used on the Overview page (#69137)
* Adding apm data fetcher

* removing error rate

* chaging observability dashboard routes

* APM observability fetch data

* fixing imports

* adding unit test

* addressing PR comments

* adding processor event in the query, and refactoring theme

* fixing ts issues

* fixing unit tests
2020-06-26 11:11:42 +02:00
Marta Bondyra
8448ae8b4b
[Lens] Fix delete button position in dimension panel for long labels (#69495) 2020-06-26 09:50:13 +02:00
Joe Reuter
67e48527e7
[Lens] Add toolbar api (#69263) 2020-06-26 09:38:35 +02:00
Nathan Reese
be3886b77f
[Maps] avoid using MAP_SAVED_OBJECT_TYPE constant when defining URL paths (#69723)
* [Maps] avoid using MAP_SAVED_OBJECT_TYPE constant when defining URL paths

* rename methods

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 20:25:05 -06:00
Nathan Reese
0465e86bf3
[Maps] Fix icon palettes are not working (#69937)
* [Maps] Fix icon palettes are not working

* unit test mapbox icon-image expression

* fix unit test expect statements
2020-06-25 20:20:59 -06:00
Nicolas Chaulet
7163c678bd
[Ingest Manager] Fix typo in constant name (#69919) 2020-06-25 20:32:29 -04:00
Jonathan Budzenski
0f9efa8d60
[test] skip status.allowAnonymous tests on cloud (#69017)
* skip cloud status page

* move skipcloud to describe block

* merge includeFireFox and skipCloud

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 19:10:27 -05:00
Tim Sullivan
e143905223
[Reporting] ReportingStore module (#69426)
* Add store class

* fix tests

* fix the createIndex bug

* add reportingstore test

* change function args

* nits

* add test for automatic index creation failure recovery
2020-06-25 14:52:30 -07:00
Josh Dover
77df036558
Add featureUsage API to licensing context provider (#69838) 2020-06-25 15:28:48 -06:00
Zacqary Adam Xeper
3b9bbdb1a0
Fix uncaught typecheck merge conflict (#70001) 2020-06-25 15:03:09 -05:00
Rudolf Meijering
61a69f3825
Use TS to discourage SO mappings with dynamic: false / dynamic: true (#69927)
* Use TS to discourage SO mappings with dynamic

* Some unrelated docs changes
2020-06-25 21:44:57 +02:00
Robert Austin
c7aec6ec08
Rename Resolver types to include 'Resolver' (#69926)
Include the word 'Resolver' in some Resolver specific types in order to
improve readability and ease of auto-importing.
2020-06-25 14:54:05 -04:00
István Zoltán Szabó
d25ced2dd3
[ML] Changes create DFA job page title (#69925) 2020-06-25 19:37:25 +02:00
Steph Milovic
4eafb8e1b0
[Security Solution] [Timeline] fix bug for filter manager #69870 2020-06-25 11:32:15 -06:00
Rashmi Kulkarni
e79e84c3fb
Search profiler functional test -- using "test_user" with limited role. (#69841)
* using test_user with limited read permission to search profiler test

* gitcheck

* search profiler test using test_user
2020-06-25 10:20:28 -07:00
Søren Louv-Jansen
86895ef89f
[APM] Add callout to inform users of high cardinality in unique transaction names (#69112)
* [APM] Add callout

Showing a callout to inform the user we have detected a high cardinality in unique transaction names and enabling them how to fix it.

* Changed color and icon

* Updated copy and styling

* Check number of returned buckets

* Add translations and docs

* Update docs link

Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>

* Fix tests

Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
2020-06-25 19:11:47 +02:00
Zacqary Adam Xeper
71ea1a05c3
[Metrics UI] Prefill alerts from the global dropdown (#68967)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 12:00:58 -05:00
Aaron Caldwell
40c746e3fd
[Maps] Remove maps-telemetry saved object as it is no longer in use (#69871) 2020-06-25 10:38:53 -06:00
Gidi Meir Morris
68cf857193
[Encrypted Saved Objects] Adds support for migrations in ESO (#69513)
Introduces migrations into Encrypted Saved Objects.

The two main changes here are:
1. The addition of a createMigration api on the EncryptedSavedObjectsPluginSetup.
2. A change in SavedObjects migration to ensure they don't block the event loop.
2020-06-25 17:23:31 +01:00
patrykkopycinski
ef496ff6fa
[SIEM] Replace WithSource with useWithSource hook (#68722) 2020-06-25 18:08:17 +02:00
nnamdifrankie
a854067fb0
[Endpoint]EMT-451: add ability to filter endpoint metadata based on presence of unenrolled events (#69708)
[Endpoint]EMT-451: add ability to filter endpoint metadata based on presence of unenrolled events
2020-06-25 11:50:16 -04:00
Xavier Mouligneau
ff3ee41e79
rename old siem kibana config to securitySolution (#69874)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 11:30:25 -04:00
Robert Austin
eb5afccfd0
Remove unused Resolver code (#69914)
* embeddable
* embeddable factory
* a file called 'sample'
* resolver/index (it was just importing and re-exporting stuff)
2020-06-25 11:20:18 -04:00
Cauê Marcondes
9d9df2b6c1
[Observability] Fixing dynamic return type based on the appName (#69894)
* fixing generic return type

* addressing pr comments
2020-06-25 17:19:38 +02:00
Candace Park
1daa2f4a54
[SECURITY SOLUTION][INGEST] Task/endpoint list tests (#69419)
endpoint func tests for endpoint details to ingest, edit datasource to policy, bug fix for security link
2020-06-25 11:10:39 -04:00
Dario Gieselaar
589d6ffd22
[APM] Catch annotations index permission error and log warning (#69881)
Relates to #69642. If the user doesn't have the appropriate privileges for the annotations index, instead of failing with a 500, we now catch the error and log a warning to the console.
2020-06-25 16:55:46 +02:00
Paul Tavares
8ff45caa76
[Endpoint][Ingest Manager] minor code cleanup (#69844)
* Ingest: Rename datasource Layout prop to `onCancel`
* Endpoint: Policy list - swap use of endpoint package hook for redux middleware
* Endpoint: Add tests cases for `sendGetEndpointSecurityPackage()` method
* Endpoint: add policy list store tests for new action
2020-06-25 10:51:05 -04:00
Alejandro Fernández
14ac056be9
[Logs UI] Logs ui context menu (#69915) 2020-06-25 16:27:17 +02:00
Yara Tercero
f7acbbe7a1
[SIEM][Detection Engine] - Update DE to work with new exceptions schema (#69715)
* Updates list entry schema, exposes exception list client, updates tests

* create new de list schema and unit tests

* updated route unit tests and types to match new list schema

* updated existing DE exceptions code so it should now work as is with updated schema

* test and types cleanup

* cleanup

* update unit test

* updates per feedback
2020-06-25 09:47:05 -04:00
Brent Kimmel
0ef7bb84bc
PR: Provide limit warnings to user when API limits are reached. (#69590)
* Provide facilties to raise limit warnings for user when API limits are reached.
2020-06-25 09:38:16 -04:00
Thomas Neirynck
6556ccf564
[Maps] Remove broken button (#69853) 2020-06-25 09:36:12 -04:00
Christos Nasikas
6929f674ac
[SIEM][CASE] Improve Jira's labelling (#69892)
* Change labeling

* Improve word
2020-06-25 16:12:42 +03:00
Felix Stürmer
44d60c5fd2
[Logs UI] Access ML via the programmatic plugin API (#68905)
This modifies the routes related to log rate and category analysis to use the new programmatic APIs provided by the `ml` plugin to access the results index and job info. Because that access is facilitated via the request context, the log analysis lib was converted from classes to plain functions.

At the same time the routes have been updated to use the most recent validation and error handling patterns.
2020-06-25 15:06:27 +02:00
Melissa Alvarez
ac3a1a33fa
[ML] DF Analytics: Creation wizard part 3 (#69456)
* update clone tests

* validate advanced params with explain

* disable button while fetching validation data

* comment out clone tests for now
2020-06-25 09:05:55 -04:00
Robert Austin
a51ad2dfd2
Update Resolver generator script documentation (#69912) 2020-06-25 08:52:25 -04:00
István Zoltán Szabó
ac172dae44
[ML] Changes View results button text on new job page (#69809)
* [ML] Changes View results button text on new job page.

* [ML] Puts back translation lines.
2020-06-25 14:10:33 +02:00
John Schulz
2685654cdc
[Ingest Manager] Kibana, not EPR, controls removable packages (#69761)
* Kibana, not EPR, controls removable packages

* Add 'removable' property to OpenAPI PackageInfo schema

* Undo changes to example /packages API output

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 06:35:57 -04:00
MadameSheema
e1cc40ed75
unskips 'Events columns' test (#69684) 2020-06-25 12:01:03 +02:00
István Zoltán Szabó
cf96249cf3
[ML] Changes the ML overview empty analytics panel text (#69801) 2020-06-25 11:54:51 +02:00
Alejandro Fernández
f6c9ca20ed
[Logs UI] ML log integration splash screen (#69288)
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 10:18:32 +02:00
Dario Gieselaar
42b87c0154
[APM] Script for metric aggregation (#67964)
* [APM] Script for metric aggregation

* Retry mechanism

* Docs/comments

* compress histogram; support --filter & --only parameters

* Add flag for significant figures

* Ignore apm scripts

* Add tsconfig project for apm/scripts
2020-06-25 09:20:19 +02:00
igoristic
1ae5d32652
Fixed links missing a hash (#69861)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 00:22:58 -04:00
CJ Cenizal
b48c8bf355
Add delete data stream action and detail panel (#68919)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 19:30:12 -07:00
Catherine Liu
8ed4f7f91f
Adds link for Cloud deployment settings (#66486)
Co-authored-by: Michail Yasonik <michail@yasonik.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 15:08:37 -07:00
Clint Andrew Hall
8e363e5d61
Convert Positionable, RenderToDom and RenderWithFn to functional/hooks/no recompose. (#68202)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 17:18:28 -04:00
Oliver Gupte
e3598cbeca
[APM] Pulls legacy ML code from service maps and integrations (#69779)
* Pulls out existing ML integration from the service maps

* - removes ML job creation flyout in integrations menu on the service details UI
- removes ML searches and transforms in the transaction charts API
- removes unused shared functions and types related to the legacy ML integration

* removes unused translations for APM anomaly detection

* Adds tags to TODOs for easy searching later
2020-06-24 13:31:02 -07:00
Nicolas Chaulet
14f975c899
[IngestManager] Expose agent authentication using access key (#69650)
* [IngestManager] Expose agent authentication using access key

* Add unit tests to authenticateAgentWithAccessToken service
2020-06-24 15:53:38 -04:00
Paul Tavares
a104e5ab0e
[Ingest Manager] Support registration of server side callbacks for Create Datasource API (#69428)
* Ingest: Expose `registerExternalCallback()` method out of Ingest server `start` lifecycle
* Ingest: Add support for External Callbacks on REST `createDatasourceHandler()`
* Ingest: expose DatasourceServices to Plugin start interface
* Endpoint: Added Endpoint Ingest handler for Create Datasources
  - Also moved the temporary logic from the middleware
    to the handler (still temporary)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 15:16:15 -04:00
Shahzad
904be0249b
[Uptime] Fix charts dark theme (#69748) 2020-06-24 20:45:20 +02:00
Melissa Alvarez
94321ccdd0
[ML] DF Analytics Creation: add progress indicator (#69583)
* add progress indicator to creation wizard page

* only show progress bar if job is started immediately

* add title and switch to timeout

* fix progress check

* clean up interval on unmount

* fix types

* clear interval if stats undefined. show progress if job created
2020-06-24 14:36:37 -04:00
Joel Griffith
ba9aed4b4e
Don't set a min-length on encryption key for reportin (#69827) 2020-06-24 11:19:13 -07:00
Aaron Caldwell
a89fa3c1f8
[Maps] New mappings: maps-telemetry -> maps (#69816) 2020-06-24 12:14:55 -06:00
Alison Goryachev
34307c8d13
[IM] Move common step containers to shared (#69713) 2020-06-24 12:36:24 -04:00
Ryland Herrick
b614dbc720
[Security][Network] Exclude glob-only (*) Index Pattern from map layers (#69736)
* Exclude glob-only (*) index pattern from map layers

This pattern is a special case that our map should ignore, as including
it causes all indexes to be queried.

* Ignore CCS glob pattern in our embedded map

Users may have this pattern for cross-cluster search, and it should
similarly be excluded when matching Security indexes.
2020-06-24 11:16:09 -05:00
Ryland Herrick
1eede3f128
Add lists plugin to optimized security_solution TS config (#69705)
As security_solution continues to integrate with lists, the absents of
these types will lead to lots of implicit anys and false positives.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 11:13:50 -05:00
Joe Reuter
b708b2a953
[Lens] Stabilize filter popover (#69519)
* stabilize filter popovwer

* remove text exclusion
2020-06-24 18:08:27 +02:00
Clint Andrew Hall
9e00da35b8
[pre-req] Convert Palettes and Components (#69065)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 11:47:56 -04:00
John Schulz
5e3798ccd9
[Ingest Manager] Do not await in start. Return a Promise (#69505)
1. Do not `await` in the public `start` lifecycle method. Fixes https://github.com/elastic/kibana/issues/66125
PR based on https://github.com/elastic/kibana/issues/66125#issuecomment-640790837 & https://github.com/elastic/kibana/issues/66125#issuecomment-642218799
  2. Change `success` to be Promise
2020-06-24 09:54:44 -04:00
Cauê Marcondes
82df228c95
adding Stats interface with type (#69784) 2020-06-24 14:20:32 +02:00
Nathan L Smith
2e078dbab9
[APM] Storybook theme fixes (#69730)
* [APM] Storybook theme fixes

The changes adding theme support in #69362 broke some of the Storybook stories.

Add decorators to wrap some of the stories in the theme context.

This should be done in a global decorator, but our current storybook setup doesn't support this. It also would be nice to be able to switch between light/dark mode, but that's something we can add in the future.

* Remove unused import

* Adds missing decorator to cytoscape examples + adds a new real-world example

Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 06:54:01 -05:00
Mikhail Shustov
778136f3bf
expose DocLinks API from start only (#68745)
* exose DocLinks API from start only

* update docs

* fix type errors

* update docs

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-24 11:42:54 +02:00
Joe Reuter
d1a6fa26b8
Properly redirect legacy URLs (#68284) 2020-06-24 11:26:19 +02:00
Aleh Zasypkin
fc9df7244b
Redirect to Logged Out UI on SAML Logout Response. Prefer Login Selector UI to Logged Out UI whenever possible. (#69676) 2020-06-24 10:39:39 +02:00
Pete Harverson
b270321ff3
[ML] Fixes anomaly chart and validation for one week bucket span (#69671)
* [ML] Fixes anomaly chart and validation for one week bucket span

* [ML] Fix interval Jest tests
2020-06-24 09:20:38 +01:00
Aleh Zasypkin
33fb3e832c
Support deep links inside of RelayState for SAML IdP initiated login. (#69401) 2020-06-24 08:05:02 +02:00
Brandon Morelli
e2ab94060a
[Obs] Update Observability landing page text (#69727) 2020-06-23 17:22:32 -07:00
Zacqary Adam Xeper
6a016d0b57
[Metrics UI] Add inventory alert preview (#68909)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 18:34:17 -05:00
Xavier Mouligneau
e3d01bf450
remove scroll in drag & drop context (#69710) 2020-06-23 17:56:58 -04:00
Xavier Mouligneau
29fbdd56d9
[SECURITY] Add endpoint alerts url (#69707)
* Add back endpoint alerts url

* hack to move on

* fix type

* fix test
2020-06-23 17:47:59 -04:00
Jean-Louis Leysens
3e113151ad
[Index Management] Fix API Integration Test and use of timestamp_field (#69666)
* fix types and functional api integration test

* access timestamp field name in object

* temporarily skip the API integration test and fix ts issue
2020-06-23 14:42:09 -07:00
Aaron Caldwell
c87b00dc94
[Maps] Remove extra layer of telemetry nesting under "attributes" (#66137)
* Return attributes when telemetry created instead of whole saved object. Update integration test

* Change 'maps-telemetry' to 'maps'

* No need to create a saved object anymore. This is leftover from task manager telemetry mgmt

* Add test confirming attrs undefined. Change tests to check for 'maps' iso 'maps-telemetry'

* Add two more tests confirming expected telemetry shape

* Review feedback. Use TELEMETRY_TYPE constant and set to APP_ID
2020-06-23 15:33:43 -06:00
Josh Dover
200957bb63
Add plugin API for customizing the logging configuration (#68704) 2020-06-23 14:45:47 -06:00
MadameSheema
71d54c8cae
adds kibana navigation tests (#69733) 2020-06-23 22:30:02 +02:00
Melissa Alvarez
e87a4b2a31
fix link to analytics results from management (#69550) 2020-06-23 16:19:07 -04:00
Quynh Nguyen
22d09a3bbd
[ML] Transform: Enable force delete if one of the transforms failed (#69472)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 15:05:44 -05:00
Quynh Nguyen
1158be9264
[ML] Transform: Table enhancements (#69307)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 15:04:24 -05:00
Chris Roberson
b2d3833313
[Monitoring] Love for APM (#69052)
* Fix broken colors for APM

* Use default derivative

* Fix UI issues with APM

* Add new charts

* Fix tests

* Use EUI color palette

* Remove old translations

* PR feedback

* Fix tests

* Fix up overview page

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 15:14:40 -04:00
Clint Andrew Hall
f3fbf31f3a
[chore] TS 3.9: convert ts-ignore to ts-expect-error (#69541)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 15:13:21 -04:00
Yuliia Naumenko
29714aa614
Disabled multiple select for preconfigured connectors to avoid requesting bulk delete on them (#69459) 2020-06-23 12:12:39 -07:00
MadameSheema
1cdeec07b2
completes top-level navigation tests (#69694) 2020-06-23 18:51:20 +02:00
Jonathan Buttner
5fb206f67f
[Security_Solution] Split up indices (#69589)
* Fixing resolver alert generation

* Splitting indices up

* Removing tests that could randomly fail because of the generation code

* Adding support for multiple indices

* Updating archives with the new index names

* Removing alerts data stream

* Switching to process instead of fake

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 12:35:02 -04:00
Devon Thomson
98a897736b
Remove App communication from URL (#67064)
Removed all inter-app communication via url in favour of a new service in the embeddable start contract called the state transfer service.
2020-06-23 12:21:48 -04:00
Marco Liberati
65c3114abc
Fix Advanced Settings Panel number editing in Graph (#69672) 2020-06-23 18:09:07 +02:00
Lisa Cawley
0e2f9fc365
Updates swim lane UI text (#69454) 2020-06-23 08:59:32 -07:00
Dario Gieselaar
8956a33e4c
[APM] Use asPercent to format breakdown chart (#69384)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 16:34:50 +02:00
Dima Arnautov
43ed4e2043
[ML] fix ml api services (#69681) 2020-06-23 15:55:58 +02:00
Cauê Marcondes
572d006d9f
[Observability]Adding specific Return APIs for each plugin (#69257)
* Adding specific apis for each plugin

* adding metric hosts stat

* addressing PR comment

* addressing PR comments

* changing series to key/value

* exporting interfaces

* adding label to stat

* refactoring types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 15:08:17 +02:00
Alexey Antonov
6cc8ea1861
Migrate dashboard mode (#69305)
Closes: #67469

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 14:38:39 +03:00
Alison Goryachev
b00deeb754
[IM] Move template wizard steps to shared directory + update legacy details panel (#69559) 2020-06-23 06:55:03 -04:00
patrykkopycinski
cc4c1729d1
Bump jest related packages (#58095) 2020-06-20 21:05:09 +02:00
Xavier Mouligneau
73af8404e4
[SECURITY] Introduce kibana nav (#68862)
* Change the bootstrap of the app

* rename SiemPageName to SecurityPageName

* modify alerts routes

* modify cases routes

* modify hosts routes

* modify network routes

* modify overview routes

* modify timelines routes

* wip change management route

* change route for common

* some fixing from the first commit

* modify route for management

* update url format hook to use history

* bug when you click on external alerts from host or network

* improvement from josh feedback

* redirect siem to security solution

* a little clean up

* Fix types

* fix breadcrumbs

* fix unit test

* Update index.tsx

* Fix cypress

* bug remove timeline when you are in case configure

* Fix functionel test for management

* Fix redirect siem + ml

* fixes some cypress tests

* adds 'URL compatibility' test

* bring ml back to alerts

* review I

* Fix memory leak in timelines page

* fix storage bug for timeline search bar

* fix endpoint merge + functional test

* avoid timeline flyout toggle

* Fix link to ml score

* Fix breadcrumb

* Fix management url

* fix unit test

* fixes typecheck issue

* fixes remaining url cypress tests

* fixes timeline scenario

* fix link to details rule from timeline

* review remove absolute path for consistency

* Fixing resolver alert generation (#69587)

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

* [Security_Solution][Endpoint] Resolver leverage ancestry array for queries  (#69264)

* Adding alerts route

* Adding related alerts generator changes, tests, and script updates

* Fixing missed parameter

* Aligning the AlertEvent and ResolverEvent definition

* Fixing type errors

* Fixing import error

* Adding ancestry functionality in generator

* Creating some tests for ancestry field

* Making progress on the ancestry

* Fixing the ancestry verification

* Fixing existing tests

* Removing unused code and fixing test

* Adding more comments

* Fixing endgame queries

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

* fix cypress test

* skip failing suite (#69595)

* [Endpoint] Fix flaky endpoints list unit test (#69591)

* Fix flaky endpoints list unit test
* un-skip test

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

* remove flaky test

Co-authored-by: patrykkopycinski <contact@patrykkopycinski.com>
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2020-06-20 07:31:28 -04:00
Paul Tavares
9a41c1d0e7
[Endpoint] Fix flaky endpoints list unit test (#69591)
* Fix flaky endpoints list unit test
* un-skip test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-19 18:47:47 -04:00
spalger
6fe244ecba skip failing suite (#69595) 2020-06-19 14:47:57 -07:00
Jonathan Buttner
7c7191f794
[Security_Solution][Endpoint] Resolver leverage ancestry array for queries (#69264)
* Adding alerts route

* Adding related alerts generator changes, tests, and script updates

* Fixing missed parameter

* Aligning the AlertEvent and ResolverEvent definition

* Fixing type errors

* Fixing import error

* Adding ancestry functionality in generator

* Creating some tests for ancestry field

* Making progress on the ancestry

* Fixing the ancestry verification

* Fixing existing tests

* Removing unused code and fixing test

* Adding more comments

* Fixing endgame queries

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-19 10:00:08 -04:00
Jonathan Buttner
7ec8836eab
Fixing resolver alert generation (#69587)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-19 09:55:18 -04:00
Kevin Logan
af7e2d2400
[Endpoint] add policy empty state (#69449) 2020-06-19 09:23:49 -04:00
Søren Louv-Jansen
84f8b43c38
[APM] Add support for dark mode (#69362)
* Use theme colors for stacktrace

* [APM] Use theme for all components

* Switch HoC withTheme to useTheme and convert classes to hooks

* Change hardcoded white to euiColorEmptyShade for ServiceMap

* Snapshots and Legends fix

* Switch to context and add test helper

* Fix tests and update snaps

* New snaps + new anomaly detection

* Remove shallow from testHelpers

* Remove commented tests

* Fix prettier

* Pass correct theme to cytoscape

* Fix ServiceMap

* fixes some rendering issues in service maps

* removed the old anomaly detection logic from service map popover contents, since it's been moved to a new component.

* Fix eslint, tsc lint issues and unit tests

* Remove types for styled-components default theme

* Update x-pack/plugins/apm/public/components/shared/KueryBar/Typeahead/Suggestions.js

Co-authored-by: Casper Hübertz <casper@formgeist.com>

* fix OuterTheme

* Ise function declaration instead of expression

Co-authored-by: Balthazar Gronon <git@balthazar.dev>
Co-authored-by: Balthazar Gronon <bgronon@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2020-06-19 12:53:25 +02:00
Walter Rafelsberger
a489e5f0b1
[ML] Data Grid Histograms (#68359)
Adds support for histogram charts to data grid columns.
- Adds a toggle button to the data grid's header to enabled/disable column charts.
- When enabled, the charts get rendered as part of the data grid header.
- Histogram charts will get rendered for fields based on date, number, string and boolean.
2020-06-19 08:39:50 +02:00
Jonathan Buttner
639d1e0829
Resolving conflicts (#69597) 2020-06-18 21:06:10 -04:00
Marshall Main
25b4f34f7c
Remove endpoint alert fields from signal mapping (#68934)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 18:42:27 -04:00
Spencer
051c93a6be
[ftr] add support for docker servers (#68173)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-18 15:24:16 -07:00
Brent Kimmel
700f53d3a3
Merge/restyle nodes table (#69098)
Adds panel views and drilldowns to Resolver
2020-06-18 16:33:57 -04:00
Jonathan Budzenski
bdb65920f0 skip tests using hostDetailsPolicyResponseActionBadge 2020-06-18 15:22:12 -05:00
Lisa Cawley
d26cbef389
[DOCS] Adds kibana-pull attribute for release docs (#69554) 2020-06-18 13:19:10 -07:00
Frank Hassanabad
00a60d8cbd
[SIEM][Detection Engine] Fixes 7.8 and 7.9 upgrade issue within rules where you can get the error "params invalid: [lists]: definition for this key is missing"
## Summary
* https://github.com/elastic/kibana/issues/69463
* See here for manual backport to 7.8: https://github.com/elastic/kibana/pull/69434

This fixes a bug where if you import rules and set your overwrite to `true` multiple times in a row within 7.7 you can end up with a lists array. When upgrading to 7.8, we change the name of `lists` to `exceptions_lists` and suddenly when you enable/disable a rule you can get the following error below:

![image](https://user-images.githubusercontent.com/1151048/84945824-fa60e280-b0a4-11ea-8e05-bffdec2e4765.png)

The fix is to allow the lists array still if it is present within saved objects to avoid seeing this error screen and being tolerant. We also fix the area of code that is causing the data bug so it cannot happen again with `exceptions_list` which is what the name of lists was renamed to causing this problem.

Note that this has unit tests and I also manually tested this by intentionally injecting a `lists` and `exceptions_lists` and using the UI to verify there wasn't another validation spot that needed to be relaxed to allow for the data.

### Checklist

- [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
2020-06-18 13:52:38 -06:00
Alison Goryachev
82ce718b01
[CCR] Fix follower indices table not updating after pausing (#69228) 2020-06-18 15:15:15 -04:00
Aaron Caldwell
55a73616ab
[Maps] Migrate maps client router to react (#65079)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 12:56:51 -06:00
Nicolas Chaulet
0c477478a4
[Ingest Manager] Use long polling for agent checkin (#68922) 2020-06-18 14:42:27 -04:00
Shahzad
550b95f172
[RUM Dashboard] Initial version resubmit (#69531)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 20:32:10 +02:00
patrykkopycinski
72ec6eeea3
[Security Solution] Add cypress tests for global search bar (#68535) 2020-06-18 20:31:10 +02:00
Marshall Main
4a26f56f31
Update endpoint event and alert types (#69292)
* start redoing types

* finish redoing types

* fix bad test

* rework tests

* fix more types

* fix test

* Fix endpoints test and render error

* add deletePolicyStream to alerts api tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Paul Tavares <paul.tavares@elastic.co>
2020-06-18 13:50:53 -04:00
Sandra Gonzales
f4b0d5cbbc
don't include group fields with no child fields in index pattern (#69457) 2020-06-18 13:49:03 -04:00
Jean-Louis Leysens
38747670ca
[Ingest Pipelines] Encode URI component pipeline names (#69489)
* Properly encode URI component pipeline names

* safely URI decode to handle % case
2020-06-18 19:29:16 +02:00
Jean-Louis Leysens
e0460290b0
[Ingest Pipelines] Add test coverage for ingest pipelines editor component (#69283)
* first iteration of CIT tests

* address pr feedback

- use dot notation where we can
- use string literals instead of + concatentation
2020-06-18 19:24:41 +02:00
Yara Tercero
2544daf21b
[SIEM][Exceptions] - Updates exception structure and corresponding UI types (#69120)
### Summary

This PR is meant to update the `ExceptionListItemSchema.entries` structure to align with the most recent conversations regarding the need for a more explicit depiction of `nested` fields. To summarize:

- Adds schema validation for requests and responses within `lists/public/exceptions/api.ts`. It was super helpful in catching existing bugs. Anyone that uses the api will run through this validation. If the client tries to send up a malformed request, the request will not be made and an error returned. If the request is successful, but somehow the response is malformed, an error is returned. There may be some UX things to figure out about how to best communicate these errors to the user, or if surfacing the raw error is fine.
- Updates `entries` structure in lists plugin api
- Updates hooks and tests within `lists/public` that make reference to new structure
- Updates and adds unit tests for updated schemas
- Removes unused temporary types in `security_solution/public/common/components/exceptions/` to now reference updated schema
- Updates UI tests
- Updates `lists/server/scripts`
2020-06-18 12:47:24 -04:00
Kerry Gallagher
38a88e1019
Amend export used for default (#69158)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 17:32:30 +01:00
Sébastien Loix
5e8d824a64
[Index template] Refactor index template wizard (#69037)
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
2020-06-18 18:28:12 +02:00
Nicolas Chaulet
acdae1595d
[Ingest Manager] Fleet require encrypted saved object encryption key … (#69408) 2020-06-18 12:15:13 -04:00
spalger
03a24fbb67 Revert "[RUM Dashboard] Initial Version (#68778)"
This reverts commit 72111702e9.
2020-06-18 09:13:26 -07:00
Nathan L Smith
af5874d9d7
[APM] Service map download in debug mode (#69350)
* [APM] Service map download in debug mode

Add a download button when debug mode is enabled that downloads JSON of
the map.

Add an upload button to the Storybook.
2020-06-18 10:53:27 -05:00
Nicolas Chaulet
338ae00384
[IngestManager] fix endpoint setup in api integration tests (#69503) 2020-06-18 11:37:14 -04:00
Thomas Neirynck
a383468163
[Maps] Remove bounds param (#69396) 2020-06-18 11:28:49 -04:00
Shahzad
72111702e9
[RUM Dashboard] Initial Version (#68778)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2020-06-18 17:13:28 +02:00
Frank Hassanabad
e552a96121
[SIEM] Fixes REST formatter bugs from io-ts migration
## Summary

Fixes io-ts formatter bugs for REST and validation by:

* First trying to get the correct key from the io-ts context. If no keys are found, then it will fall back on trying to get the first name from the context.
* If the key is a value and an object then this will do a `JSON.stringify()` on the value object
* This fixes a few places where `formatError` was not being used within the code base resulting in `[object Object]` within the validations to show up.

### Checklist

- [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
2020-06-18 08:16:39 -06:00
Pierre Gayvallet
9e8448fc06
HttpService: duplicate some APIs from setup to start and clean mocks. (#69021)
* add apis to http start contract and clean mocks

* add apis to http start contract and clean mocks

* add `getStartContract` method

* fix new calls

* remove isTlsEnabled

* deprecates HttpServiceSetup.auth
2020-06-18 15:55:47 +02:00
Anton Dosov
f33192d35f
[refactor] remove drilldown plugin, move components to uiActionsEnhanced (#69403)
* refactor: remove drilldown plugin by moving components to uiActionsEnhanced

* fix

* fix mistake in test

* fix i18n
2020-06-18 15:35:22 +02:00
Casper Hübertz
4f271c0cbb
[APM] Change the unsaved changes text color (#69493)
Fixes dark mode issue where the text would render dark on a dark background.
2020-06-18 15:32:26 +02:00
Cauê Marcondes
4ce91b342c
[APM] Add error rate chart to Errors overview and detail views (#67327)
* creating error rate chart

* adding error line chart

* creating error rate chart

* using date_histogram

* reapplying prettier style

* changing to theme color

* dont sync tooltips

* adding avg on error charts

* addressing pr comments

* adding possibility to disable legend toggle

* removing x-axis ticks from histogram

* return no percent when transaction count doesn return hits

* addressing PR comments

* addressing PR comments

* returning null when there is no transaction count

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 12:31:22 +02:00
Mikhail Shustov
c8c20e4ca8
Add functional test for Kibana embedded in iframe (#68544)
* convert kbn test config into TS

* add test  for Kibana embedded in iframe

* run embedded tests in functional suite

* ignore tls errors in functional tests by default

* switch test to https

* remove env vars mutation

* allow to pass ssl config to Kibana

* pass ssl config to axios

* adopt KbnClient interfaces

* adopt KibanaServer

* use KbnRequester in security service

* set sameSiteCookies:None in test

* acceptInsecureCerts in chrome

* remove leftovers

* fix type error

* remove unnecessary field

* address comments

* refactor plugin

* refactor test

* make acceptInsecureCerts configurable

* run firefox tests on ci

* up TS version

* fix firefox.sh script

* fix path

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 12:02:56 +02:00
Pierre Gayvallet
d2006ea8a0
savedObjects: add score to repository.find results (#68894)
* add `score` to repository.find results

* update generated doc

* fix FTR result set

* remove score from exports

* fix FTR for find API

* fix label

* fix tsdoc
2020-06-18 11:39:25 +02:00
Pierre Gayvallet
daf20daf2d
Beats Management: Pre-migration cleanup (#69155)
* adapt KibanaDatabaseAdapter to use core ES service

* remove unused `exposeStaticDir` method

* create empty KP plugin

* remove unused and broken tests

* delete unused wallaby config file

* delete unused utils

* delete unused d.ts and move formsy definition to new plugin

* fix findNonExistentItems

* remove dead code and useless exports from common package

* delete non migratable test suite + remove unused test adapter

* remove yet another unused adapter

* restore awaits in KibanaDatabaseAdapter
2020-06-18 11:32:13 +02:00
Casper Hübertz
f27162a213
[Observability] Creates "Add data" links in all Observability app headers (#69016)
* Add data options to all Observability app headers

* Updated failing snapshot

* [Uptime] Update snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 09:35:48 +02:00
Nathan L Smith
2642d658c4
[APM] License feature tracking for service maps (#69455)
Use the license feature API to register the service maps feature and track its usage when the API endpoint is accessed.

Fixes #64850.
2020-06-17 19:18:15 -05:00
Nathan Reese
f7266d3b7b
[Maps] layer wizard select re-design (#69313)
* [Maps] layer wizard select re-design

* review feedback

* tslint

* add unit test

* use smaller gutters

* review feedback
2020-06-17 16:17:30 -06:00
Dima Arnautov
1dd5db2cf0
[ML] Add Anomaly Swimlane Embeddable to the dashboard from the Anomaly Explorer page (#68784)
* [ML] WIP attach swimlane embeddable to dashboard from the explorer page

* [ML] fix deps

* [ML] getDefaultPanelTitle

* [ML] fix TS issue

* [ML] DashboardService

* [ML] unit tests

* [ML] redirect to the dashboard

* [ML] swimlane_panel

* [ML] Anomaly Timeline panel

* [ML] swimlane container

* [ML] fix ts

* [ML] Add multiple swimlanes

* [ML] fix SwimlaneType usage

* [ML] disable edit button on update

* [ML] fix i18n translation key

* [ML] use ViewMode enum

* [ML] use navigateToUrl

* [ML] TODO for edit dashboard

* [ML] check kibana dashboard capabilities

* [ML] mlApiServicesProvider

* [ML] mlResultsServiceProvider

* [ML] fix alignment

* [ML] labels and tooltips

* [ML] fix ts issue for proxyHttpStart

* [ML] canEditDashboards check

* [ML] fix TS

* [ML] update add_to_dashboard_control.tsx

* [ML] add form label, disable control on empty swimlanes selection

* [ML] resolve PR review comments

* [ML] e2e test

* [ML] increase panel padding

* [ML] position in row

* [ML] update e2e

* [ML] add data-test-subj for search box

* [ML] PR remarks
2020-06-17 21:25:37 +02:00
Jen Huang
052dfe9f9a
[Ingest Manager] Replace datasources with inputs when generating agent config (#69226)
* Adjust agent config generation, change `datasources` to `inputs`

* Add dataset.type

* Remove dead code

* Revert "Add dataset.type"

This reverts commit fbcf50cbe2.

* Update endpoint policy test assertion
2020-06-17 12:23:31 -07:00
Michail Yasonik
bb03b75416
Removing flaky axe rule (#69418) 2020-06-17 13:00:52 -05:00
Jean-Louis Leysens
a077fdea32
[Ingest Pipelines] Add doc links to processor types (#69279)
* added doc links to processor types

* Bring doc links in line with mappings editor

Also refactor the processors type map

* remove helpText prop from Custom field

* fix i18n

* rename doc button and refactor type map const name

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-17 18:47:20 +02:00
Kevin Logan
1cef65e56f
[Endpoint] add policy data to Host list UI (#69202) 2020-06-17 11:27:00 -04:00
Vadim Dalecky
b8e6b54428
Drilldown docs 2 (#69375)
* docs: ✏️ add drilldown user docs link to REAMDE

* feat: 🎸 wire drilldown docs link into <HelloBar> component

* feat: 🎸 set new page attributes on drilldown docs link

* feat: 🎸 add external prop to link to show icon

* fix: 🐛 remove rel= attribute

* fix: 🐛 add TypeScript type for drilldown docLink
2020-06-17 17:00:22 +02:00
Oliver Gupte
0ed7597822
[APM] Replace ML index queries with searching via mlAnomalySearch API (#69099)
* Closes #69092 by replacing direct queries on ml indices with seaching
via the `mlAnomalySearch` client API + job_id filters. Also removes
`getMlIndex` since it is no longer relevant.

* Use the mlCapabilities API to ensure the required license is active for ml queries

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-17 07:45:04 -07:00
Paul Tavares
abdc0f17a9
[Ingest Manager][Endpoint] Add Endpoint Create Policy flow with Ingest (#68955)
* Ingest: add data-test-subj prop support to Ingest components
* Ingest: Add Context Provider to bridge History from Kibana to Hash router
* Ingest: Added support for route state in Create Datasource page
* Endpoint: Add Create button to Polices List header
* Endpoint: Added support for passing of state from endpoint to ingest on policy
* Endpoint: additional functional test cases
2020-06-17 10:39:22 -04:00
Christos Nasikas
208b580061
[SIEM][Timeline] Minor timeline improvement (#69386) 2020-06-17 17:21:49 +03:00
Marco Vettorello
f9f1158e1f
Update dependency @elastic/charts to v19.5.2 (#69126)
Update @elastic/charts to 19.5.2

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
2020-06-17 16:02:34 +02:00
Robert Oskamp
f8ba9290dd
[ML] Functional tests - Reduce DFA job model memory (#69295)
With the improvements in the model memory estimation for DFA jobs, the required memory limit could be reduced, which allows execution in a low-memory environment (like the 1GB ML node in a cloud trial).
2020-06-17 15:23:23 +02:00
Robert Oskamp
55260dde18
[ML] Functional tests - add more recognize and setup module API tests (#69251)
This PR adds a couple recognize module and setup module API integration tests.
2020-06-17 15:19:55 +02:00
Vadim Dalecky
3ea717a7b3
feat: 🎸 don't show drilldown action in "edit" mode (#69371) 2020-06-17 14:44:46 +02:00
Christos Nasikas
47e50f8102
[SIEM][Timeline] Persist timeline to localStorage (#67156)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2020-06-17 14:55:46 +03:00
Søren Louv-Jansen
8a6aab33bd
[APM] Only add decimals for numbers below 10 (#69334) 2020-06-17 12:10:28 +02:00
Vadim Dalecky
3ee0bf2132
Explore underlying data (#68496)
* feat: 🎸 stub discover_enhanced plugin

* feat: 🎸 improve view in discover action

* feat: 🎸 add URL generator to "View in Discover" action

* feat: 🎸 implement navigation and getHref in view raw logs actio

* fix: 🐛 disable action in "edit" mode

* refactor: 💡 renamce context menu view in discover action

* feat: 🎸 rename action to "explore data"

* fix: 🐛 correctly generate action path

* feat: 🎸 add internationalization to "explore action"

* fix: 🐛 correctly parse generated Discover URL path

* test: 💍 setup basic functional tests

* refactor: 💡 modularize url generation logic

* feat: 🎸 export CommonlyUsed type

* test: 💍 add test subjects to panel custom time range modal

* test: 💍 add index patterna and time range functional tests

* refactor: 💡 rename action file

* refactor: 💡 use URL generator from Discover plugin's contract

* test: 💍 add "Explore raw data" action unit tests

* fix: 🐛 import share plugin to check if it is enabled

* Update x-pack/plugins/discover_enhanced/public/actions/view_in_discover/explore_data_context_menu_action.ts

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>

* chore: 🤖 add discover_enhanced to KibanaApp codeowners

* test: 💍 improve "Explore underlying data" functional tests

* test: 💍 improve <a> link assertion

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>
2020-06-17 10:31:16 +02:00
Frank Hassanabad
effd504d0b
[SIEM] Adds example unit test to convert KQL using a nested query
## Summary

Adds example unit test to convert KQL using a nested query

### Checklist

- [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
2020-06-16 23:12:13 -06:00
Alison Goryachev
a34a3a7e09
[Component template] Details flyout (#68732) 2020-06-16 21:48:28 -04:00
Oliver Gupte
5c87a27c4d
[APM] Fix service maps not loading when there are no APM ML jobs (#69240)
* Closes #69238 by handling 404 thrown error from the query for APM ML jobs.

* Improved coded readability

* moved anomaly job fetch to new function getApmAnomalyDetectionJobs for
improved readability and only handle a 404 status code response else throw
2020-06-16 14:31:09 -07:00
Tim Sullivan
8bc8837e34
[Reporting] Prepare export type definitions for Task Manager (#65213) 2020-06-16 14:24:35 -07:00
Lukas Olson
ade4c8dded
[Search service] Refactor the way server-side search strategies are registered (#68452)
* [search] Refactor the way search strategies are registered/retrieved on the server

* Fix types and tests and update docs

* Fix failing test

* Fix build of example plugin

* Fix functional test

* Make server strategies sync

Co-authored-by: Liza K <liza.katz@elastic.co>
2020-06-16 23:20:52 +03:00
Melissa Alvarez
efbb4ccc31
use navigateToUrl instead of window location (#69167) 2020-06-16 14:29:11 -04:00
Frank Hassanabad
d5785a0d6d
SIEM] Moves validation up to the common section
## Summary

Moves validation up to the common section so it can be used by others in common for API boundary validation.
2020-06-16 12:02:40 -06:00
Larry Gregory
3de93501c6
Resolve security cloud test failures (#68935)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 12:55:18 -04:00
patrykkopycinski
fb97d91789
Bump react-redux (#69182) 2020-06-16 18:44:34 +02:00
Shahzad
a9d73e8683
[Uptime] Monitor availability reporting (#67790)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 18:04:52 +02:00
Vignesh Shanmugam
f43d51d41b
feat: instrument navigation changes using RUM agent (#67633)
* feat: instrument navigation changes using RUM agent

* chore: rebase and change application contract

* chore: fix type tests

* docs: update public.md doc

* chore: remove internal application export
2020-06-16 17:24:40 +02:00
Cauê Marcondes
b42defa37e
[Observability] Update landing page copy and content (#69247)
* removing try it section

* removing try it section
2020-06-16 17:17:17 +02:00
Frank Hassanabad
461d44d8a4
[SIEM][Detection Engine] Fixes a stale view/query within the signals table when re-opening/closing signals
## Summary

Fixes a one liner bug where we were not using waitFor and could have stale views of data from the timeline. This removes that by adding a `waitFor` when setting the signals to be closed, open, in-progress, etc...

This also adds a new `waitFor` for the end to end tests and fixes other tests to use that rather than doing a wait for 5 seconds. This should keep the end to end backend tests fast. 

Before this you could sometimes try to re-open 3 signals like below and it would not change the signals to being open but rather re-query the stale view and show the same signals as being closed when they are not closed:
![crop_bug](https://user-images.githubusercontent.com/1151048/84713572-8b5e7f00-af28-11ea-80b6-2ad67f16b7df.gif)

Now with this PR, those signals will show as being re-opened and the closed signals will update correctly within the same UI on the same tab.

### Checklist

- [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
2020-06-16 08:41:59 -06:00
John Schulz
7beabd2bef
[Ingest Manager] Use search param vs KQL to find default agent (#69211)
* Remove another instance of filter for is_default

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 10:33:26 -04:00
John Schulz
798c520985
[Ingest Manager] Use search param vs KQL for events count (#69209)
* Replace filter with search in events count

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 10:32:41 -04:00
Melissa Alvarez
2ebe35ff15
[ML] DF Analytics Results: do not hide query bar and table on query syntax error (#69196)
* do not hide query bar and table if query syntax error

* check for query error in analytics exploration
2020-06-16 10:21:19 -04:00
Jean-Louis Leysens
7511a6eeb6
[Ingest Node Pipelines] Pipeline Processors Editor (#66021)
* initial plugin setup

* add smoke test

* fix license check

* refactor plugin setup

* Server-side create/update ingest pipelines (#62744)

* List pipelines (#62785)

* First iteration of ingest table

* Add action placeholders

* Refactor list and address PR feedback

Refactored the list into smaller pieces and assemble in main.tsx

Also addressed feedback on copy, removed unused notifications dep

* WiP on flyout

Showing name in title

* Add reload button

* Finish first version of flyout

* Slight update to copy

* `delete` -> `edit`

* Address PR feedback

Copy and a11y updates

* Add on failure JSON to flyout if it is available

* Add details json block file and remove ununsed import

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

* [Ingest pipelines] Create pipeline UI (#63017)

* First vertical slice of pipeline editor component

* Made a space for common parameters

* [Ingest pipelines] Edit pipeline page (#63522)

* First iteration of CRUD functionality working

* WiP on moving the pipeline editor to pipeline processor editor

* Finish refactor to work with passing state out

* Refactor and fix tests

* [Ingest pipelines] Polish details panel and empty list (#63926)

* Address some early feedback and use FormDataProvider

FormDataProvider gives a more declarative way to listen to form
state updates.

Also refactored the state reader mechanism.

* [Ingest pipelines] Delete pipeline (#63635)

* [Ingest Node Pipelines] Clone Pipeline (#64049)

* First iteration of clone functionality

Wired up for both the list table and the details flyout in the
list section.

* satisfy eslint

* Turn on sorting for the list table

* Clean up const declarations

* Address PR feedback

Sentence-casify and update some other copy.

* Mark edit and delete as primary actions in list table

* Handle URI encoded chars in pipeline name when cloning

* Update to using the more flexible controlled component pattern

To make this component and mappings editor more consistent, both
will expose a more traditional controlled component interface to
consumers.

In the current implementation this requires that consumers use
`useCallback` for `onUpdate` handlers to avoid an infinite
rendering cycle and to avoid staleness bugs in their `onUpdate`
handlers they need to think about what might make the handler
stale.

This approach comes with the benefits and flexibility of
controlled components at the cost of slightly more complex
consumption of the components.

In future, we can explore adding the uncontrolled component
interface too so that consumers have the option to more simply
render and pull data out only when needed

* Handle sub-form validity

The pipelines processor editor not emits overall validity to
consumers

* Fix Jest test

* Refactor some names

prepareDataOut -> serialize
prepareDataIn -> deserialize
EditorProcessor -> ProcessorInternal

* Mark as private

* Major WiP

Started working on the drag-and-drop-tree and updated some
typings stuff

* [Ingest node pipelines] Privileges (#63850)

* Create privileges check for ingest pipelines app

Also moved the public side logic for checking and rendering
privilege related messages to es_ui_shared/public following the
new __packages_do_not_import__ convention.

* Add ,

* Fix import paths

* Address PR feedback

Fix i18n strings (remove reference to snapshot and restore) and
fix copy referencing snapshot and restore - all copy-pasta errors.

Also remove unused field from missing privileges object.

* Fix issue from resolving merge conflicts

* Add missing app privilege

* Use non-deprecated privilige name

* First iteration of drag and drop tree on feature parity

* First steps toward add on failure handler

Updated reducer logic to create the next copy value using immer.

* First iteration of nested tree with add on failure working

* Refactor and some UI layout updates

- Remove the "id" field on processors for now
- Implement the nested remove and update functionality again

* Remove immer (not call stack safe)

Refac to remove immer and reimplemented the immutable set and
get functions.

* [Ingest Node Pipelines] More lenient treatment of on-failure value (#64411)

* Move file to components folder

* [Ingest pipelines] Simulate pipeline (#64223)

* Updated tree rendering

- turn off dropzones for children
- fixed up some padding and margins
- fixed integration with pipeline_form.tsx

The current implementation still has a lot of jank stemming from
the UX with DnD. Unfortunately the nesting has opened a number
of issues here.

* [Ingest Node Pipelines] Show flyout after editing or creating a pipeline (#64409)

* Show flyout after editing or creating a pipeline

* JSX comment

* Show not found flyout

Copied from CCR

* update not found flyout and fix behavior when viewing details from table

* Reset pipeline name in URI when closing flyout

* Remove encodeURI

Already using encodingURIComponent for unsafe string.

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

* Clarification of terms

- addProcessor -> addTopLevelProcessor (same in editor modes)
- Expanded comment on ProcessorSelector

* Implement move between lists functionality

Added tests to the reducer for moving in and out of a recusrsive
structure.

* fix TS

* Prevent nesting a parent inside of its own child

* Add comment

* [Ingest pipelines] Cleanup (#64794)

* address review feedback

* remove unused import

* Big refactor to tree rendering structure

DnD tree now converts the nested tree to a flat one and only
consists of _1_ droppable area with a flat array of draggables
that can be combined.

Using the existing logic in the reducer combined with translating
the flat structure changes to a format the nested reducer can
understand looks like a really promising avenue.

There still seems to be a bug with a longer list where items do
not interact properly.

* Remove unused component

* A number of NB changes

- Fixed a subtle serialisation bug with on_failure in options
- Fixed a performance bug by using useRef in pipeline form
- Memoized the drag and drop tree
- Removed use of "isValid" from form lib... I think this should
be removed entirely.

* fix bad conflict resolution

* Implemented a slightly better destination resolution algo.

Also added tests.

* Fix subtle staleness bug, whitelist keys for setValue

* NB styling fix!!

Due to a parent's setting of overflow: hidden the drag and drop
tree had a dead zone that would equal the page overflow limit,
unsetting on the component itself (overflow: auto) relaxes this
limitation.

* Fix stale delete bug too

* Update naming of editor modes and update comments

* Use field types combo box

* Add delete confirmation modal

* Refactor delete modal component file name

* Better visual integration with existing form

* Update layout and styling of form

- added some padding around the new processors editor field
- Updated use of flex box in the pipeline form fields

* Move pipeline processor copy into pipeline processor component

The test button is also now inside of the pipeline processor
editor. Eventually all of this functionality should be moved
into the pipeline processor editor.

* First step of refactor to moving between trees

* First iteration of x-tree drag and drop

* Remove unused import

* Fix jest test types

* Fix up minor i18n issues and fix up layout of on failure

* Remove unnecessary prop

* Update spacing above add processor button to make it more center

* Fix destination resolution algo

* Update dragging resolver unit tests and add a lot more comments

* Use one sorting algo (removed use of euiReorder for now)

* Add placeholder tests and update comments

* Quite a big refactor

- Remove DraggableLocation entirely, only use ProcessorSelector
this simplifies mapping back to reducer instructions quite a lot
- Add tests for special case dragging behaviour

* Fix off by one bug in tests and implementation 🤦🏼‍♂

- Also move processor reducer to it's own folder

* Update behaviour for dragging up across trees and add tests

* Fix combine instruction

* Fix test and i18n issues

* Remove background color

* Fix selector after selector refactor

* A major performance

- Do not re-render the entire tree when editing settings

* Fix component smoke test

* Fix reading value from processor state using processor selector

* [Ingest pipelines] Custom processor form (#66022)

* Re add background color and refactor name of processor item

* Fix file naming and refactor 🚜 dnd tree rendering

- deserialze and serialize were backwards, fixed
- the dnd tree was rendering a flat tree which needed to be
mapped back to the nested tree for updates. This is still the
case but we do use recursive rendering. This enables tree nodes
to better hold local state like whether they are collapsed or not.

* Fix getting of initial on failure processors value

* Update padding styles for containers

* A lot of styling updates to get closer to look of mockup

* A WiP version of th click-tree an alternative to dnd

As a response to really long pipelines we may pivot away from
dnd.

* Remove dnd tree

* clean up reamining dnd tree references

* Clean up and refactor of tree component

To simplify the logic of the tree component processor id's
were added. Also had to update the jest spec to support this

* Added the ability to duplicate a processor

* Fix types in test

* Added duplicate functionality to ui

* Memoize tree components

* address es lint issues

* remove unused import

* Fix editing of custom json

* Address form performance issues

* Add all known missing processors

* Add ability to cancel move

* Fix staleness in test and view request flyouts

* fix type issue

* Remove unused translations and skip funcitonal test for now

* add todo comment

* Fix type issues

* remove poc styles

* disable other move buttons if we have a selected processor

* Refactor drop zone pin to button and add some styling

* Refactor processor editor item

* Update styling and use icon for cancel move action too

* fix nasty integration bug

* some minor optimizations

* prevent parent from being placed in own on failure handler

* Re-add cancel button

* Re-introduce failure processors toggle

* Fix typo

* Add Handler types for processor editor item

* Fix staleness bug for type, refactor classname and fix duplicate
bug not immutably copying values

* Experimenting with padels (revert this to undo if no further
changes have been made)

* Add description and unique ids

* Share links via component-wide context rather than props

* Virtualized list and back to outline dropzones

* Refactor id getter to a service and make it an incrementing number

* Temporary fix for double rendering issue.

This means the pipeline processors component is not controllable
but fixes the double rendering even when processors have not
changed. This is a problem coming from the ingest pipelines
plugin form system outside of this component

* add todo comment

* remove euicode element

* properly handle duplicate flow

* attempt to fix i18n

* split private_tree into it's own component and add comments

* refactor 🚜. rename Tree to ProcessorsTree and move things around

* do not delete the top level arrays for processors and onfailures

* fix typescript error

* Move duplicate, addOnFailure and delete actions into ctx menu

* remove unused import

* add support for pressing esc key to cancel move

* Add outside click listener

* always prompt before deleting a processor

* refactor remove distinction between adding top level and on fail

* add processor button to tree

* Hide the add on failure context menu item for processors with
failure handlers

* Reinstated x-tree moving and highlight and disable for buttons
on move and on edit

* removing ids step 1: remove idGenerator

* remove ids step 2: added inline text input

Also refactored a lot of the tree actions away. Now using
context and the processors editor tree item component for
dispatching actions. The tree item has access to the dispatch
and to the selector which makes it a well positioned component.

Also saves on some props drilling.

* Slight improvement to styling of text input (border)

* Re-implement missing failure toggle test

* address type todo

* Address many type issues and fix yarn.lock

* re-enable create pipeline functional test

* prevent multiple flyouts from opening

* change flyout title when editing an on-failure processor

* absolutely position the failure handlers label

when we render a dropzone on the label, then we move the label
up without affecting overall component height

* fix description behaviour not removing tag if empty

* some minor clean up

* add onflyoutopen cb to tests

* refactor processors editor item to multiple files

also refactored i18n into it's own file. would be good to come
up with a pttaern for doing this more broadly.

* fix add on-failure handler in context menu after refactor

* tag -> new description field

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
2020-06-16 16:17:30 +02:00
Nathan Reese
dd1f64df55
[Maps] Security layer wizards (#68290)
* [Maps] security layer wizard

* index pattern select

* use IndexPattern

* destination layer

* source layer

* cache security index patterns

* line layer

* use top hits

* tslint

* unit test

* fix loading speed and i18n

* handle case where ui setting siem:defaultIndex does not exist

* tslint

* review feedback

* extract lazy load bundle from map embeddables

* expose createSecurityLayers via plugin start

* tslint

* export MapsPluginStart

* fix path move

* review feedback

* fix import

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 08:10:54 -06:00
James Gowdy
7a60f18ef9
[ML] Model snapshot management (#68182)
* [ML] Model snapshot management

* more updates

* adding calendar range

* updating layout

* multiple calendars

* moving calendar creator

* fixing chart issues

* fixing chart issues

* improving calendar rendering

* adding capabilities checks

* code clean up

* fixing end time argument type

* fix translations

* code clean up

* comments based on review

* changes based on review

* fixing include

* adding useMemo to theme function
2020-06-16 14:03:17 +01:00
Alison Goryachev
63506834f2
[ILM] Update doc link (#68923) 2020-06-16 08:25:53 -04:00
Alison Goryachev
83370a17b9
[Ingest pipelines] Fix create pipeline button copy (#69118) 2020-06-16 08:22:21 -04:00
Søren Louv-Jansen
d12208c7ea
[APM] Fix confusing request/minute viz (#69143) 2020-06-16 12:13:18 +02:00
Alexey Antonov
c98845c7c7
Update vega version (#68639)
* update vega version

* a11y skip test

* a11y skip test attempt 2

* adding back all a11y tests

* fix failed karma test

* remove extra  0BSD license

* coalesce yarn.lock versions a little

* update kbn/pm dist

* fix CI

* fix Vega View for ML

Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 12:35:34 +03:00
Gidi Meir Morris
833ce08259
[Alerting] Adds API for executing actions immediately (#68897)
This PR adds an API to the AlertsClient which allows users to execute actions immediately, rather than via TaskManager.

This also moves the TaskManager based execution to a new api on ActionsClient along side the immediate execution.
2020-06-16 09:33:10 +01:00
Victor Martinez
88eed9819c
[CI] GitHub check details link to test reports and errorlevel (#69157) 2020-06-16 07:23:10 +01:00
Spencer
7e328417ab
[kbn/optimizer] share all plugin bundles (#68986)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 22:15:31 -07:00
Tim Sullivan
7e2ab7fb82
[Reporting/Server] register plugin routes synchronously (#68976)
* register routes synchronously

* back out some refactoring

* comment fix

* fix tests

* register route handler context provider

* Add function level comments in core methods

* fix tests

* revert editor help

* route context is the ReportingStart contract

* Fix reporting job route tests

* Fix generation tests

Co-authored-by: Joel Griffith <joel.griffith@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 16:19:25 -07:00
Jonathan Buttner
4f5e279d75
Using correct index patterns (#69208) 2020-06-15 14:42:18 -07:00
Justin Kambic
ecd3c9b517
Remove obsolete custom types from super date picker handlers. (#69038)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 17:03:43 -04:00
James Gowdy
b540ada036
[ML] Allow editing of model_snapshot_retention_days (#69003)
* [ML] Allow editing of model_snapshot_retention_days

* removing commented code

* flooring number input

* adding daily_model_snapshot_retention_after_days

* updating default values

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 21:45:51 +01:00
Jen Huang
07241d1af8
[Ingest Manager] Add ability to copy an agent config (#68737)
* Add copy agent config endpoint, schema types, and request hook

* Add copy config to context menu and modal

* Change data sources to be copied via bulk instead of singles in parallel

* Add copy endpoint to openapi spec file

* Add api integration tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 13:40:08 -07:00
Jonathan Buttner
dc5f448076
[Endpoint] Remove dependency on ingest for the index patterns (#69058)
* Remove dependency on ingest for the index patterns

* Fixing the tests

* Fixing test

* Use variable instead of class
2020-06-15 15:22:24 -04:00
Davis Plumlee
e3ba5e5e1f
[SIEM][Detections] In progress alert state (#68569) 2020-06-15 13:06:39 -06:00
John Schulz
0ce29706b2
Don't use filter to get default config & output (#69088)
* Don't use filter to get default config & output

the KQL parsing takes up a lot of CPU time. Avoid it with a search string

Also add a `refresh: false` as suggested by @bkobel

* Does restoring await fix CI?

* Remove 'refresh: false' from agent enroll

Does this this fix the failing test? It does keep the PR more focused

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 15:03:10 -04:00
Jen Huang
9ddaebc371
Add enroll agent action to config action menu (#68840)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 11:45:15 -07:00
Andrea Del Rio
b57149ccb2
[Alerting] Update Index Threshold to use columns in EuiExpression (#69051) 2020-06-15 11:43:19 -07:00
Jean-Louis Leysens
169cc248e8
try to fix integration test by making template more specific (#69138)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 20:40:20 +02:00
Zacqary Adam Xeper
1b9ba5d0b0
[Metrics UI] Add preview feature for metric threshold alerts (#67684)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 13:17:04 -05:00
Brittany Joiner
570be32b14
Set wrap to the errorLink so it doesn't go outside of box (#67797)
* set wrap to the errorLink so it doesnt go outside of box

* updating

* set wrap to the errorLink so it doesnt go outside of box

* updating

* Show full message on hover

Co-authored-by: Nathan L Smith <smith@nlsmith.com>
2020-06-15 12:51:42 -05:00
Candace Park
52c8e96280
[SECURITY SOLUTION] Task/endpoint details to fleet (#68710)
[SECURITYSOLUTION][INGEST] Fixes endpoint link, adds link from endpoint details to fleet

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 13:14:51 -04:00
Nathan L Smith
eef8dc7653
[APM] Changes to duration formatting (#69039)
* [APM] Changes to duration formatting

* Change the threshold for showing microseconds to 1 millisecond instead of 10. This means you now get "900 µs/1.3 ms/20.0 ms" instead of "900 µs/1300 µs/20 ms."
* Change milliseconds formatted with `asDuration` to be `asDecimal` instead of `asInteger`. That means you get "0.0 ms/2.5 ms/3.0 ms" instead of "0 ms/2 ms/3 ms."
* Tables were all using their own module-scoped functions that called `asDuration` to format things as decimal milliseconds. Extract this to an `asMillisecondDuration` function exported from the duration helpers and use it in all the tables.
* Change `getResponseTimeseries` in chart selectors to use `asDuration` to make all chart timeseries units consistent.
* Don't export `convertTo` from the duration helpers as it's now not used anywhere. Always use a more specific exported function for more consistency.
* Change ">=" to "≥" in the ML flyout text.

* Update e2e snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 11:56:45 -05:00
Chris Roberson
e6cf4b36d3
[Monitoring] Ensure we use existing Elasticsearch config (#68389)
* Ensure we use existing Elasticsearch config

* Use separate type for this to ensure custom properties work

* PR suggestions

* PR feedback

* PR feedback

* Fix type issues

* PR feedback
2020-06-15 12:43:37 -04:00