Commit graph

41587 commits

Author SHA1 Message Date
David Sánchez
b7070cbc76
[Security solution][Endpoint] Add unit tests for fleet event filters/trusted apps cards (#101034) (#101151)
* Adds new unit tests for fleet card components

* Fixes some warnings on ui

* Adds some syntax and readibility nits comming from pr comments

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 10:30:18 +02:00
Kibana Machine
efe64f264c
[ML] Functional tests - reenable categorization tests (#101137) (#101241)
This PR re-enables the categorization tests that have been temporarily skipped.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-03 03:46:43 -04:00
Yuliia Naumenko
35c39274d3
[Alerting UI] Reduced triggersActionsUi bundle size by making all action types UI validation messages translations asynchronous. (#100525) (#101240)
* [Alerting UI] Reduced triggersActionsUi bundle size by making all connectors validation messages translations asyncronus.

* changed validation logic to be async

* fixed action form

* fixed tests

* fixed tests

* fixed validation usage in security

* fixed due to comments

* fixed due to comments

* added spinner for the validation awaiting

* fixed typechecks

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 03:30:38 -04:00
Kibana Machine
88615e49f6
[Security Solution] Add Ransomware canary advanced policy option (#101068) (#101149)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
2021-06-03 02:56:52 +00:00
Steph Milovic
6ac1ee2135
[Security Solution] [Bug Fix] Fix flakey cypress tests (#101231) (#101237) 2021-06-02 22:24:46 -04:00
Tre
e8e702f892
[QA] Bind the retry to fixup error in it repo tests (#100948) (#101220)
Verfiied via: https://internal-ci.elastic.co/view/All/job/elastic+integration-test+master/487/
2021-06-02 19:19:13 -04:00
Bhavya RM
ae22aa341e
Unskip advanced settings a11y test (#100558) (#101217) 2021-06-02 18:56:27 -04:00
spalger
0c04ee4c7d skip suite failing es promotion (#101219)
(cherry picked from commit 98527ad232)
2021-06-02 14:15:31 -07:00
Kaarina Tungseth
81a7423a28
[DOCS] Removes 100778 from 7.13.1 release notes 2021-06-02 15:48:34 -05:00
gchaps
a0d31e76ed
[DOCS] Updates homebrew content to use latest version (#101199) (#101211) 2021-06-02 13:45:14 -07:00
Kibana Machine
2d9368821b
Convert $json to json in package README code blocks (#101187) (#101202)
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-06-02 16:35:00 -04:00
Kibana Machine
d387e5c658
[Fleet] Fix host input with empty value (#101178) (#101195)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-02 15:36:23 -04:00
Kibana Machine
2cf349a777
docs(NA): update developer getting started guide to build on windows within Bazel (#101181) (#101205)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-02 12:30:08 -07:00
Kaarina Tungseth
a9fbee3f16
[DOCS] Adds the 7.12.2 bug fixes to the 7.13.0 release notes (#101204) 2021-06-02 14:12:47 -05:00
Kibana Machine
8c619ca1a7
Fix alerting health API to consider rules in all spaces (#100879) (#101193)
* Initial commit

* Expand tests

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

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2021-06-02 15:04:58 -04:00
DeDe Morton
35bf5ba9dc
Edit text strings in Heartbeat setup prompt (#100753) (#101192)
* Edit text strings in Heartbeat setup prompt

* Update snapshot to fix test failure

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 14:56:38 -04:00
Kibana Machine
0d0836a321
[Fleet] Add support for meta in fields.yml (#100931) (#101189)
* [Fleet] Add support for meta in fields.yml

* Revert formatting changes to install.ts

* Add mapping tests

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

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
2021-06-02 14:50:21 -04:00
Kaarina Tungseth
58b2b966d4
[DOCS] Adds missing bug fixes to 7.13.1 release notes (#101201) 2021-06-02 13:44:46 -05:00
Joe Reuter
22fa45a373
[Lens] Time shift metrics (#98781) (#101186) 2021-06-02 14:40:57 -04:00
Kibana Machine
2a52938c25
[App Search] Crawler Landing Page (#100822) (#101175)
* New CrawlerLanding component

* New CrawlerRouter component

* Adding CrawlerRouter to EngineRouter

* Using internal route for Crawler link in EngineNav

* Rename crawler landing background

* Fix CrawlerLanding css

* Fix crawler documentation link

* Add Crawler title to breadcrumbs

* Reduce png filesize

* Improve CrawlerLanding copy

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_landing.scss

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

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

Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-02 13:35:49 -04:00
Kibana Machine
9bcb0ae1ec
change label behavior (#100991) (#101172)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-02 13:24:47 -04:00
Kibana Machine
e8968738fe
[Lens] Reduce lodash footprint (#101029) (#101043)
* [Lens] extract lodash methods

* remove lodash from files that don't use it

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-06-02 16:41:56 +00:00
Kibana Machine
0d855a13e1
[Home] Adding file upload to add data page (#100863) (#101166)
* [Home] Adding file upload to add data page

* updating comment

* tiny refactor

* attempting to reduce bundle size

* reverting to original home register import

* lazy load tab contents

* changes based on review

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

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-06-02 12:33:16 -04:00
gchaps
e42fa7a501
[DOCS] Adds server.uuid to settings docs (#101121) (#101179) 2021-06-02 09:13:10 -07:00
Pierre Gayvallet
0c57d8d0a0
Fix newsfeed unread notifications always on when reloading Kibana (#100357) (#101163)
* fix the implementation

* add unit tests

* add API unit tests

* fix public interface

* address review comments

* name convertItem to localizeItem

* use fetch instead of core.http and add tests
2021-06-02 12:01:28 -04:00
Kibana Machine
654e46ccab
[Lens] Use a setter function for the dimension panel (#101123) (#101138)
* [Lens] Use a setter function for the dimension panel

* Remove copy+paste issue

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-06-02 15:46:52 +00:00
Adam Locke
eb81b29276
[DOCS] Clarify when to use kbn clean (#101155) (#101173)
When building a PR locally, I ran into an issue where the server kept crashing. I ran `yarn kbn clean`, and saw this message in my terminal:
>warn This command is only necessary for the rare circumstance where you need to recover a consistent state when problems arise. If you need to run this command often, >please let us know by filling out this form: https://ela.st/yarn-kbn-clean

I think it makes sense to add this information to the docs so that if users are reading it, they know that this command is not typically necessary.
2021-06-02 11:46:25 -04:00
Ahmad Bamieh
3e755ccf1f
[7.x] [Deprecations service] make correctiveActions.manualSteps required (#100997) (#101156)
* merge conflicts

* update deprecation message
2021-06-02 11:28:22 -04:00
spalger
5a296a3a28 skip flaky suite (#101126)
(cherry picked from commit ef9d2bfb01)
2021-06-02 08:17:57 -07:00
Kaarina Tungseth
ef6bc40ddc
[DOCS] Removes 7.13.1 coming tags (#101094) 2021-06-02 09:31:32 -05:00
Kibana Machine
137a720b97
[Maps] spatially filter by all geo fields (#100735) (#101153)
* [Maps] spatial filter by all geo fields

* replace geoFields with geoFieldNames

* update mapSpatialFilter to be able to reconize multi field filters

* add check for geoFieldNames

* i18n fixes and fix GeometryFilterForm jest test

* tslint

* tslint

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

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-06-02 10:19:52 -04:00
Kibana Machine
54b8d288b3
[Exploratory view] Core web vitals (#100320) (#101144)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-02 08:33:23 -04:00
Anton Dosov
4202cb42dc
[7.x] [Index Patterns] Fix return saved index pattern object (#101051) (#101134)
* [Index Patterns] Fix return saved index pattern object (#101051)

* update docs
2021-06-02 07:38:47 -04:00
Yaroslav Kuznietsov
abaa442a0f
[TSVB] Fix color rules are not applied for null series (#100404) (#101135)
* Fixed color rules behaviour on empty metrics data.

Refactored function `getLastValue`, which was providing unexpected result on empty arrays. It was returning string, instead of null/undefined value.
Created two useful functions, which are providing possibility to handle empty result and get default value, which is expected.

* Tests added.

Tests for getLastValue refactored.
Tests for getLastValueOrDefault and getLastValueOrZero written.

* Removed console.log

* Added default value for empty operator.

Added default value for empty operator, which will compare statistics to empty array.
Added conditional render of colorRuleValue field, if operator doesn't require some specified value to be chosen ( as default, in this case ).

* Added empty data handling.

Added empty value var and way of displaying in widgets.
Added way of handling empty results and prevented comparing null, empty array and numeric rules.

* Prettier fixes.

* Added the same logic of displaying data to gauge.

Added displaying of empty data to gauge module.
Fixed label color styles (before, it was ignoring, because of setting colorValue out of default scope while reactcss(...) call).

* Added empty data handling in Top N chart.

* Removed getLastValueOrZero.

Removed getLastValueOrZero and replaced by getLastValueOrEmpty.

* Added isEmptyValue function.

Added isEmptyValue function, which is able to check equality. It provides a possibility to encapsulate the logic of empty value and flexible changing of its' behavior.

* Fixed and refactor.

Fixed hidden value input, if no operator selected.
Removed useless DEFAULT_VALUE and getLastValueOrDefault.

* Color rules Tests.

Changed from js to ts last_value_utils. Updated tests for color_rules component.

* Replaces isEqual rule with eq.

* Migrations added.

* Fixed types, EMPTY_VALUE, empty method.

Removed type definition for methods in last_value_utils.ts.
Changed EMPTY_VALUE from array to null. Removed default value.
Added logic for handling empty value handling and comparison methods.

* Fixed comparing null and numeric rules.

* Changed migrations.

* Added test for migrations.

* Migration fix.

* Updated code, based on nits and fixed reasons of pipeline errors.

* Moved actions, connected to operators to the separate file. Reduced duplication of code.

* Type names changed.

* Test for operators_utils added.

* Fixed based on nits.

* Added vis_type_timeseries to tsconfig references.

* Changed version and added migrations.

* Small fix in migrations.

* Fixes based on review.

* Revert "Fixes based on review."

This reverts commit 35af7b2b6a.

* Fixes based on review.

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 03:44:52 -07:00
Kibana Machine
4f0781737c
[CI] For PRs, build TS refs before public api docs check (#100791) (#101128)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2021-06-01 23:20:47 -04:00
CJ Cenizal
e044137bd4
Migrate CCR to new ES JS client. (#100131) (#101125)
* Update SectionError component to render error root causes correctly.
* Fix 404 error rendering.
* Add test for follower index update API route.
2021-06-01 21:24:18 -04:00
Nathan Reese
d6cb25aeea
[Maps] fix line and polygon label regression (#101085) (#101124) 2021-06-01 21:22:20 -04:00
Wylie Conlon
1a2e46ba65
[Expressions] Use table column ID instead of name when set (#99724) (#101110)
* [Expressions] Use table column ID instead of name when set

* Update ID matching to match by name sometimes

* Add an extra case to prevent insertion of duplicate column

* Simplify logic and add test for output ID

* Respond to review comments

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 18:59:54 -04:00
Kibana Machine
d252c4e794
Migrate kibana.autocomplete config to data plugin (#100586) (#101088)
* Migrate kibana.autocomplete config to data plugin

* Fix CI

* Fix tests

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

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2021-06-01 17:34:26 -04:00
gchaps
e24af8c236
[DOCS] Updates docs landing page (#100749) (#101114)
* [DOCS] Updates docs landing page

* [DOCS] Cleans up docs landing page
2021-06-01 14:25:07 -07:00
Stacey Gammon
2cad521166
Ensure comments on parameters in arrow functions are captured in the docs and ci metrics. (#100823) (#101087)
* Make sure arrow functions capture parameter comments.

* Update docs
# Conflicts:
#	api_docs/apm.json
#	api_docs/core.json
#	api_docs/data.json
#	api_docs/data_index_patterns.json
#	api_docs/data_search.json
#	api_docs/licensing.json
#	api_docs/reporting.json
#	api_docs/spaces.json
2021-06-01 17:24:44 -04:00
gchaps
2cc6873e6c
[DOCS] Updates runtime example in Discover (#100926) (#101112)
* [DOCS] Updates runtime example in Discover

* [DOCS] Updates images

* [DOCS] Adds link to runtime fields
2021-06-01 14:20:47 -07:00
Kaarina Tungseth
4d9fcfdf59
[DOCS] Corrects typo in step 3 (#101079) (#101096) 2021-06-01 14:00:14 -07:00
Kibana Machine
e99f42d848
[Uptime] New width/delay definition for waterfall sidebar item tooltip (#100147) (#101083)
* Add new width definition for waterfall sidebar item. Add delay to tooltip.

* Add default value for style if/when undefined.

* Create shared style for eui breakpoints to use by both waterfall tooltip types.

* Add a comment.

* Use viewport units instead of breakpoints.

* Rename a style.

* Add top margin to prevent tooltip from missing target item. Rename a style.

* Adjust custom `margin-top`.

* Add index to tooltip content.

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

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2021-06-01 20:56:12 +00:00
Sandra Gonzales
0a3e83aa10
Re-enable _mb suffixed stack monitoring func tests (#98354) (#101081)
* Reenabled _mb suffixed stack monitoring func tests

These tests were disabled temporarily in #98238 because of intermittent failures in master.

* use test_user instead of basic_monitoring_user

* remove security service

* remove logout and cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: neptunian <sandra.gonzales@elastic.co>

Co-authored-by: Jason Rhodes <jason.rhodes@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 16:53:44 -04:00
Kaarina Tungseth
4af061060a
[7.x] [DOCS] Adds the 7.13.1 release notes (#101092)
* [DOCS] Adds the 7.13.1 release notes

* Update docs/CHANGELOG.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: DeDe Morton <dede.morton@elastic.co>

* Corrects Sharing bug fix that was organized under Design

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: DeDe Morton <dede.morton@elastic.co>
2021-06-01 15:19:16 -05:00
Kibana Machine
b2766e9730
[Fleet] Better input for multi text input in agent policy builder (#101020) (#101077)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-01 19:27:33 +00:00
Jean-Louis Leysens
09129c8e38
[Reporting/Telemetry] Do not send telemetry if we are in screenshot mode (#100388) (#101076)
* do not send telemetry if isScreenshotMode

* Implement PR feedback:

* added another Jest test
* move Boolean() to make the opt-in value always boolean

* remove unused import and convert to import type

* fix type issues

* update jest snapshot

* Expanded test coverage

- added plugin functional test
- added jest test to check TelemetrySender behaviour
- exported the localStorage/window value that flags screenshot
  mode

* fix test plugin name in package.json and make sure to opt out of telemetry when the test finishes

* added missing type file to plugin_functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/telemetry/kibana.json
2021-06-01 15:27:05 -04:00
Kibana Machine
313a887d34
Create API keys with metadata (#100682) (#101074)
Co-authored-by: Thom Heymann <190132+thomheymann@users.noreply.github.com>
2021-06-01 18:50:59 +00:00
Kibana Machine
491e90c362
[ML] Functional tests - disable categorization tests (#101057) (#101069)
This PR temporarily disables categorization tests.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-01 14:04:19 -04:00