Commit graph

43320 commits

Author SHA1 Message Date
gchaps 675997731d
[DOCS] Remove recommendation of coordinating only node (#100632) (#100954) 2021-06-01 08:01:02 -07:00
Jason Rhodes 8ed2add1a2
Re-enable _mb suffixed stack monitoring func tests (#98354)
* 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>
2021-06-01 10:58:39 -04:00
Felix Stürmer 61a49c6119
[Logs UI] Replace legacy es client usage in category examples (#100716)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 15:48:40 +02:00
Kyle Pollich 151f5fdee1
Allow for ID in create package policy request (#100908)
E2E tests are failing because they include the ID field returned by the
package list endpoint. This just updates our request schema to accept an
ID, though we don't persist or deal with the ID anywhere.

Closes #100897

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 09:30:51 -04:00
Shahzad 4aa3920746
[Index Patterns Field Formatter] Added human readable precise formatter for duration (#100540)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 14:05:56 +02:00
Tiago Costa 19b8aa798c
skip flaky suite (#90565) 2021-06-01 12:54:15 +01:00
Tiago Costa 25f569ae3d
skip flaky suite (#64473) 2021-06-01 12:49:51 +01:00
Marta Bondyra 5da47f8969
[Lens] Reduce lodash footprint (#101029)
* [Lens] extract lodash methods

* remove lodash from files that don't use it
2021-06-01 13:46:13 +02:00
Dmitry Tomashevich 69883de634
[Discover] Add EUIDataGrid to surrounding documents (#99447)
* [Discover] migrate remaining context files from js to ts

* [Discover] get rid of any types

* [Discover] replace constants with enums, update imports

* [Discover] use unknown instead of any, correct types

* [Discover] skip any type for tests

* [Discover] add euiDataGrid view

* [Discover] add support dataGrid columns, provide ability to do not change sorting, highlight anchor doc, rename legacy variables

* [Discover] update context_legacy test and types

* [Discover] update unit tests, add context header

* [Discover] update unit and functional tests

* [Discover] remove docTable from context test which uses new data grid

* [Discover] update EsHitRecord type, use it for context app. add no pagination support

* [Discover] resolve type error in test

* [Discover] add disabling control columns option, change loading feedback

* [Discover] clean up, update functional tests

* [Discover] remove invalid translations

* [Discover] support both no results found and loading feedback

* [Discover] provide loading status for discover

* [Discover] fix functional test

* [Discover] add useDataGridColumns test, update by comments

* [Discover] fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 14:29:01 +03:00
Ahmad Bamieh 1168e11639
[Deprecations service] add deprecationType and use it in configs deprecations (#100983) 2021-06-01 14:09:10 +03:00
Felix Stürmer f7698bd8aa
[Observability] Expose options to customize sidebar route matching (#100886)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 11:21:29 +02:00
Liza Katz 842bb69aea
[bfetch] compress stream chunks (#97994)
* Move inspector adapter integration into search source

* docs and ts

* Move other bucket to search source

* test ts + delete unused tabilfy function

* hierarchical param in aggconfig.
ts improvements
more inspector tests

* fix jest

* separate inspect
more tests

* jest

* inspector

* Error handling and more tests

* put the fun in functional tests

* delete client side legacy msearch code

* ts

* override to sync search in search source

* delete more legacy code

* ts

* delete moarrrr

* deflate bfetch chunks

* update tests
use only zlib

* ts

* extract getInflatedResponse

* tests

* Use fflate in attempt to reduce package size

* use node streams, fflate and hex encoding.

* DISABLE_SEARCH_COMPRESSION UI Settings
Use base64 and async compression

* i18n

* Code review
Use custom header for compression
Promisify once

* use custom headers

* Update jest

* fix tests

* code review, baby!

* integration

* tests

* limit

* limit

* limit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 09:57:46 +03:00
Peter Pisljar a622cd5450
adding expressions dev_docs tutorial (#101004) 2021-06-01 06:05:39 +02:00
Christiane (Tina) Heiligers d6828a221b
[so-migrationsv2] Use named arguments in migrationsv2 actions (#100964)
* Use named arguments in migrationsv2 actions

* Addresses some optional review feedback
2021-05-31 19:04:46 -04:00
Matthias Wilhelm af4b8e6626
[Discover] Improve document selection menu
- Change position of "Copy documents to clipboard (JSON)" and "Clear selection"
2021-05-31 18:46:13 +02:00
Marco Liberati 6c879cc7c5
[Lens] [Docs] Add more QA for Lens (#97142)
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-31 18:16:11 +02:00
Tiago Costa 5191dc5734
skip flaky suite (#98240) 2021-05-31 16:37:47 +01:00
Tiago Costa 622bf0bf5a
skip flaky suite (#100570) 2021-05-31 16:23:58 +01:00
Yaroslav Kuznietsov 055ade5947
[TSVB] Fix color rules are not applied for null series (#100404)
* 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>
2021-05-31 17:12:49 +03:00
Matthias Wilhelm 0cf48f3ecf
[Discover] Fix infinite scrolling using Classic table (#97634)
* Fix infinite scrolling

* Add functional tests
2021-05-31 15:06:52 +02:00
Dmitry Tomashevich 7b127ac0ee
[Vega] fix redundant scrollbars in default vega config (#97210)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-31 13:24:15 +03:00
Joe Reuter 79fa4f405b
[Lens][Dashboard] Share session between lens and dashboard (#100214) 2021-05-31 11:14:31 +02:00
Esteban Beltran 2281e9da5e
[Security Solution] Add modified at and modified by fields to the trusted apps card (#100868)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-31 10:08:53 +02:00
Robert Oskamp 3ef24aa56c
[ML] Functional tests - reenable DFA feature importance suite (#100850)
This PR re-enables the data frame analytics feature importance test suite.
2021-05-31 09:29:37 +02:00
Davis Plumlee 418a3d312c
[Security Solution][Detections] Update rule integration tests (#98512) 2021-05-28 21:40:57 -04:00
CJ Cenizal 1c5b302fea
Remove license check from Index Management (#100188) 2021-05-28 17:19:40 -07:00
CJ Cenizal 67b8a43684
Remove license check from Ingest Node Pipelines UI (#100189) 2021-05-28 17:13:09 -07:00
James Gowdy e93c18fea7
[ML] Fixing management app race condition (#100785)
* [ML] Fixing management app race condition

* updating test id

* translation id

* adding link to license page

* fixing tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 21:23:10 +01:00
Cauê Marcondes 0bcd78b0e9
[APM] Move APM tutorial from apm_oss to x-pack/apm (#100780)
* Register tutorial on APM plugin

* using files from apm

* removing tutorial from apm_oss

* removing export

* fixing i18n

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 15:43:30 -04:00
Dima Arnautov d50a3db2b1
[ML] Severity control for Anomaly timeline (#99489) 2021-05-28 21:34:29 +02:00
Garrett Spong 4c48993bb0
[RAC][Security Solution] Register Security Detection Rules with Rule Registry (#96015)
## Summary

This PR starts the migration of the Security Solution rules to use the rule-registry introduced in https://github.com/elastic/kibana/pull/95903. This is a pathfinding effort in porting over the existing Security Solution rules, and may include some temporary reference rules for testing out different paradigms as we move the rules over. See https://github.com/elastic/kibana/issues/95735 for details


Enable via the following feature flags in your `kibana.dev.yml`:

```
# Security Solution Rules on Rule Registry
xpack.ruleRegistry.index: '.kibana-[USERNAME]-alerts' # Only necessary to scope from other devs testing, if not specified defaults to `.alerts-security-solution`
xpack.securitySolution.enableExperimental: ['ruleRegistryEnabled']
```

> Note: if setting a custom `xpack.ruleRegistry.index`, for the time being you must also update the [DEFAULT_ALERTS_INDEX](9e213fb7a5/x-pack/plugins/security_solution/common/constants.ts (L28)) in order for the UI to display alerts within the alerts table.

---

Three reference rule types have been added (`query`, `eql`, `threshold`), along with scripts for creating them located in:

```
x-pack/plugins/security_solution/server/lib/detection_engine/reference_rules/scripts/
```

Main Detection page TGrid queries have been short-circuited to query `.alerts-security-solution*` for displaying alerts from the new alerts as data indices.

To test, checkout, enable the above feature flag(s), and run one of the scripts from the above directory, e.g.  `./create_reference_rule_query.sh` (ensure your ENV vars as set! :)


Alerts as data within the main Detection Page 🎉 
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/119911768-39cfba00-bf17-11eb-8996-63c0b813fdcc.png" />
</p>




cc @madirey @dgieselaar @pmuellr @yctercero @dhurley14 @marshallmain
2021-05-28 12:38:49 -06:00
Constance 8529040a92
[Enterprise Search] Log warning for Kibana/EntSearch version mismatches (#100809)
* Add server log warnings whenever Kibana and Enterprise Search versions are mismatched

* Copy feedback
2021-05-28 10:57:30 -07:00
Bhavya RM 4989ec266b
updating the saved objects test to include more saved object types (#100828) 2021-05-28 13:04:59 -04:00
Pete Harverson 5dbec05289
[ML] Fix categorization job view examples link when datafeed uses multiple indices (#100789)
* [ML] Fix categorization job view examples link when datafeed uses multiple indices

* [ML] Fix operator in index pattern check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 17:43:44 +01:00
Jonathan Buttner 692806aed8
Fixing ES archive mapping failure (#100835)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 12:21:34 -04:00
Nathan L Smith a00fa53000
Fix bug with Observability > APM header navigation (#100845)
Call `setHeaderActionMenu(undefined)` when the HeaderMenuPortal is unmounted.

Found this line in the docs:

> Calling the handler with `undefined` will unmount the current mount point.

Which we weren't doing before.

Previous behavior:

* Go to /app/observability/alerts
* Click the "View in app" button for an APM alert
* Click back
* Click the "View in app" button for an APM alert
* Get a weird toast error message and the header menu is gone forever

Now:

* Go to /app/observability/alerts
* Click the "View in app" button for an APM alert
* Click back
* Click the "View in app" button for an APM alert
* Get a working header menu

Fixes #97140
2021-05-28 11:10:14 -05:00
David Sánchez cec62cb706
[Security Solution][Endpoint] Add event filters summary card to the fleet endpoint tab (#100668)
* Shows event filters card on fleet page

* Uses aggs instead of while loop to retrieve summary data

* Add request and response types in the lists package

* Fixes old import

* Removes old i18n keys

* Removes more old i18n keys

* Use consts for exception lists url and endpoint event filter list id

* Uses event filters service to retrieve summary data

* Fixes addressed pr comments such as changing the route without underscore, adding aggs type, validating response, and more

* Uses useMemo instead of useState to memoize object

* Add new e2e test for summart endpoint

* Handle api errors on event filters and trusted apps summary api calls

* Add api error message to the toast

* Fix wrong i18n key

* Change span tag by react fragment

* Uses styled components instead of modify compontent style directly and small improvements on test -> ts

* Adds curls script for summary route

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 18:07:54 +02:00
ymao1 b4e8cfe0d7
[Actions] Taking space id into account when creating email footer link (#100734)
* Taking space id into account when creating email footer link

* Handling undefined space when spaces is disabled

* Handling undefined space when spaces is disabled

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 11:56:51 -04:00
Stacey Gammon 8fba2d93a6
Ensure comments on parameters in arrow functions are captured in the docs and ci metrics. (#100823)
* Make sure arrow functions capture parameter comments.

* Update docs
2021-05-28 11:56:31 -04:00
Marshall Main 7f6d7b3642
[Security Solution] Improve find rule and find rule status route performance (#99678)
* Fetch rule statuses using single aggregation instead of N separate requests

* Optimize _find API and _find_statuses

* Merge alerting framework errors into rule statuses

* Add sortSchema for top hits agg, update terms.order schema

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 11:49:49 -04:00
gchaps b2e6028327
[DOCS] Adds video to introduction (#100906) 2021-05-28 08:37:25 -07:00
Nicolas Chaulet a0622d51da
[Fleet] Improve combo box for fleet settings (#100603) 2021-05-28 11:25:20 -04:00
Paul Tavares e3517edd22
[Security Solution][Endpoint] Endpoint generator and data loader support for Host Isolation (#100813)
Re-introduces the changes from #100727 which was backed out due to a bug. Changes included:

* Generate random isolation values for endpoint metadata
* Generator for Fleet Actions
* Added creation of actions to the index test data loader

Plus:

* Fix generator `randomBoolean()` to ensure it works with seeded random numbers
* Update resolver snapshots due to additional call to randomizer
2021-05-28 10:40:34 -04:00
Kaarina Tungseth 1dad47fdf2
[DOCS] Adds Lens video (#100898) 2021-05-28 09:38:14 -05:00
Alexey Antonov bd2bf74de8
[TSVB] [Table tab] Fix "Math" aggregation (#100765) 2021-05-28 07:13:13 -07:00
Tiago Costa b575a4545f
chore(NA): moving @kbn/io-ts-utils into bazel (#100810) 2021-05-28 15:02:44 +01:00
ymao1 c0f9970a55
[Alerting] Adding feature flag for enabling/disabling rule import and export (#100718)
* Adding feature flag for enabling rule import and export

* Removing item from docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 09:52:58 -04:00
Alexey Antonov 8715de8c5e
[TSVB] Fix Upgrading from 7.12.1 to 7.13.0 breaks TSVB (#100864)
Closes: #100778
2021-05-28 09:39:38 -04:00
Marco Liberati 51616e1b8d
[Lens] Adds dynamic table cell coloring (#95217)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Michael Marcialis <michael@marcial.is>
2021-05-28 15:24:28 +02:00
Esteban Beltran 4b486d3d1a
[Security Solution][Endpoint] Do not display searchbar in security-trusted apps if there are no items (#100853)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 15:19:15 +02:00