Commit graph

44299 commits

Author SHA1 Message Date
Vadim Dalecky 15d47ec2c1
ML locator (#103652)
* fix: 🐛 cast type

* chore: 🤖 remove unused parameter

* feat: 🎸 implement ML locator

* test: 💍 add locator tests

* feat: 🎸 expose ML locator form plugin contract

* feat: 🎸 deprecate ml url generator

* feat: 🎸 use locator in useMlHref() React hook

* fix: 🐛 remove non-existing property

* fix: 🐛 remove unused parameter

* feat: 🎸 replace url generator by locator

* refactor: 💡 remove ML url generator and replace by locator

* fix: 🐛 correct type check error

* test: 💍 add share plugin mock and use it

* test: 💍 update mock

* Remove usage of excludeBasePath

* Fix recently accessed url for create job to data visualizer

* refactor: 💡 rename interface

* test: 💍 move locator mock into the share plugin

* test: 💍 update Jest snapshot

* test: 💍 use shared URL service mock

* refactor: 💡 update usage after merging latest

* refactor: 💡 use locator instead of generator

* chore: 🤖 remove unused import

Co-authored-by: Quynh Nguyen <quynh.nguyen@elastic.co>
2021-07-08 16:24:12 +02:00
Wylie Conlon 0ef3cbe6ed
[Expressions] Introduce createTable expression function, and use in Lens (#103788)
* [Expressions] Introduce createTable expression function, and use in Lens

* Fix test

* Fix code style

* Fix typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 10:01:50 -04:00
Joe Reuter 4dae93938c
add telemetry for fix action (#104832) 2021-07-08 15:43:49 +02:00
Scotty Bollinger 60a9eb9e84
[Workplace Search] Remove groups user management and filter (#104734)
* Remove TableFilterUsersDropdown

* Update button to point to users and roles

* Remove modal and group users logic

* Remove route

* Remove i18n translations
2021-07-08 08:40:52 -05:00
Marco Liberati 52d70fbc7c
[Lens] Fix wrong memoization (#104837) 2021-07-08 15:10:46 +02:00
Alexey Antonov 5dbbf6ebce
[TSVB] annotations support runtime fields (#104287)
* [TSCB] js -> ts

# Conflicts:
#	src/plugins/vis_type_timeseries/server/lib/vis_data/helpers/index.ts

* fix top hit

* fix types

* Update types.ts

* Update query.ts

* remove extra types

* Update buckets.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 08:40:07 -04:00
David Sánchez 9787849e37
Set padding size to large for security UI pannel (#104308)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 14:39:22 +02:00
István Zoltán Szabó e027b733e0
[ML] Replaces links due to content reorg (#104621) 2021-07-08 08:36:00 -04:00
Marco Liberati cb6b8b1f7f
[Lens] Enable palette configuration for Heatmap (#102636)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 14:18:32 +02:00
Josh Dover 489a52bc12
Add test for detecting new and removed SO types (#104507) 2021-07-08 08:18:10 -04:00
Dave Snider aecfab028e
Tweak solution nav to feedback (#104666)
Makes some tweaks to the Solution Side nav (and corresponding global nav) due to feedback since merged.
2021-07-08 08:14:01 -04:00
Christos Nasikas 98750a30cc
[Cases] Fix recent cases filter (#104826) 2021-07-08 14:29:27 +03:00
Thomas Watson 3a173656ab
Upgrade from Node.js v14.17.2 to v14.17.3 (#104417) 2021-07-08 07:26:37 -04:00
Jean-Louis Leysens 170cb57827
fix where we slice for maxResults (#104661) 2021-07-08 13:25:08 +02:00
Shahzad ff327bee91
fix lens embeddable (#104822) 2021-07-08 13:17:14 +02:00
Thomas Neirynck 9134bc07d8
[Maps] Auto generate legends and styles from mvt data (#94811) 2021-07-08 12:45:14 +02:00
Stratoula Kalafateli bf5ddcfc78
Fix documentation (#104833) 2021-07-08 13:38:23 +03:00
Gloria Hornero 646f1d4076
[Security Solution] Test automation for upgrade, phase 2 and 3 (#104424)
* adds upgrade cypress test

* adds new configuration and runner

* fixes typos

* fixes typecheck issue

* fixes typo

* fixes command

* fixes typo

* fixes consistency

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 10:55:42 +02:00
Matthias Wilhelm b589fe5bd2
[Discover] Fix multiline display in classic table (#103499)
* Restore CSS that broke multiline display

* Add functional test
2021-07-08 10:49:51 +02:00
Tim Roes b5e22c9327
Lower Kibana app bundle limits (#104688) 2021-07-08 10:39:54 +02:00
Frank Hassanabad 6e2128500e
[Security Solutions] Fixes bug with the filter query compatibility for transforms (#104559)
## Summary

* Fixes bug with the filter query compatibility to allow multiple object types and match all
* Adds unit tests for the file
* Fixes up the README.md a bit
* Adds more unit tests to the utils folder we didn't have before
* Adds more JSDocs

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated
2021-07-07 21:04:07 -06:00
Marshall Main 2c6801e698
[RAC] Add mapping update logic to RuleDataClient (#102586)
* Add component template versioning to RuleDataClient

* Add versioning for index templates

* Address PR comments, add error handling inside rolloverAliasIfNeeded

* Fix security alerts index name, rollover func param, more robust rollover logic

* Add empty mapping check to createOrUpdateIndexTemplate

* Fix error path in createWriteTargetIfNeeded to suppress resource_already_exists_exception

* Add code comments around rollover logic

* Replace numeric versions with semver

* Use optional chaining operator to fetch current write index mapping

* Fix template version number

* Move mapping updates to plugin startup, remove dependency on component versions

* Undo changes to lifecycle and persistance rule type factories

* Remove test code

* Simplify race mitigation logic

* Remove outdated comment

* Add unit tests, log unexpected errors instead of rethrowing

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-07 22:43:31 -04:00
Clint Andrew Hall cc24680b2e
Fix import workpad (#104722) 2021-07-07 21:02:44 -04:00
Clint Andrew Hall dc81d13008
[canvas] Fix Storybook service decorator (#104750) 2021-07-07 20:39:35 -04:00
Ross Wolf 85c93b84e4
[Detection Rules] Add 7.14 rules (#104772) 2021-07-07 19:58:20 -04:00
Constance dea450c5c4
[Enterprise Search] Fix beta notification in sidebar (#104763)
* Fix beta notification to use flex instead of absolute positioning

- probably should have done that from the start

* Remove now-unnecessary `betaNotification*` classes/wrappers
2021-07-07 18:49:26 -04:00
Constance 7af3be0655
Fix engine routes that are meta engine or non-meta-engine specific (#104757)
- to include conditionals in their routing

- this matches their nav link behavior - we should have checks in routes as well just in case
2021-07-07 17:51:28 -04:00
Zacqary Adam Xeper b911369485
[Fleet] Fix policy revision number getting bumped for no reason (#104696)
* [Fleet] Fix policy revision number getting bumped for no reason

* Add test for comparing preconfig policy to current
2021-07-07 17:23:56 -04:00
Peter Pisljar 5aa8a0a818
persistable state migrations (#103680) 2021-07-07 22:42:16 +02:00
Nicolas Chaulet 29020c1200
[Fleet] Fix add agent in the package policy table (#104749) 2021-07-07 16:37:18 -04:00
gchaps e92892a174
[DOCS] Creates separate doc for security in production (#103973)
* [DOCS] Creates separate doc for security in production

* Use Kibana attribute

* Update CSP section

* Move SSL section to the top

This is the highest priority item for securing a production installation
of Kibana.

* Add section on using secure HTTP headers

* Write intro

* [DOCS] Fixes broken link and other minor edits

* [DOCS] Changes man to manipulator

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-07-07 13:19:28 -07:00
Pierre Gayvallet d64c3fb5be
[SO Migration] fix reindex race on multi-instance mode (#104516)
* fix reindex race condition

* fix some IT tests

* fix reindex cause detection

* add integration test

* update RFC

* review comments

* add integration test for isWriteBlockException
2021-07-07 22:10:37 +02:00
Kevin Logan 211a4634d8
[Security Solution] Update text in Endpoint Admin pages (#104649) 2021-07-07 14:15:53 -04:00
Jonathan Budzenski 94f87cdc37
[package testing] Decrease timeout to 2 hours (#104668)
Package testing on average takes slightly over an hour.  In error
cases where tests retry or a process hangs, it makes sense to keep this
timeout closer to the testing time.

Ref: https://kibana-ci.elastic.co/job/elastic+kibana+package-testing/
2021-07-07 14:15:33 -04:00
Justin Kambic 8daffb00f4
Fix background styling of waterfall chart sidebar tooltip. (#103997) 2021-07-07 14:11:30 -04:00
Kyle Pollich 7907b6ad45
[Fleet + Integrations UI] Integrations UI Cleanup (#104641)
* Remove Beta wording from Fleet messaging in ingestion tutorials

* Rename fleet feature registration to include integrations

* Pluralize + sentence case assets and expand dashboards by default

* Update global search from packages -> integrations

* Expand auth settings by default in package policy add agent flyout

* Update wording for various fleet modules

* Fix i18n

* Fix unit test

* Fix failing tests
2021-07-07 13:57:51 -04:00
Zacqary Adam Xeper e3b6c1f9c7
[Fleet] Link to download page of current stack version on Agent install instructions (#104494)
* [Fleet] Link to download page of current stack version

* Get Kibana version from semver function

* Fix jest
2021-07-07 12:54:24 -05:00
Scotty Bollinger b20669eaf3
[Workplace Search] Fix Media Type field preview is unformatted bug (#104684)
* Add mimeTypes util

* Properly format mimeTypes
2021-07-07 13:45:49 -04:00
Dima Arnautov d03922af50
[ML] add marker body (#104672) 2021-07-07 19:42:40 +02:00
Jonathan Budzenski 0b7eb3f85f
[plugin-helpers] Fix dependency resolution (#104556)
This builds on the changes introduced in #104512, fixing dependency
resolution for the plugin-helpers CLI.  Instead of building a plugin in
isolation, this performs plugin discovery and filters the optimizer
lisst down to the requested plugin.

Testing
1) `cd examples/bfetch_explorer`
1) `node ../../scripts/plugin_helpers build --kibana-version=8.0.0-SNAPSHOT`
2021-07-07 12:40:58 -05:00
Nicolas Chaulet a6172a87ed
[Fleet] Do not display nunber of active for agent status filter (#104681) 2021-07-07 13:31:01 -04:00
Ece Özalp efa0476192
[CTI] ensures isThreatIntelModuleEnabled query for Overview page is made only once (#104523) 2021-07-07 13:18:57 -04:00
Nathan Reese de9ba92340
[maps] fix radius label contrast (#104182)
* [maps] fix radius label contrast

* Update x-pack/plugins/maps/public/connected_components/mb_map/draw_control/draw_control.tsx

Co-authored-by: Elizabet Oliveira <elizabet.oliveira@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elizabet Oliveira <elizabet.oliveira@elastic.co>
2021-07-07 11:14:44 -06:00
Catherine Liu 9da40305e7
[Canvas] Refactor fullscreen component (#104554) 2021-07-07 09:50:48 -07:00
gchaps d1b58d8d63
Update index.asciidoc (#104677) 2021-07-07 09:28:45 -07:00
Mikhail Shustov e01e682917
Add execution context service (#102039)
* add execution context service on the server-side

* integrate execution context service into http service

* add integration tests for execution context + http server

* update core code

* update integration tests

* update settings docs

* add execution context test plugin

* add a client-side test

* remove requestId from execution context

* add execution context service for the client side

* expose execution context service to plugins

* add execution context service for the server-side

* update http service

* update elasticsearch service

* move integration tests from http to execution_context service

* integrate in es client

* expose to plugins

* refactor functional tests

* remove x-opaque-id from create_cluster tests

* update test plugin package.json

* fix type errors in the test mocks

* fix elasticsearch service tests

* add escaping to support non-ascii symbols in description field

* improve test coverage

* update docs

* remove unnecessary import

* update docs

* Apply suggestions from code review

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>

* address comments

* remove execution context cleanup

* add option to disable execution_context service on the server side

* put x-opaque-id test back

* put tests back

* add header size limitation to the server side as well

* fix integration tests

* address comments

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-07 17:46:35 +02:00
Scotty Bollinger 979c6e8031
[Workplace Search] Refactor OAuth permissions modal to be a conditional heading (#104323)
* Rename constants

* Refactor to use alternate heading instead of modal

* Fix i18n order

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-07 10:09:55 -05:00
Sergi Massaneda 1c0dbea7ae
[Security] Add description component key (#104603)
* detections empty timelines crash patch

* cleaning unnecesary key

* bring description key back to force rerender
2021-07-07 16:46:51 +02:00
Janeen Mikell-Straughn 9aa3280c86
[DOCS] Elastic Sec Overview (Fixing Image) (#104529)
Co-authored-by: lcawl <lcawley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-07 09:58:09 -04:00
Anton Dosov 44d4d2398b
[Index Patterns] Use deprecation api for scripted fields (#100781) 2021-07-07 15:29:29 +02:00