Commit graph

43132 commits

Author SHA1 Message Date
Dzmitry Lemechko bc3b9d694b
[QA] update code coverage to use its own script (#100199)
* do  run build script for code coverage

* fix notifyOnError call

* remove maxWorkers argument

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-20 10:34:44 +02:00
spalger be97fae12e skip flaky suite (#100372) (#96997) 2021-05-19 15:51:32 -07:00
Frank Hassanabad 9bf488e826
[Security Solutions] Re-arranges and adds more packages to remove copied code (#100310)
## Summary

* Creates a `securitysolution-list-utils` packaged and moves the first set of utilities into there
* Fixes a slight bug with `kbn-securitysolution-io-ts-list-types` where the wrong name was used
* Moves _all_ of the lists schemas and types into the package `kbn-securitysolution-io-ts-list-types`
* Removes copied code found in a few places

## Tech debt
* Some spots I have to use an `any` in the package as Kibana kbn packages don't have the types I need
* Some spots I copy constants until we can straighten out those pieces.
* I keep copied mock files until we figure out how to share mocks from these packages without adding weight or we create dedicated mock packages for all of this. 


### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-05-19 15:59:52 -06:00
Kevin Logan 00479968a1
[Security Solution] Add linux malware config options and migration (#100166) 2021-05-19 17:37:43 -04:00
Aleh Zasypkin c6e8ee2268
Cleanup package.json resolutions. (#99456) 2021-05-19 16:39:52 -04:00
Devon Thomson 413e2ddf20
[Dashboard] Embeddable Migrations for By Value Panels (#99715)
* Implemented embeddable by value migrations
2021-05-19 16:19:15 -04:00
liza-mae c28b5496a6
Upgrade functional test fixes (#100306)
* Upgrade functional test fixes

* Fix lint issues
2021-05-19 13:08:41 -06:00
Scotty Bollinger 0ef6cb315f
[Enterprise Search] Upgrade Kea to 2.4.2 (#100299) 2021-05-19 15:05:51 -04:00
Joe Portner 1915592ecf
crypto-js 3.3.0 -> 4.0.0 (#100347) 2021-05-19 14:38:07 -04:00
spalger c0d81c985d skip failing suite (#98351) 2021-05-19 09:45:41 -07:00
spalger 4b0c01a732 skip flaky suite (#99581) 2021-05-19 09:34:14 -07:00
Kevin Logan 9da1a707d7
[Security Solution] Add supported field to ransomware (#100135) 2021-05-19 11:43:18 -04:00
Thomas Neirynck ef42620624
[Maps] Add grid-resolution telemetry (#99808) 2021-05-19 11:37:59 -04:00
Larry Gregory 4256c18230
Remove circular dependency between features and security (#100206)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-19 11:33:44 -04:00
Thomas Watson afaacae777
Bump Node.js from version 14.16.1 to 14.17.0 (#100314) 2021-05-19 07:36:43 -07:00
Larry Gregory 907203d68e
Ban use of lodash.template (#100277)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-19 10:06:52 -04:00
Jean-Louis Leysens f97aad30f4
[Screenshot mode] Create plugin to provide "screenshot mode" awareness (#99627)
* initial version of the screenshot mode service

* First iteration of client side of screenshot mode plugin

Also hooked it up to the chromium browser imitating the preload
functionality of electron to set up the environment before
code runs.

* First implementation of server-side logic for detecting
screenshot mode

* fix some type issues and do a small refactor

* fix size limits, docs and ts issues

* fixed types issues and made sure screenshot mode is correctly detected on the client

* Moved the screenshot mode header definition to common
Added a server-side example for screenshot mode
Export the screenshot mode header in both public and server

* move require() to screenshotMode plugin

* Update chromium_driver.ts

* cleaned up some comments, minor refactor in ReportingCore and
changed the screenshotmode detection function to check for a
specific value.

* fix export

* Expanded server-side screenshot mode contract with function that
checks a kibana request to determine whether we in screenshot
mode

* added comments to explain use of literal value rather than external reference

* updated comment

* update reporting example

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
2021-05-19 16:03:27 +02:00
Tiago Costa 8f1bf66a7b
skip flaky suite (#100296) 2021-05-19 13:13:07 +01:00
Thomas Watson fb3f0b0765
Upgrade accept 3.0.2 and @hapi/accept 5.0.1 to @hapi/accept 5.0.2 (#100294) 2021-05-19 09:51:34 +02:00
Nathan Reese 2a84b428b5
[Maps] convert TooltipControl to typescript (#100059)
* [Maps] convert ToolbarControl to typescript

* fix scss import

* remove unused function from APM map tooltip

* apm tslint

* pass loadFeatureGeometry to renderTooltipContent

* security_solution: pass mbProperties to loadFeatureProperties

* security_solution tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 17:17:42 -06:00
Jonathan Budzenski e476029daa
[dev docs] Add sample data tutorial. Closes #98297 (#99252)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 18:35:01 -04:00
ymao1 0f0cee2510
[Alerting] Refactor alerts authorization client (#99078)
* WIP - creating alerting authorization client factory and exposing authorization client on plugin start contract

* Updating alerting feature privilege builder to handle different alerting types

* Passing in alerting authorization type to AlertingActions class string builder

* Passing in authorization type in each function call

* Passing in exempt consumer ids. Adding authorization type to audit logger

* Changing alertType to ruleType

* Changing alertType to ruleType

* Updating unit tests

* Updating unit tests

* Passing field names into authorization query builder. Adding kql/es dsl option

* Converting to es query if requested

* Fixing functional tests

* Removing ability to specify feature privilege name in constructor

* Fixing some types and tests

* Consolidating alerting authorization kuery filter options

* Cleanup and tests

* Cleanup and tests

* Throwing error when AlertingAuthorizationClientFactory is not defined

* Renaming authorizationType to entity

* Renaming AlertsAuthorization to AlertingAuthorization

* Fixing unit tests

* Updating privilege string terminology

* Updating privilege string terminology

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 18:32:43 -04:00
spalger a105c7a8b1 skip suite failing in 7.13 (#96895) 2021-05-18 14:50:38 -07:00
Tiago Costa 4f754550e8
refact(NA): remove extra pkg_npm target and add specific target folders for @kbn/i18n on Bazel (#100271)
* refact(NA): remove extra pkg_npm target and add specific target folders on @kbn/i18n

* chore(NA): override the browser types
2021-05-18 17:49:23 -04:00
Thomas Watson 4d5443d774
Remove unused module oppsy from package.json (#100295) 2021-05-18 17:47:57 -04:00
Clint Andrew Hall 79e7694e27
[dashboard][labs] Defer loading panels below the fold (#99880)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 16:44:19 -05:00
Thomas Watson 3333a75a33
Revert "Upgrade accept 3.0.2 and @hapi/accept 5.0.1 to @hapi/accept 5.0.2 (#100292)"
This reverts commit 025c4199e8.
2021-05-18 21:47:20 +02:00
Thomas Watson 025c4199e8
Upgrade accept 3.0.2 and @hapi/accept 5.0.1 to @hapi/accept 5.0.2 (#100292) 2021-05-18 21:45:08 +02:00
Frank Hassanabad 0f9766591f
[Security Solution] Re-adds a test that was skipped (#100273)
## Summary

Re-adds a test that was skipped. If it goes bonkers again, I will add more debugging information to it. I will keep an eye on the operations channel to see when/if this fails again. Originally this looked to be timeouts waiting, so I increased the global timeout to be 20 seconds instead of the original 10 seconds.

Resolves:
https://github.com/elastic/kibana/issues/89389

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-05-18 13:03:49 -05:00
Frank Hassanabad 79b2c5826a
[Security Solutions] Removes commented out "last look back date" code (#100269)
## Summary

* Removes commented out code which promises we are going to do something past 7.11. This code has been checked in and the column of `last_look_back_date` has been removed since 7.11, which means we haven't had it for 7.11, 7.12, and now 7.13.

Related: https://github.com/elastic/kibana/pull/89801
2021-05-18 13:25:23 -04:00
Kevin Logan 79c94d33fb
[Security Solution] Fix policy details test (#100260) 2021-05-18 13:14:31 -04:00
Tim Sullivan 7369a48de0
[Reporting] Switch Mac Chromium to the internally-hosted custom build (#100165) (#100232)
* switch mac chromium download location to kibana team gcs

* oops, fix the path to the binary

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 19:03:39 +02:00
David Sánchez ebc4cfc246
[Security Solutions][Endpoint] Fixes weird 'flash' when entries does not exists on event filters page (#100203)
* Fixes weird 'flash' when entries does not exists on event filters page. Also fixes a multilang and query when empty string

* Removes old comment

* Use function to retrieve async resource state

* Fix unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 18:37:48 +02:00
Larry Gregory 307c98c039
Remove lodash.template from legacy discover doc table (#99836)
* remove lodash.template from legacy discover doc table

* fix cell rendering

* remove excess whitespace from rendered output

* adding unit tests

* even more tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 12:17:26 -04:00
Claire Burn 6f31c10baf
Update detection rule telemetry field name. (#100256)
* Changing variable name of cases_count_daily to cases_count_total.

* Taking comments out of tests and reverting tests to previosu state.

* Changing meta description to be more descriptive.

* Changing meta description to be more descriptive.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 10:10:06 -06:00
Larry Gregory 55b95ea8a1
Remove lodash.template from point series visualization (#100207)
* Remove lodash template from point series visualization

* fix message spacing
2021-05-18 11:44:30 -04:00
Thomas Neirynck 85a515ac15
[Maps] Allow layers to be excluded from fit to data (#100098) 2021-05-18 11:43:01 -04:00
Stratoula Kalafateli 3926331633
[Timelion] Changes the version of removal message (#100022)
* Change the version of timelion removal on our documentation and warnings

* Remove translations in order to be revisited

* Remove double

* Update docs/user/dashboard/timelion.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update src/plugins/timelion/public/components/timelion_deprecation.tsx

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update src/plugins/timelion/server/deprecations.ts

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update src/plugins/timelion/server/deprecations.ts

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 17:33:56 +03:00
Devon Thomson bc5472d5da
added check for array (#100164) 2021-05-18 09:39:53 -04:00
Uladzislau Lasitsa 5c3527d8a6
[XY axis] Improve expression with explicit params (#98897)
* Removed visconfig and using explicit params instead in xy_plugin

* Fix CI

* Fix i18n

* Fix unit test

* Fix some remarks

* move expressions into separate chunk

* fix CI

* Update label.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-05-18 15:28:10 +03:00
Thom Heymann 574b4559e7
Simplify deleting spaces (#99960)
* Simplify deleting spaces

* Fixed i18n

* Fix functional tests

* Update x-pack/plugins/spaces/public/management/spaces_management_app.tsx

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Fix snapshots

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 11:37:18 +01:00
Joe Reuter 3c166a1472
[Lens] Specify Y axis extent (#99203) 2021-05-18 12:36:35 +02:00
Mikhail Shustov 574f6595ad
Migrate from Joi to @kbn/config-schema in "home" and "features" plugins (#100201)
* add a link for issue to remove circular deps

* features: migrate from joi to config-schema

* update tests

* migrate home tutorials to config-schema

* migrate home dataset validation to config schema

* remove unnecessary type. we cannot guarantee this is a valid SO

* address Pierres comments
2021-05-18 06:33:16 -04:00
Marta Bondyra 15abf24339
[Lens] Debounce axis name inputs mob programming (#100108) 2021-05-18 10:13:39 +02:00
Frank Hassanabad 6bb55f824e
Reduce limits of security solutions to max + 15kb (#100247)
## Summary

With recent package changes and fixes we are down to 61kb for page load bundle. General rules are max kilobytes + 15kb for buffer so that would mean we should lower it to be 76kb.

Resolves #95870
2021-05-18 03:24:12 -04:00
Frank Hassanabad e15b887e43
[Security Solutions] Replaces most deprecated io-ts alerting and list types (#100234)
## Summary

Replaces most of the deprecated io-ts alerting and list types within securitysolution as part of Phase 3 of 4 phases outlined in earlier PR's such as https://github.com/elastic/kibana/pull/99260

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-05-17 23:28:06 -06:00
Dominique Clarke 6d4cca29a7
[Uptime] [Synthetics Integration] Add functional tests for Synthetics Integration (#100161)
* add functional tests for synthetics fleet package
2021-05-17 16:44:30 -04:00
James Gowdy 7f9364ac8a
[ML] Fixing use_null setting in advanced job wizard (#100028)
* [ML] Fixing use_null setting in advanced job wizard

* fixing types

* fixing false checks for detector fields

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-17 21:04:35 +01:00
Brian Seeders f1a2e6f251 skip flaky suite (#100236) 2021-05-17 15:53:20 -04:00
Tiago Costa cbab391bbe
skip failing es promotion suite (#99915) 2021-05-17 18:48:41 +01:00