Commit graph

33780 commits

Author SHA1 Message Date
Lisa Cawley 6cc714c715
[DOCS] Removes redundant release highlights (#68954) 2020-06-11 14:48:32 -07:00
Nathan Reese e09c0c52a3
[Maps] Extract lazy load bundle from map embeddable factory (#68928)
* extract lazy load bundle from map embeddables

* tslint

* update imports, path changed

* use correct import paths
2020-06-11 15:20:15 -06:00
Andrea Del Rio 2d1312f6d1
[Monitoring] SASS modularization (#68726) 2020-06-11 13:36:47 -07:00
patrykkopycinski 398def27a1
[Security Solution] Fix Timeline search field is not wiped out when creating a new timeline (#68499)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 16:22:53 -04:00
Kaarina Tungseth ec62f74cb3
[DOCS] Adds environment variable warning (#67623)
* [DOCS] Adds wenvironment variable warning

* Updated note
2020-06-11 14:35:13 -05:00
Lisa Cawley 5690243149
[DOCS] Adds What's New (#68918) 2020-06-11 12:06:29 -07:00
Quynh Nguyen fec000e8cd
[ML] Transform: Adds ability to create index pattern time field when creating transform (#68842) 2020-06-11 12:54:00 -05:00
Tim Sullivan ebff4208e3
[Reporting] Convert plugin setup and start to synchronous (#68326)
* [Reporting] Convert plugin setup and start to synchronous

* revert class conversion

* diff prettify

* Fix test mocks + add some plugin async helpers where needed

* no setupReady startReady needed

* Add plugin test for sync/error cases

* PR feedback on tests/setup logs

* rename symbol

Co-authored-by: Joel Griffith <joel.griffith@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 10:53:24 -07:00
Nicolas Chaulet 85a0b1a514
[Ingest Manager] Improve agent enrollment perfomance (#68480) 2020-06-11 13:41:14 -04:00
Pierre Gayvallet 74ceb7002a
add replace option to navigateToApp API (#68700)
* add `replace` option to `navigateToApp`

* use `unknown` type for state

* add test when `replace` is false
2020-06-11 19:31:45 +02:00
Tre 41caac9f73
[QA] Ingest coverage with Team Assignment Pipeline (#67537)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 11:19:23 -06:00
Sandra Gonzales ef658528e0
[Ingest Manager] update index pattern and privileges for Fleet user and api key (#68891)
* update index pattern and privileges

* keep the datastream pattern and update tests

* add backing index pattern to test
2020-06-11 13:15:58 -04:00
Jonathan Buttner 60f4a80e0e
[Endpoint] Fix endpoint tests with data streams (#68794)
* Temporary fix to get tests working again with data streams

* Removing mappings and renabling tests

* optionally using create for our tests only has a stop gap

* Adding default for internal function

* Removing tests that could fail if backing index changes

* Removing unused import

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 12:35:49 -04:00
Brian Seeders 9c98ba9a9e
[CI] Add pipeline library unit tests (#68556) 2020-06-11 12:19:14 -04:00
Yara Tercero da5aa03583
[Lists][Exceptions] - Updates exception list item comments structure (#68864)
### Summary

This is part of a series of upcoming changes to the exception list item structure. This PR focuses solely on updating exception_item.comment. The hope is to keep these PRs relatively small.

- Updates exception_item.comment structure which was previously a string to exception_item.comments which is an array of { comment: string; created_by: string; created_at: string; }
- Adds a few unit tests server side
- Fixes some minor misspellings
- Updates ExceptionViewer component in the UI to account for new structure
2020-06-11 11:41:31 -04:00
Quynh Nguyen 5f3c3c0354
[ML] Transforms - Updated: Add ability to delete dest index & index pattern when deleting transform job (#68896) 2020-06-11 10:39:31 -05:00
Alexey Antonov d91c954fd2
VEGA is missing scroll bars (#68766)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 17:03:27 +03:00
Daniil Suleiman c6ea29fa01
Fix reporting link path in home feature (#68889) 2020-06-11 16:56:35 +03:00
Wylie Conlon 02b2cdc33b
[Lens] Fix selection of chart in functional test (#68677)
* [Lens] Fix flaky test by closing options after use

* [Lens] Fix selection of chart in functional test

* Test delay

* Filter listings to exact Lens title due to dirty test env

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 09:16:27 -04:00
Paul Tavares afa8d3f7cb
[Endpoint] Refactor policy test service to cache call that retrieves package info (#68827)
* Call to EPM to retrieve Endpoint package information is cached
* Call to EPM to retrieve Endpoint is wrapped in `retry.try` in order to possibly work around network connectivity issues
2020-06-11 08:39:45 -04:00
Larry Gregory 21ceeebb97
Support migrating from reserved feature privileges (#68504) 2020-06-11 07:42:38 -04:00
Pierre Gayvallet 5f00d26ff3
add preference field to SavedObjectsFindOptions (#68620) 2020-06-11 12:57:59 +02:00
Yulia Čech 4b1b4759ef
[ILM] Add "wait for snapshot" policy field to Delete phase (#68505)
* [ILM] Add "wait for snapshot" text field to edit policy form (Delete phase)

* [ILM] Add jest client integration tests for delete phase

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 12:52:29 +02:00
Tim Roes 2a4741125d
Cleanup old license overwrites (#68744) 2020-06-11 11:28:13 +02:00
Mikhail Shustov f593455a62
Bump TypeScript to v3.9 (#67666)
* add babel support for export type

* bump ts version to 3.9.3

* rebuild kbn-pm

* bump typescript-eslint

* fix error in security plugin UI

* check export as works

* fix app migration type

* use correct test subj attribute

* fix errors from the old PR

* embeddable is already passed in props

* explicitly define type of fetch

* add some types for viz

* fix fetch type p.2

* add null to allow spreading without type errors due to override

* add type guard to fix type error

* cast to any, since cannot assign unknown

* add timestamp to known types

* fix type error in fetch

* fix type error. id is always defined in attibutes

* declare a type

* move ts-ignore to the lines with errors

* declare tuple type explicitly

* mute type error. cannot assign unknown

* fix errors. id is always defined

* fix error type

* fix override errors. id is always defined

* fix error. extends any doesn't work anymore

* fix type error. type is always defined

* env doesn't always contain values

* fix type error

* cast to string

* add: logs is already declared in getNodeLogsUrl

* state is already  passed in props

* fix some errors in timelion

* number of fragments is always defined

* 'absolute' is not just string, but value

* TEMP: option is always defined

* always true if cast to promise manually

* both props are always defined

* explicitly define returned SO type

* workaround type

* bump tslib to be compatible with ts v3.9

* test private property

* rebuild kbn-pm

* Fix ts errors for beats management

* Fix type inference broken by the TS 3.9 upgrade

* Fix ingest manager saved object attributes typings

* Fix TS errors in cross_cluster_replication and index_management.

* Fix TS error in Watcher.

* roll back colorRange wrong type

* fix security plugin types

* TypeScript 3.9 fixes for APM

* Fix ColorRange types.

* fix actions & alerts errors. ByGidi

* fix lists error

* More APM fixes

* Remove paramaterization from `removeEmpty in agent config SettingsPage component (it's only used there and doesn't need to be parameterized.)
* Add option chain for case in registerTransactionDurationAlertType
* Cast `overallValue` in transform_metrics_chart
* Use more specific type for custom link filters
* Add more option chaining for local UI filters buckets response
* Remove unused parameters from routes
* Fix getProjection type parameter
* Use destructuring in serviceNodesLocalFiltersRoute to hide `never` error
* Revert `UnionToIntersection` change in `AggregationResponseMap`

Fixes #67804.

* fix platform type error

* Fix visualizations types.

* Fix data plugin types.

* bump TS version to 3.9.5

* Fix telemetry TS errors

* Fix dashboard code

* Adding Canvas Fixes for TS 3.9

* Fix case and security_solution types

* roll back to the old export syntax. new one might cause problems in api-extractor

* update docs

* Fix timelion code

* Fix meta

* Fix types

* fix type errors om ingest_manager

* bump babel deps

* enable private props & methods syntax

* update kbn-pm dist

* whitelist 0BSD license

* use @babel/plugin-proposal-private-methods in default set as well

* disable new babel plugins

* Revert "disable new babel plugins"

This reverts commit 04d959431d.

* cleanup security_solution types

* Fixes type error for newer TypeScript

* update docs

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Nathan L Smith <smith@nlsmith.com>
Co-authored-by: Walter Rafelsberger <walter@elastic.co>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Tim Roes <tim.roes@elastic.co>
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: FrankHassanabad <frank.hassanabad@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 10:04:09 +02:00
Oliver Gupte 9c4b4667f9
[APM] Service maps - adds new storybook stories to test out various data sets (#68727)
* - move cytoscape stories-related files to __stories__
- adds story to generate/render service map response data
- adds story that renders any service map response json
- adds story that renders opbeans test data

* added example data for 'Hipster store' and 'Todo app'

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 00:53:53 -07:00
Oleg Ivasenko 091cece232
Fix vega specification parsing (#67963)
* add filter clause to es_query_parser.js

* update tests to consider the filter clause

* update docs to show the new filter clause

Co-authored-by: Oleg Ivasenko <oleg.ivasenko@devolo.de>
2020-06-11 09:08:55 +03:00
Brandon Morelli 6ec3c23077
docs: add more api information (#68717) 2020-06-10 22:35:05 -07:00
Nathan L Smith 8aa1b39695
[APM] Don't show annotations on charts with no data (#68829)
Hide the annotations plot and legend when a chart has annotations but doesn't have any values in the series.

Fixes #66981.
2020-06-10 19:45:38 -05:00
Chris Cowan 89a6007881
[Metrics UI] Fix Inventory View sorting by handling null values (#67889)
* [Metrics UI] Fix Inventory View sorting by handling null values

* Fixing situation where the id is not unique

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-10 17:19:31 -07:00
spalger 0cfe1166ec skip flaky suite (#68836) 2020-06-10 16:07:23 -07:00
Yara Tercero 9216012c52
[SIEM][Detections Engine] - Fix reference rule url overflow (#68640)
### Summary

Rule reference urls, when really long, appear to overflow. The expected behavior is that it would wrap. I thought it was working in the create rule flow and not the details flow, but it was not working on either. The creation flow was simply hiding the overflow. This fixes it by adding word wrap to the urls.
2020-06-10 19:03:21 -04:00
Matthew Kime 40d2cfc4db
Index pattern public api => common (#68289)
Refactor index pattern api so it can be used by public and server services
2020-06-10 17:24:03 -05:00
Nathan L Smith 867a2d4c63
[APM] Lazy-load alert triggers (#68806)
Use `React.lazy` to load the alert triggers so the code doesn't load until the alert flyout is opened.

Fixes #66189.
2020-06-10 17:15:04 -05:00
DeDe Morton 05590d906a
[DOCS] Fix table formatting in ingest manager settings (#68824) 2020-06-10 15:10:23 -07:00
Paul Tavares 577381d821
[Endpoint] Functional Tests cleanup (#68756)
* Removed several unnecessary disabled eslint rules
* moved common pageobject from endpoint_list to page_utils
* Rename functional_endpoint to security_solution_endpoint
* Delete `functional_endpoint_ingest_failure` no longer applicable
2020-06-10 17:10:34 -04:00
Suyog Rao 28d9c1407c
revert previous commit which was unintentional
sorry, i thought i was making this change to a different repo
2020-06-10 13:50:14 -07:00
Suyog Rao dfa4cdf05a
Use Github token instead for project assignments 2020-06-10 13:48:02 -07:00
Yara Tercero 49a45ecac5
[SIEM][Exceptions] - ExceptionsViewer cleanup (#68739)
### Summary

- Adds missing unit tests for relevant files missing them
- Changes filter search to fire request on 'Enter'
- Breaks out the main ExceptionViewer component into smaller components to make more readable and better tested
- Updates utility bar to have the specific list description text next to it as proposed by @spong in #68294 (comment)
- Adds loading state any time async request occurs
- Now fetches list on list type toggle (if user selects to view either only detections or endpoint items), before was simply filtering already fetched items
2020-06-10 16:45:09 -04:00
Mikhail Shustov b3445cad8f
move @kbn/storybook to devDeps (#68791)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-10 22:04:13 +02:00
Sonja Krause-Harder ff97a034ee
Clean up main Ingest Management doc directory (#68785) 2020-06-10 21:43:57 +02:00
Quynh Nguyen 3197a00e79
Revert "[ML] Transforms: Add ability to delete dest index & index pattern when deleting transform job" (#68793) 2020-06-10 12:02:52 -05:00
Nathan Reese 332a1386d0
[Maps] bump @elastic/ems-client and incorporate types (#68444)
* [Maps] bump @elastic/ems-client and incorporate types

* tslint

* update to ems-client 7.9.2

* bump to 7.9.3

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-10 10:57:23 -06:00
Brandon Kobel e616935d0b
Using re2 for Timelion regular expressions (#67416)
* Revert "Revert "Using re2 for Timelion regular expressions (#55208)""

This reverts commit c90293d03f.

* Updating re2 to 1.14.0. Still need to update build patching

* Extract the gzip to the destination, supporting multiple extract methods

* Adding 'node' to jest's moduleFileExtensions

'node' is in the defaults, not sure why we aren't using the defaults...
https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-10 09:55:42 -07:00
Clint Andrew Hall 713f323447
[Canvas] Fixes for expected prop-types, Shape Arg UI, and i18n strings (#68304)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-10 11:30:36 -05:00
Joe Reuter 8d1a319472
keep custom labels (#68498) 2020-06-10 18:29:22 +02:00
Joe Reuter 497ecf8164
[Lens] Add description property and check duplicate title on save (#68219) 2020-06-10 18:28:00 +02:00
Tyler Smalley 8a5a7c3032
[eslint] Prevents importing of public code into server (#67149)
We should not be allowing importing of public into server. Any shared code should reside in a common directory. After #66506, this will not even be possible as we will no longer be transpiling public code into commonjs.

Blocks #66506

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-06-10 08:39:52 -07:00
Garrett Spong 3b4fa6ade6
[Security] Updates Cypress README.md to show how to run-as-ci with Cypress UI [skip ci] (#68728)
## Summary

Updates Cypress README.md to show how to `run-as-ci` with the Cypress UI. 

##### Updates: 
> Note: To `run-as-ci` with the Cypress UI, update [x-pack/test/security_solution_cypress/runner.ts](https://github.com/elastic/kibana/blob/master/x-pack/test/security_solution_cypress/runner.ts#L25) from 
> ``` ts
>args: ['cypress:run'],
>```
>to 
>``` ts
>args: ['cypress:open'],
>```
>This is helpful for debugging specific failed tests from CI without having to run the entire suite.
2020-06-10 09:19:32 -06:00
EamonnTP 3c6aabcf35
[DOCS] Move Logs app content to Logs monitoring guide (#68644)
* Move content to Logs guide

* Add redirects to Logs monitoring guide

* Update urls
2020-06-10 16:14:46 +01:00