Commit graph

41403 commits

Author SHA1 Message Date
Kibana Machine
e0e106516e
Remove PEG.js generator from the timelion runtime (#100327) (#100380)
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-05-20 07:39:22 -04:00
Pierre Gayvallet
e1e68fe949
remove ui settings client-side validation (#100311) (#100379)
* remove ui settings client-side validation

* fix linter

* fix tests

* update generated doc
2021-05-20 07:33:58 -04:00
Kibana Machine
7d0deec6cb
[Security Solutions] Re-arranges and adds more packages to remove copied code (#100310) (#100369)
## 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

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-05-19 19:56:33 -04:00
Kevin Logan
05fc567a28
[Security Solution] Add linux malware config options and migration (#100166) (#100368) 2021-05-19 19:46:58 -04:00
spalger
8fa93a225d skip flaky suite (#100372) (#96997)
(cherry picked from commit be97fae12e)
2021-05-19 15:51:47 -07:00
Kibana Machine
71fd3a793a
Cleanup package.json resolutions. (#99456) (#100365)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2021-05-19 18:33:09 -04:00
liza-mae
d83ba4fbb8
Upgrade functional test fixes (#100306) (#100361)
* Upgrade functional test fixes

* Fix lint issues
2021-05-19 17:06:58 -04:00
Kibana Machine
eae06dcc01
[Enterprise Search] Upgrade Kea to 2.4.2 (#100299) (#100359)
Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-05-19 17:04:23 -04:00
Kibana Machine
4aaffe931b
crypto-js 3.3.0 -> 4.0.0 (#100347) (#100356)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-05-19 16:29:06 -04:00
Zacqary Adam Xeper
5e6aeba0b0
[Metrics UI] Replace date_histogram with date_range aggregation in threshold alert (#100004) (#100349)
* [Metrics UI] Replace date_histogram with date_range aggregation in threshold alert

* Remove console.log

* Fix rate aggregation and offset
2021-05-19 14:41:54 -04:00
Kevin Logan
68a3585726
[Security Solution] Add supported field to ransomware (#100135) (#100343) 2021-05-19 13:39:58 -04:00
Kibana Machine
714bd3b7b8
[Maps] Add grid-resolution telemetry (#99808) (#100342)
Co-authored-by: Thomas Neirynck <thomas@elastic.co>
2021-05-19 13:34:01 -04:00
spalger
c6639e2cba skip flaky suite (#99581)
(cherry picked from commit 4b0c01a732)
2021-05-19 09:34:35 -07:00
Kibana Machine
9b9f3bec75
Upgrade accept 3.0.2 and @hapi/accept 5.0.1 to @hapi/accept 5.0.2 (#100294) (#100313)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-05-19 05:52:10 -04:00
Nathan Reese
5cc4f999e4
[Maps] convert TooltipControl to typescript (#100059) (#100309)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 21:13:29 -04:00
Kibana Machine
c85ccf909f
[dev docs] Add sample data tutorial. Closes #98297 (#99252) (#100308)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-05-18 20:29:42 -04:00
Kibana Machine
ae89d1ad36
[Alerting] Refactor alerts authorization client (#99078) (#100307)
* 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>

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-05-19 00:28:53 +00:00
Kibana Machine
ef5ebb11f2
refact(NA): remove extra pkg_npm target and add specific target folders for @kbn/i18n on Bazel (#100271) (#100304)
* refact(NA): remove extra pkg_npm target and add specific target folders on @kbn/i18n

* chore(NA): override the browser types

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-05-18 19:46:44 -04:00
Kibana Machine
e36a21dd6b
Remove unused module oppsy from package.json (#100295) (#100303)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-05-18 19:42:20 -04:00
Kibana Machine
36f07953ad
[dashboard][labs] Defer loading panels below the fold (#99880) (#100302)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
2021-05-18 19:40:24 -04:00
Uladzislau Lasitsa
9768ee2a87
[XY axis] Improve expression with explicit params (#98897) (#100264)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-05-18 14:21:41 -07:00
Frank Hassanabad
c17e429b9b
[Security Solution] Re-adds a test that was skipped (#100273) (#100284)
## 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 16:01:59 -04:00
Larry Gregory
0d927696c8
Remove lodash.template from legacy discover doc table (#99836) (#100283)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 15:47:30 -04:00
Larry Gregory
9e30e3454f
Remove lodash.template from point series visualization (#100207) (#100282)
* Remove lodash template from point series visualization

* fix message spacing
2021-05-18 15:45:58 -04:00
Frank Hassanabad
c48d613aca
[Security Solutions] Removes commented out "last look back date" code (#100269) (#100281)
## 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 15:42:45 -04:00
David Sánchez
be74b11216
[Security Solutions][Endpoint] Fixes weird 'flash' when entries does not exists on event filters page (#100203) (#100279)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 15:25:11 -04:00
Kevin Logan
8709260e86
[Security Solution] Fix policy details test (#100260) (#100276) 2021-05-18 15:05:01 -04:00
Stratoula Kalafateli
62601d2d2f
[Timelion] Changes the version of removal message (#100022) (#100266)
* 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>

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-18 12:28:28 -04:00
Kibana Machine
7ec1dbb01b
added check for array (#100164) (#100263)
Co-authored-by: Devon Thomson <devon.thomson@hotmail.com>
2021-05-18 11:34:07 -04:00
Thom Heymann
d033f4171e
Simplify deleting spaces (#99960) (#100258)
* 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>
# Conflicts:
#	x-pack/plugins/spaces/public/management/spaces_management_app.tsx
2021-05-18 10:26:59 -04:00
Frank Hassanabad
60ef805740
Reduce limits of security solutions to max + 15kb (#100247) (#100257)
## 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
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-05-18 10:18:27 -04:00
Kibana Machine
ac4173058e
[Lens] Specify Y axis extent (#99203) (#100255)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-05-18 08:33:04 -04:00
Kibana Machine
ee3c3c6f63
Migrate from Joi to @kbn/config-schema in "home" and "features" plugins (#100201) (#100254)
* 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

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-05-18 08:30:05 -04:00
Mikhail Shustov
b66df95440
Improve migration perf (#99773) (#100252)
* Do not clone state, use TypeCheck it's not mutated

* do not recreate context for every migration

* use more optional semver check

* update SavedObjectMigrationContext type

* add a test model returns new state object

* update docs

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 06:52:37 -04:00
Kibana Machine
2fa9800396
[Lens] Debounce axis name inputs mob programming (#100108) (#100251)
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-05-18 06:16:03 -04:00
Kibana Machine
18e6085370
[Security Solutions] Replaces most deprecated io-ts alerting and list types (#100234) (#100246)
## 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

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-05-18 03:23:28 -04:00
Kibana Machine
c0f46471c1
[Uptime] [Synthetics Integration] Add functional tests for Synthetics Integration (#100161) (#100242)
* add functional tests for synthetics fleet package

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-05-17 18:42:11 -04:00
Kibana Machine
7c6b5b4a37
[ML] Fixing use_null setting in advanced job wizard (#100028) (#100239)
* [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>

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-05-17 18:00:47 -04:00
Kibana Machine
98992e6250
Update Timeline Template README.md (#95814) (#100237)
## Summary

`xpack.security_solution.signalsIndex` is listed to be added to `kibana.dev.yml`, however that generates:
```
FATAL  Error: Unknown configuration key(s): "xpack.security_solution.signalsIndex". \
Check for spelling errors and ensure that expected plugins are installed.
```
I think this should be `xpack.securitySolution.signalsIndex`

This is for the steps to create a timeline template.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

Co-authored-by: Andrew Pease <7442091+peasead@users.noreply.github.com>
2021-05-17 12:52:05 -07:00
Tim Sullivan
d15dc4cba8
[Reporting] Switch Mac Chromium to the internally-hosted custom build (#100165) (#100233)
* 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-17 15:21:27 -04:00
Kibana Machine
4b712fda4b
[kbn/test] move types/ftr into src (#99555) (#100228)
* [kbn/test] move types/ftr into src

* Apply eslint updates

* fix import of Lifecycle type

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

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-17 14:49:48 -04:00
Catherine Liu
3124344357
[Dashboard] Fixes dashboard_save functional test (#98830) (#100227)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-17 14:41:02 -04:00
Catherine Liu
2bb2fc280d
[Canvas] Fix column object shape in datatable created by CSV function (#98561) (#100225)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-17 14:37:42 -04:00
Tiago Costa
e1188f7f5e
skip failing es promotion suite (#99915) 2021-05-17 18:49:16 +01:00
Kibana Machine
eb20988b98
[Security Solution][Endpoint] Refactor Host Isolation component used in Isolate use case (#100159) (#100220)
* EndpointHostIsolateForm component
* Refactor Detections Host isolation flyout to use isolateform

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-05-17 17:13:54 +00:00
Kibana Machine
e1cc66b17b
[QA] fix dashboard lens by value test (#100196) (#100222)
* [functional test] remove redundant navigation, wait for lens to be loaded

* fix navigation to new viz

* update test title

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

Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
2021-05-17 13:13:21 -04:00
Kibana Machine
8e36787829
[Fleet] Fix migration 7.12 to 7.13 migrate settings (#100054) (#100217)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-05-17 12:22:24 -04:00
Nicolas Chaulet
7dcf8b8950
[Fleet] Improve fleet server upgrade modal (#99796) (#100215) 2021-05-17 12:19:31 -04:00
Tiago Costa
2a76071edc
skip failing es promotion suite (#99915) 2021-05-17 16:22:27 +01:00
Tiago Costa
31734233d7
skip failing es promotion suite (#99915) 2021-05-17 16:20:32 +01:00