Commit graph

35955 commits

Author SHA1 Message Date
Spencer 846647436e
[yarn] remove typings-tester, use @ts-expect-error (#76341)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-01 10:33:28 -07:00
Tim Sullivan ba9ad8d1fb
[Reporting/CSV] Do not fail the job if scroll ID can not be cleared (#76014)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-01 09:27:03 -07:00
Lisa Cawley 9a27beba75
[ML] Remove "Are you sure" from anomaly detection jobs (#75931) 2020-09-01 07:11:42 -07:00
Tyler Smalley 2114017858
[docs] Updates to development branching (#76063)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
Co-authored-by: Stacey Gammon <gammon@elastic.co>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: Peter Schretlen <peter.schretlen@gmail.com>
2020-09-01 06:49:00 -07:00
Josh Dover 2006ecaa32
Add plugin status API (#75819) 2020-09-01 07:36:05 -06:00
Corey Robertson 4bd9ccec02
[Canvas][tech-debt] Renderer stories (#74373)
* Add stories for renderers

* Fix Typecheck

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-01 09:34:01 -04:00
Sébastien Loix ef7246f157
[Form lib] Add useFormData() hook to listen to fields value changes (#76107) 2020-09-01 14:48:11 +02:00
Matthias Wilhelm 27bdc88011
[Discover] Add sidebar jest test (#76286)
* Add Jest test removed in #73226
2020-09-01 14:46:55 +02:00
Diana Derevyankina 7c3ad238e5
KQL autocomplete cut off in visualize editor with styled-components (#75557)
* KQL autocomplete cut off in visualize editor

Closes #70964

* Refactor some code

* Accept api changes, refactor query_string_input and suggestions_component

* Add a comment to suggestions_component

* Fix dropdown position, add close event on scroll and hide description if it doesn't fit

* Update tests to pass type check

* Fix displaying bugs

* Remove closeList

* Replace dropdownHeight with className

* Update suggestions_component.test and public.api.md

* KQL autocomplete cut off in visualize editor with styled-components

* Update suggestions_component.test values

* Add logic to open the list up

* Remove unnecessary semicolon

* Remove a gap between the list and input by inlining offset -2px from _suggestion.scss

* Rename the constants and add docs to them

* Wrap div inside SuggestionsComponent by styled component instead of wrapping the whole component

* Update public.api.md

* Refactor .kbnTypeahead__popover--top style

* Remove unnecessary condition

* Fix eslint problems

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-01 15:33:26 +03:00
Paul Tavares 97c8c941f3
[SECURITY_SOLUTION][ENDPOINT] Generate Trusted Apps artifacts and Manifest entries (#74988)
* Generate Trusted Apps artifacts + manifest entries
* Artifacts mocks support for generating trusted apps entries
* Adjusted Manifest + Artifacts tests to account for trusted apps
2020-09-01 08:07:39 -04:00
Cauê Marcondes bf7b4782e6
[APM] Remove additional "No data" message and re-ordering charts (#75399)
* removing extra message

* adding x-axis values when no data is available

* reordering charts

* fixing internationalization

* fixing transaction RUM agent order

* addressing PR comment

* removing kpis list and show it in the chart legend instead

* fixing API test

* moving asPercent to the common directory

* fixing api test

* fixing unit test

* removing unused prop

* fixing unit test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-01 13:38:45 +02:00
Thomas Watson a0b64baadb
Align extract-zip 2.x versions (#76350) 2020-09-01 13:32:49 +02:00
Daniil Suleiman b8c7945b12
[TSVB] Fix panel config updates on history changes (#75896)
* Apply history changes to panel config

* Add functional tests

* Update jest snapshot

* Add waiters for stabilizing vis chart

* Fix comments

* Remove unused method isValidKueryQuery

* Add a waiter for component render

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-01 13:29:35 +03:00
Pierre Gayvallet d802bf03f7
xpack_main legacy plugin pre-removal cleanup (#76257)
* cleanup xpack_main legacy plugin, remove capabilities mixin

* fix test env

* delete injectXpackSignature and related tests
2020-09-01 12:19:06 +02:00
Angela Chuang e7966e9d46
[Security Solution] Add tests for import / export timelines (#75537)
* add intergration test for install prebuilt timelines

* add integration tests

* add functional test for export timeline

* clean up

* asserts the content of the exported timeline

* update selector

* update selector

* reuses the timeline id from the expected exported file

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
2020-09-01 11:06:38 +01:00
Pierre Gayvallet ec1c158e09
restore dummy documentation_links.ts file to fix doc build (#76354) 2020-09-01 12:01:04 +02:00
Manuel de la Peña 69461cc618
[APM UI] Rephrase BDD steps for RUM scenarios (#72492)
* chore: group tests doing the same

This will reduce the time it takes to execute the tests

* chore: rephrase step

* chore: extract common code to a function

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-01 10:10:01 +02:00
Pierre Gayvallet e70ef657d4
Delete src/legacy/ui/public folder (#76085)
* delete src/legacy/ui/public folder

* remove jest.mock('ui/XXX'); from tests

* adapt stubbedLogstashIndexPatternService

* remove delete keys from translation files

* fix types import with Capabilities

* remove legacy test utils

* remove dead file referencing ui/newPlatform

* move saved-object-finder styles to timelion plugin
2020-09-01 09:23:22 +02:00
Pierre Gayvallet 086e488392
allow multiple registration of the same feature (#76272) 2020-09-01 07:49:45 +02:00
Yuliia Naumenko 630d2d5fad
Exposed separate from ProxySettings rejectUnauthorized configuration option. (#76061)
* Exposed separate from ProxySettings rejectUnauthorized configuration option.

* Fixed type checks

* fixed tests
2020-08-31 18:11:57 -07:00
Poff Poffenberger 7b807b7888
[Canvas] Add telemetry around workpad variable usage (#75683)
* Add telemetry around workpad variable usage

* Fix typecheck

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 16:53:51 -05:00
Yuliia Naumenko 08f9dccb1c
Added deprecation for renaming config option 'xpack.actions.whitelistedHosts' to 'xpack.actions.allowedHosts' (#76325) 2020-08-31 14:39:12 -07:00
Yuliia Naumenko a8b2810629
Added validation to display an error when creating index action in alert with invalid document. (#75929) 2020-08-31 13:55:16 -07:00
John Schulz de9b7a4924
Add cacheClear & cacheDelete methods (#76306) 2020-08-31 16:37:39 -04:00
Nathan Reese 3dc2c70c34
[Maps] fix duplicate EuiPopover id's (#76202)
* [Maps] fix duplicate ID's

* tslint cleanup

* use layer id instead of layer name for popover id

* tslint fixes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 14:19:20 -06:00
CJ Cenizal e13d8dcfb7
Fix es_ui_shared eslint violations for useRequest hook (#72947)
* Reconcile request helpers with eslint rules for React hooks.
  - Add clearer cleanup logic for unmounted components.
  - Align logic and comments in np_ready_request.ts and original request.ts.
* Reorganize modules and convert tests to TS.
  - Split request.ts into send_request.ts and use_request.ts.
  - Convert test files into TS.
  - Relax SendRequestResponse type definition to type error as any instead of expecting an Error, since we weren't actually fulfilling this expectation.
* Convert everything to hooks and add test coverage for request behavior.
* Fix Watcher memoization bugs.
2020-08-31 12:55:39 -07:00
Pierre Gayvallet 325b82b09c
replace /elasticsearch/_msearch usages with custom endpoint (#76259) 2020-08-31 21:49:22 +02:00
Patryk Kopyciński ef63dc8c61
[Security Solution] Refactor Network TLS to use Search Strategy (#76241) 2020-08-31 21:46:38 +02:00
Jean-Louis Leysens 3fb839ed06
[Snapshot & Restore] Decode URIs and fix editing of a policy (#76278)
* fix URI decoding and editing of a policy which backs up all indices

* fix type issue

* fix general use of encoding and update decode algo

* fix serialisation of snapshots and added a test

* Fix test description name

* Update attempt_to_uri_decode.ts

* catch errors from decoding in the already throwing code

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 21:32:00 +02:00
Spencer 1e5f5dfe6a
[canvas] remove unused file (#76295)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-31 12:29:16 -07:00
Tiago Costa 0068c87d6f
chore(NA): add elastic prefix to eslint-config-kibana (#76059)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 20:13:06 +01:00
Chris Roberson 78262467e0
Handle cloud test failures (#74162)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 13:39:56 -04:00
Patryk Kopyciński 047c608e94
[Security Solution] Refactor FirstLastSeenHost to use Search Strategy (#76252) 2020-08-31 19:30:07 +02:00
Lisa Cawley 20cb8161ca
[ML] Remove "Are you sure" from filter lists (#76180) 2020-08-31 10:06:30 -07:00
Greg Thompson ee73c59f8c
Upgrade EUI to v28.2.0 (#75700)
* eui to v28.0.0

* eui to 28.2.0

* euiselectableoptions type update

* targeted nohoist

* src snapshot updates

* x-pack snapshot updates

* strong -> mark

* upgrade @elastic/charts to v21.0.1

* strong -> mark

* fix charts version merge

* maps -> add_field_tooltip_popover type update

* snapshot update

* Fix gridline visibility

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2020-08-31 11:01:38 -06:00
Chris Roberson 50ce6349aa
Reduce mappings (#76008)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 12:58:17 -04:00
Dan Panzarella 4379ca8cbf
[Security Solution] Filter Default policy details (#76112) 2020-08-31 12:55:56 -04:00
Lisa Cawley 877600af1f
[ML] Remove "Are you sure" from data frame analytics models (#76215) 2020-08-31 09:35:29 -07:00
Nathan Reese 85429442d9
[Maps] fix Hotlink for EMS-add-data card do not working (#76110)
* [Maps] fix Hotlink for EMS-add-data card do not working

* remove duplicate typing

* update ConfigSchema usage in region_map plugin

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 10:30:13 -06:00
Nathan L Smith 2486a71522
[APM] Language-specific stacktrace formatting (#75924)
* [APM] Language-specific stacktrace formatting

* Add todos

* more

* add at prefix for java

* [APM] Fix overlapping transaction names

...in the table and the header. Did this by adding `word-break: break-all` to them.

Also:

* Rename List to TransactionList
* Add stories for TransactionList and ApmHeader
* Add missing type information to transactions based on sample transaction
*
Fixes #73960.
2020-08-31 10:59:02 -05:00
Justin Kambic 4f23f0ac7a
[Uptime] Fix alerting false positives (#75577)
* Add test and modify code to account for complex filter input.

* Avoid unnecessary nesting.

* Simplify filtering code.

* Use `must` instead of `should`.

* Fix types.

* Refresh snapshots.

* Use `filter` instead of `must`.

* Refactor to improve readability.

* Resolve filtering issue for availability query.

* Add test covering filter fix.

* Removed unused var.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 11:53:34 -04:00
Xavier Mouligneau 304670c3a8
[SECURITY SOLUTION] two bugs fix for threat hunting (#76060)
* fix read only issue with timeline

* fix no feeds url for kibana setting + remove the no-index-laert index from the timeline query so you do not have to add permissions to it

* Add test + add logic to not show advance settings if user does not have access

* remove no alert indices from the timeline query

* review I

* no needs of that

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 11:50:35 -04:00
Chris Roberson 54926523e8
Convert to using new status, and remove legacy plugin (#75806)
* Convert to using new status, and remove legacy plugin

* PR feedback

* Fix test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 11:42:17 -04:00
Thomas Watson b21071e54b
Bump bl sub-dependency (#76260) 2020-08-31 17:28:14 +02:00
Matthew Kime e7951eb83a
remove force refresh on index pattern class init (#76248) 2020-08-31 10:11:15 -05:00
Pierre Gayvallet dc37cca082
remove legacy uiSettings mixin (#76255)
* remove legacy uiSettings mixin

* adapt ui_render mixin to use core APIs
2020-08-31 16:59:24 +02:00
Scotty Bollinger 137aadb830
[Enterprise Search] Upgrade to Kea 2.2-rc.4 (#76206)
* Add Kea 2.20.rc.3

* Remove Kea declarations

* Convert AppLogic files to use new syntax

- Utilizes MakeLogicType to type the logic file and remove bespoke typings
- Use object syntax for actions and reducers, instead of functions
- Add return types to actions in interface
- Remove interfaces from component (Kea does this automagically now)

- Also renamed IAppLogic* to IApp*

* Convert Workplace Search Overview files to use new syntax

- Utilizes MakeLogicType to type the logic file and remove bespoke typings
- Use object syntax for actions and reducers, instead of functions
- Add return types to actions in interface
- Remove interfaces from component (Kea does this automagically now)

- Also renamed mockLogic* to mockApp*

* Convert HttpLogic files to use new syntax

- Utilizes MakeLogicType to type the logic file and remove bespoke typings
- Use object syntax for actions and reducers, instead of functions
- Add return types to actions in interface
- Remove interfaces from component (Kea does this automagically now)

- Also renamed IHttpLogic* to IHttp*

* Convert FlashMessages files to use new syntax

- Utilizes MakeLogicType to type the logic file and remove bespoke typings
- Use object syntax for actions and reducers, instead of functions
- Add return types to actions in interface
- Remove interfaces from component (Kea does this automagically now)

* Remove hand-rolled Kea types

Bye-bye pretty code

* Upgrade to rc4 per author

From Kea author: “I’d suggest upgrading to rc.4 before merging though, as I seem to have committed some optional chaining operators ("?.") into the compiled JS output, which will cause errors if anyone is using an older browser. You can also wait for 2.2.0 final, but that might still be a week or more away…”

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 09:52:37 -05:00
Nathan L Smith 9b5912203f
Use platform history (#74328)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: cauemarcondes <caue.marcondes@elastic.co>
2020-08-31 08:43:35 -05:00
Alison Goryachev 833d76442f
[Ingest pipelines] Tests for pipeline debugging enhancement (#75606) 2020-08-31 09:34:39 -04:00
Cauê Marcondes 647f397c50
[APM] Chart units don't update when toggling the chart legends (#74931)
* changing unit when legend is disabled

* changing unit when legend is disabled

* show individual units in the tooltip

* addressing PR comment

* increasing duration threshold

* change formatter based on available legends

* addressing PR comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 11:46:29 +02:00