Commit graph

35944 commits

Author SHA1 Message Date
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
Jean-Louis Leysens
aac57fb1a8
[ILM] Add support for frozen phase in UI (#75968)
* ILM public side changes to support frozen phase

This is a very faithful duplication of the cold phase. We are
also excluding the snapshot action as well as the unfollow action
as these are features that require higher than basic license
privilege.

* added "frozen" to the server side schema

* add frozen phases component

* fix i18n and update jest tests

* Slight restructuring to phase types and fix copy paste issues.

- also fixed TS error introduced after TS v4 upgrade (delete)

* fix hot phase type and remove type constraint from error messages

* update validation logic

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 11:45:57 +02:00
Stratoula Kalafateli
9ddd49a9f0
Hides advanced json for count metric (#74636)
* remove advanced json for count agg

* Remove only advanced json from count agg

* use Constant from data plugin

* add the logic to data plugin

* remove json arg from function definition

* remove unecessary translations

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-31 12:40:44 +03:00
Pierre Gayvallet
5f781dcfec
add client-side feature usage API (#75486)
* add client-side feature_usage API

* use route context for notify feature usage route
2020-08-31 08:44:27 +02:00
Nathan Reese
1e20cd4cf4
[Maps] add drilldown support map embeddable (#75598)
* [Maps] add drilldown support

* filter actions view

* use i18n getter

* remove unused changed

* tslint fixes

* more tslint changes

* clean-up and API doc changes

* update snapshots

* do not show first drilldown in tooltip

* add light grey line to seperate feature property rows

* Improving tooltip row styles (#36)

* Improving tooltip actions row styles

* Removind unecessary comment

* update snapshot and add functional test

* switch UiActionsActionDefinition to Action and remove unneeded checks

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elizabet Oliveira <elizabet.oliveira@elastic.co>
2020-08-28 11:04:24 -06:00
Constance
641a5ad77f
[Enterprise Search] Request handler refactors/enhancements + update existing routes to use shared handler (#76106)
* Refactor enterprise_search_request_handler to a class that stores config/log

- So that routes don't have to continuously pass it in - just params that actually change (paths, queries)

+ misc refactors/lint fixes from code review

* Update mocks/dependencies so other tests pass type checks

* Update /api/workplace_search/overview endpoint to use new request handler

* Update /api/app_search/engines route to use new handler

- This required updating the shared handler to accept custom params set by the route, since the engines route transmutes some param names
- createRequest mock also had to be updated to correctly reflect a curried function in order to get tests passing

* DRY out hasValidData to a reusable/cleaner call

* Update shared handler to output specific message for auth errors

- Check for /login URL (indicates auth issue)
- Refactor final catch return to allow being passed messages from previous throw
- Change hasValidData fallback to only log (potentially sensitive?) JSON data to server, not to client
- Minor test cleanup - move error tests to single describe block, minor URL/newline cleanup

* Update handler to pass method & body requests + pass back response code

- This will support future POST requests as well as support (e.g.) 404 responses

Minor test refactors:
- Set up new request defaults (method, empty body) + expected output & convert KibanaAuthHeader to string since they're set so close to one another
- group request pass tests into a describe block, remove response body portion of their tests (since we don't really care about that for those tests)
- group response tests into describe block
- clarify how passed handler params arg overrides request.params

* PR feedback: Update custom params arg to take an object instead of a query string
2020-08-28 08:38:23 -07:00
Robert Austin
3fc3f58c62
[Resolver] model location.search in redux (#76140)
Read location.search from the redux store instead of a hook so that the entire view has a single (synchronized) source of truth.

Also, no longer pass `pushToQueryParams` function to various components.
2020-08-28 08:53:04 -04:00
Cauê Marcondes
712c4bdde7
[APM] Prevent imports of public in server code (#75979)
* renaming test file

* removing eslint rule

* restructuring observability types

* refactoring fetchOptions type
2020-08-28 12:43:49 +02:00
spalger
86870d22b8 fix eslint issue 2020-08-27 23:02:57 -07:00
spalger
f078672c54 skip flaky suite (#76223) 2020-08-27 23:01:53 -07:00
Oliver Gupte
b1cb8b8c7f
[APM] Transaction duration anomaly alerting integration (#75719)
* Closes #72636. Adds alerting integration for APM transaction duration anomalies.

* Code review feedback

* Display alert summary with the selected anomaly severity label instead of the anomaly score.

* - refactored ALL_OPTION and NOT_DEFINED_OPTION to be shared from common/environment_filter_values
- utilize getEnvironmentLabel in the alerting trigger components and added support for the 'All' label

* refactor get_all_environments to minimize exports and be more consistent and clean

* - Reorg the alerts menu for different alert types (threshold/anomaly)
- default environment alert settings to the selected filter

* - Filters default transaction type to only those supported in the APM anomaly detection jobs
- Removes Service name and transaction type from the set of expressions in the alerting setup

* - remove bell icon from alerts menu

* Adds target service back into the anomaly alert setup as a ready-only expression

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-27 21:19:36 -07:00
Lisa Cawley
1b75690b73
[Transforms] Avoid using "Are you sure" (#75932) 2020-08-27 18:56:31 -07:00