Commit graph

43335 commits

Author SHA1 Message Date
Wylie Conlon 72d5b8a388
[Expressions] Use table column ID instead of name when set (#99724)
* [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>
2021-06-01 17:06:45 -04:00
gchaps 972b53fd36
[DOCS] Updates docs landing page (#100749)
* [DOCS] Updates docs landing page

* [DOCS] Cleans up docs landing page
2021-06-01 13:53:35 -07:00
Kaarina Tungseth be7f0117ce
[DOCS] Corrects typo in step 3 (#101079) 2021-06-01 15:50:48 -05:00
gchaps 0d4693cc53
[DOCS] Updates runtime example in Discover (#100926)
* [DOCS] Updates runtime example in Discover

* [DOCS] Updates images

* [DOCS] Adds link to runtime fields
2021-06-01 13:37:15 -07:00
Lukas Olson 8edb316e69
Migrate kibana.autocomplete config to data plugin (#100586)
* Migrate kibana.autocomplete config to data plugin

* Fix CI

* Fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 12:36:07 -07:00
Justin Kambic f58ddc4b08
[Uptime] New width/delay definition for waterfall sidebar item tooltip (#100147)
* 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>
2021-06-01 14:58:42 -04:00
Tyler Smalley 0f9debeba7
[FTR] Use importExport for saved_object/basic archive (#100244)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-01 11:50:49 -07:00
Nicolas Chaulet eff776560e
[Fleet] Better input for multi text input in agent policy builder (#101020) 2021-06-01 13:34:33 -04:00
Brian Seeders 54c3ca142e
[CI] Buildkite support with Baseline pipeline (#100492) 2021-06-01 13:11:07 -04:00
Jean-Louis Leysens 0ecca23e30
[Reporting/Telemetry] Do not send telemetry if we are in screenshot mode (#100388)
* 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>
2021-06-01 19:03:28 +02:00
Thom Heymann 27f790c8f2
Create API keys with metadata (#100682) 2021-06-01 19:55:11 +03:00
Robert Oskamp 77f0a2a7ad
[ML] Functional tests - disable categorization tests (#101057)
This PR temporarily disables categorization tests.
2021-06-01 18:12:31 +02:00
Marta Bondyra 1f6e514de6
[Lens] mock htmlIDGenerator to avoid messages when running tests (#101042) 2021-06-01 17:55:42 +02:00
Greg Thompson 38fd8a268a
Upgrade EUI to v33.0.0 (#99382)
* eui to 33.0.0

* resize observer type inclusion - revisit

* src snapshot updates

* x-pack snapshot updates

* table sort test updates

* code block language sh -> bash

* datagrid datetime sort inversion

* types

* kbn-crypto

* refractor yarn resolution

* refractor yarn resolution

* update cypress tests

* url state test

* trial

* Revert "trial"

This reverts commit adc3538145.

* trial anomaly timeout

* Revert "trial anomaly timeout"

This reverts commit 9a11711ba8.

* kbn-telemetry-tools

* Change a useMemo to useCallback so the code executes when intended

* Removed no-longer-used import

* exitOrFail already retries for longer than tryForTime

* Wait for loading indicator to disappear

* Intentionally adding `.only`

* Revert .only

* Increase wait time for the ML chart to load

* Remove unused var

* overflow

* chartWidth

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2021-06-01 10:53:07 -05:00
Matthew Kime 9734d1cfe8
[Index patterns] Deprecate scripted field API functions (#100907)
* deprecate scripted field functions in index patterns api
2021-06-01 10:34:06 -05:00
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