Commit graph

42994 commits

Author SHA1 Message Date
Stacey Gammon
044c725c71
Fix a bunch of bugs with APIDocs system (#99589)
* Remove custom code, add in a hack

* remove artifical limit

* Fix arrow functions in interfaces not having children

* Update docs

* Update api docs after merge from master

* update api docs after merge from master

* update api docs
2021-05-20 13:22:41 -04:00
Stratoula Kalafateli
3e5d9cf47d
[TSVB] Update TSVB sample viz with the default timerange mode (#100376) 2021-05-20 17:59:48 +03:00
Pete Hampton
97b6d1eca8
Add ML usage collector descriptions to the schema. (#100387)
* Add ML usage collector descriptions to the schema.

* Update the telemetry mappings file
2021-05-20 08:39:50 -06:00
Kaarina Tungseth
08884a6249
[DOCS] Fixes Discover link on runtime fields page (#100335) 2021-05-20 08:42:39 -05:00
Jen Huang
320c9e0198
Add back install button for integrations that aren't installed yet (#100370) 2021-05-20 06:04:41 -07:00
Pete Hampton
59adbb069e
Refactor away from expected error. Handle 404 as any other error. (#100383) 2021-05-20 14:02:05 +01:00
Ignacio Rivas
e62887b9d7
[Ingest pipelines] fix default paramenter for ignore_missing in csv processor (#100316)
* fix: set ignoreMissingField to true by default
* Add missing serializer to trim fieldConfig

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-20 14:56:52 +02:00
Alison Goryachev
f3f08ff1f6
Rename client integration test folders (#100119) 2021-05-20 08:54:47 -04:00
Michael Dokolin
cb0c584c0b
[Reporting] Add logging of CPU usage and memory consumption by Chromium (#99109)
* Add logging of CPU usage by chromium
* Add logging of memory consumption by chromium
* Add PDF report byte length logging
* Add PNG report byte length logging
2021-05-20 11:51:16 +02:00
Larry Gregory
9bf8e47941
Remove PEG.js generator from the timelion runtime (#100327) 2021-05-20 05:44:59 -04:00
Pierre Gayvallet
8ee78d393e
remove ui settings client-side validation (#100311)
* remove ui settings client-side validation

* fix linter

* fix tests

* update generated doc
2021-05-20 11:40:57 +02:00
Pierre Gayvallet
8fc9115a6d
Migrate joi to 17.4.0 and adapt the codebase (#99899)
* bump joi to 17.4.0, start adapting stuff

* remove custom validation rule, adapt instead

* fix error handling

* fix error handling again

* fix strings type & validation

* fix buffers and arrays

* fix bytes

* fix bytes_size type

* update conditional_type error messages in tests

* fix duration and map types

* first attempt to fix union type error messages

* revert conditional type assertions back to master state

* fix object type

* fix record type

* fix stream types

* rename test files to match sources

* fix union type tests

* temporary adapt feature/home usages of Joi

* fix lint

* adapt test assertion

* fix http config schema validation

* fix @kbn/test Config class

* fix config again

* fix reporting schema tests

* fix security solution schema

* adapt url tests

* remove useless comment

* remove space

* typo

* review comments
2021-05-20 10:55:59 +02:00
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