Commit graph

19204 commits

Author SHA1 Message Date
Nathan Reese 84e42e42bc
[vega] fix vega map validation errors crashing vega (#112700)
* [vega] fix vega map validation errors crashing vega

* eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-22 07:17:53 -06:00
Rudolf Meijering 68fb9f6d84
Rename REINDEX_SOURCE_TO_TEMP_INDEX to REINDEX_SOURCE_TO_TEMP_TRANSFORM (#112727) 2021-09-22 15:12:18 +02:00
Rudolf Meijering e39a9d495b
Fix unhandled promise rejection in socket tests (#112806) 2021-09-22 09:04:58 -04:00
Matthew Kime 525d3a5920
[data views] remove some any instances from service (#112632)
* remove some any instances from data view

* lint fix

* simplify scripted field type
2021-09-22 07:04:15 -05:00
Peter Pisljar 3907d53df5
persistable state docs (#105202) 2021-09-22 13:22:38 +02:00
Stratoula Kalafateli 9b410ce544
Fixes bug with nested terms, one with other bucket and the other disabled (#112636) 2021-09-22 11:21:53 +03:00
Marco Liberati 914f2b7429
🔧 Make Timelion server send error details to client (#112663) 2021-09-22 10:14:43 +02:00
Diana Derevyankina abdb7a4c49
[TSVB] Disables the input string mode (#110571)
* [TSVB] Remove the input string mode

* Fix some tests

* Add some functional tests and fix failing CI

* Update telemetry mappings

* Rename useStringIndices to allowStringIndices, move it from TSVB to Data constants and refactor test

* Apply text suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Apply formatting and remove unused translations

* Fix labels

* Remove unused import

* Move popover toggling  to checkIndexPatternSelectionModeSwitchIsEnabled function to prevent flakiness

* Update some visual_builder_page functions

* Remove accidentally added newlines

* Move TSVB ui settings to constants, remove tooltip and update popover text

* Handle the case of editing advanced settings is restricted

* Add requiresPageReload to UI setting and condition for the case the setting is already enabled

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-09-22 11:13:53 +03:00
Christiane (Tina) Heiligers 8cf0efe2f1
Changes edit view to json read-only view (#112034)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-21 16:10:53 -04:00
Jean-Louis Leysens 25bf795099
[Reporting/Discover/Search Sessions] Only use relative time filter when generating share data (#112588)
* only use relative time filter when generating share data

* Added comment on absolute time filter.

Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>

* improve discover search session relative time range test

* update discover tests and types for passing in data plugin to getSharingData function

* updated reporting to pass in data plugin to getSharingData, also updates jest tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-09-21 12:42:32 -07:00
Pierre Gayvallet 65ec86da66
handle source index without any mappings (#112664) 2021-09-21 20:19:34 +02:00
Devon Thomson 5408a3e301
[Dashboard] Retain Viewmode State in Session (#112302)
* Made dashboard retain viewmode state in session. This means filters and query will be kept over reloads and navigations
2021-09-21 11:45:56 -06:00
Devon Thomson 126b87bd55
[Dashboard] [Visualize] Add Search to Legacy Redirect (#112365)
added search to legacy redirect URL
2021-09-21 11:39:23 -06:00
Tyler Smalley c76082e006 Fix eslint error
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-21 09:44:56 -07:00
James Rodewig fd0f42386f
Update index settings link for Snapshot and Restore (#112597)
Updates the docs help link for index settings  in the Snapshot and Restore feature.

Currently, the link points to https://www.elastic.co/guide/en/elasticsearch/reference/7.14/snapshots-restore-snapshot.html#change-index-settings-during-restore, which primarily documents related restore snapshot API parameters.

With elastic/elasticsearch#76929, this section was removed. The new link covers all available index settings, which is a bit more relevant.
2021-09-21 12:03:23 -04:00
Matthew Kime 119c742185
Data views - saved object client use resolve instead of get (#108637)
* so client - use resolve instead of get

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-21 09:41:47 -05:00
Clint Andrew Hall b1d6779d43
[fleet] Introduce Storybook to Fleet (#112611)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-21 08:23:13 -05:00
Stratoula Kalafateli 60500c20af
Move timeseries to vis_types folder (#112228)
* Move timeseries to vis_types folder

* Fix jest

* Fix types

* Fix more types

* Fix types

* fix jest tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-21 13:45:49 +03:00
Pierre Gayvallet bb4f1360a8
remove last usages of plugin async lifecycles (#112111)
* remove last usages of plugin async lifecycles

* fix contract type

* fix types. again.

* remove unused import
2021-09-21 10:34:57 +02:00
Pierre Gayvallet 221ee74c6b
[SOM] Add visibleInManagement option to management metadata (#112073)
* implement SavedObjectsTypeManagementDefinition.visibleInManagement

* update generated doc

* improve FTR tests

* fix FTR test
2021-09-21 10:30:30 +02:00
Jean-Louis Leysens 0af821aaf9
[kibana_react] Clean up any in public non-test files (#111261)
* first pass at any cleanup

* fix types on TableListView

* change generic constraint

* fix lint

* fix TS in no data card

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-21 10:16:29 +02:00
Jonathan Budzenski 1fb0982e00 fix prettier errors 2021-09-20 09:28:48 -05:00
Marco Liberati 5f994b1d9d
[Lens][Visualize] Align inspector header in Lens and Visualize (#112443)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-20 15:54:37 +02:00
Vadim Kibana 38f3f3f308
Remove any in embeddables (#110023)
* remove anys in embeddable

* fix typescript errors

* generate autogenerated docs

* Update src/plugins/embeddable/public/lib/reference_or_value_embeddable/types.ts

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-09-20 14:09:02 +02:00
Tyler Smalley 4681a80317
[DX] Upgrade prettier to v2.4.0 (#112359)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-19 22:34:30 -07:00
Mikhail Shustov 4a1a060f25
remove deprecated header support (#112505) 2021-09-18 15:53:00 +02:00
Rudolf Meijering 7040b47840
Re-enable & fix flaky test (#112260)
* Fixes #87968 Re-enable & fix flaky test

* Review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-18 15:52:36 +02:00
Yaroslav Kuznietsov c63fff99a8
[Canvas] TagCloud arguments. (#107729)
* Added arguments to Tagcloud at Canvas.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-17 07:34:15 -04:00
Greg Thompson 160abb8e05
Treat react-beautiful-dnd as .essentialAnimation in accessibility:disableAnimations contexts (#112429)
* react-beautiful-dnd with disableAnimations

* add comment
2021-09-16 19:05:49 -05:00
Joe Portner 1ca8771d67
Add SavedObjectsClient.bulkResolve (#112025) 2021-09-16 17:12:17 -04:00
Jonathan Budzenski d6bf274286
Remove grunt (#111882)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-16 15:24:42 -04:00
Spencer eaf70a0b4e
[kbn/ui-shared-deps] split into two packages (#110558)
* [kbn/ui-shared-deps] split into two packages

* fix asset categorizer

* update snapshots

* reference npm dll from optimizer

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-16 12:06:46 -07:00
Vadim Kibana 708e235457
Redirect endpoint compression (#111471)
* add ability to lz-encode redirect url params

* move redirect param utils to /common

* improve error message

* add getRedirectUrl() to locators

* wire in version into locator redirect method

* make redirect url default to compressed

* fix typescript errors

* pass throuh initialization context to share plugin

* fix test mocks

* improve locators mocks usage

* fix typescript types

* use getRedirectUrl in example plugin

* make redirect url options optional

* add locator tests

* deprecate geturl

* load redirect app UI on demand
2021-09-16 18:45:24 +02:00
Brian Seeders 2c9484b266
Fix .buildkite casing ignore 2021-09-16 11:47:06 -04:00
Thom Heymann 117e076200
Added product header check (#112180)
* Added product header check

* Added suggestions from code review
2021-09-16 16:14:26 +01:00
Matthew Kime 3c0e5e5876
[data views] rename files from index patterns to data view (#112047)
* rename directories

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-16 06:56:59 -05:00
Yaroslav Kuznietsov dbcc75b0dc
[Canvas] Fixes Error 500 on the workpad update. (#111683)
* Fixed bug with treating null argument as the expression function.

* Added a test for checking if a null argument is processeded correctly.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-16 06:58:03 -04:00
Diana Derevyankina 410a0ac907
Fix and re-enable Vega test to be consistent with development/CI (#110971)
* Fix and re-enable Vega test to be consistent with development/CI

* Remove skip comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-16 11:42:02 +03:00
Jonathan Budzenski 17a4186ce8
[timelion] Move grammar to package (#111881)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-15 20:22:15 -04:00
Cauê Marcondes 2711e7b1cc
Removing old e2e (#112170)
* removing old e2e

* removing e2e

* removing e2e

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-15 16:33:54 -04:00
Matthew Kime ce2aac3763
convert deep imports to top level imports (#112199) 2021-09-15 11:46:31 -05:00
Matthew Kime 5ba4f7115d
convert deep imports to top level imports (#112202)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-15 11:29:23 -05:00
Stratoula Kalafateli 8f70030386
[Lens] [TSVB] Fixes the brushing of the last bucket for timeseries visualizations (#112068)
* Enable allowBrushingLastHistogramBucket for timeseries visualizations

* Cleanup
2021-09-15 15:20:44 +03:00
Tim Roes fa1e9a6aee
Change missing fields label (#112232) 2021-09-15 14:16:45 +02:00
Stratoula Kalafateli 34d7f68375
[Pie] Loads the no results screen if all slices have zero value (#111931)
* [Pie] Loads the no results screen if all slices have zero value

* Add a functional test

* Apply PR changes

* Display no results component if the chart metric has negative values

* Nits

* Apply some of the PR comments

* Change the negative values text

* Update src/plugins/vis_types/pie/public/pie_component.test.tsx

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

* Update src/plugins/vis_types/pie/public/pie_component.test.tsx

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-09-15 15:11:09 +03:00
Matthew Kime 51b2d53bd9
[discover] convert deep imports to top level imports for 'index_pattern' items (#112208)
* convert deep imports to top level imports

* fix test
2021-09-15 07:09:23 -05:00
Stratoula Kalafateli e20f530762
Move to vis_types folder part 3 (#112084)
* Move to vis_types folder part 3

* Fix jest tests
2021-09-15 14:46:48 +03:00
Tim Roes a4b28a61ef
Better formatting document summary with images (#111987)
* Better formatting document summary with images

* Improve styling

* Address review feedback
2021-09-15 12:06:46 +02:00
Matthias Wilhelm 13de9f598e
[Discover] Improve sidebar performance by memoizing (#111843)
* Improve sidebar editField function by useCallback

* Reduce re-renderings
2021-09-15 12:00:25 +02:00
Thom Heymann db5cf95724
Verification code CLI (#111707)
* Add verification code CLI

* Added suggestion from code review

* Fixed types

* Added extra test

* Added CLI dist scripts

* Fixed typo

* Write code to data instead of config directory
2021-09-14 21:58:25 +01:00
Spencer 2976f33618
[eslint] add rule to forbid async forEach bodies (#111637)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-14 13:20:53 -07:00
Rudolf Meijering 9b9286fc57
Remove executionLog to reduce memory consumption (#111911)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 19:20:10 +02:00
Pierre Gayvallet 138371e50c
Add deprecation warning when unknown SO types are present (#111268)
* Add deprecation warning when unknown types are present

* fix and add service tests

* remove export

* plug deprecation route

* add integration test for new route

* add unit test for getIndexForType

* add unit tests

* improve deprecation messages

* add FTR test

* fix things due to merge

* change the name of the deprecation provider

* improve message

* improve message again
2021-09-14 15:55:30 +02:00
Ahmad Bamieh b74f154903
[core.metrics] Add support for multiple processes in ops metrics & stats API; deprecate process field (#109820)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 16:50:45 +03:00
Tim Roes 4bca9b05bb
Fix wrong timepicker range when brushing (#111989) 2021-09-14 15:47:43 +02:00
Jean-Louis Leysens 4e4afc7503
[Discover/Reporting] Fix export that does not contain relative time filter (#110459)
* version 1 of fix: we set the time range on the search source at CSV generation time

* updated jest tests and updated API for getSharingData

* make time range optional for getSharingData

* pivot to updating "getTime" functionality by introducing a new flag

* update jest snapshots

* update comment

* refactored coerceToAbsoluteTime -> coerceRelativeTimeToAbsoluteTime and updated behaviour to be more specific

* fix jest test

* do not change createFilter API, rather create new createRelativeFilter API, also only use this in one place in discover

* update jest tests

* update mock

* update jest test mock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 14:40:06 +02:00
Uladzislau Lasitsa 6e7e5155f5
[TSVB] Doesn't work correctly with pipeline aggregations in "entire time range" mode (#105073)
* Use date_histogram instead of auto_date_histogram in pipeline aggregations

* Fix ci

* Fix eslint

* start disable parent pipeline aggs and show error

* Fix CI

* Fix eslint

* Fix CI

* Add functional tests

* Some fixes

* Fix lint

* Use agg_utils

* Fix lint

* Fix text

* Fix lint

* Fix tests

* Fixed condition

* Fix math aggregation

* math should pass panel type as prop

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 14:38:51 +03:00
Stratoula Kalafateli 8a4355b353
[Visualize] Removes dimming opacity setting (#111704)
* [Visualize] Removes the dimming opacity setting

* Remove from docs

* Fix 18n

* Address PR comments

* More cleaning

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 12:36:08 +03:00
Stratoula Kalafateli 182533f565
[Datatable] Removes the old implementation (#111339)
* [Datatable] Removes the angular implementation

* Fix i18n errors

* Fix types

* Remove unecessary funtional tests

* Fix documentation

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 11:57:42 +03:00
Lukas Olson fbeefedd98
Make saved queries share-capable (#111462)
* Use resolve instead of get for saved query service

* Update tests

* Update src/plugins/data/public/query/saved_query/saved_query_service.ts

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* Revert step 4

* Make saved queries share-capable

* Fix test

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-09-13 21:17:43 -04:00
Lukas Olson a8f9468fe8
Use savedObjectsClient.resolve in saved query service (#111229)
* Use resolve instead of get for saved query service

* Update tests

* Update src/plugins/data/public/query/saved_query/saved_query_service.ts

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* Revert step 4

* Fix test

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-09-13 16:00:27 -07:00
Michael Marcialis 4dc72140be
Account for presence of top banner when EuiDataGrid and Canvas are full screen (#111038)
* account for banners when data grid is full screen

* account for banner when canvas is full screen

* change height per feedback

* add withKibana

* rm withKibana; move vars out of Fullscreen

* Use hasHeaderBanner$

* add banner height var comments

* fix ts error

Co-authored-by: Catherine Liu <catherine.liu@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 11:58:01 -04:00
Matthew Kime 3fd7dbe455
[data views] allow fields that start with an underscore in the field list (#111238)
* stop filtering out fields that start with underscore
2021-09-13 10:45:34 -05:00
Anton Dosov d6badd8715
[FieldFormats] Reduce any usage (#111530) 2021-09-13 17:01:51 +02:00
Uladzislau Lasitsa bfe1c556d0
[TSVB] Shows wrong labels when we get only one series after splitting (#111736)
* use correct styles when after split we have only one series

* Fix lint

* Fix comments

* remove unused styles

* Update _vis_with_splits.scss

* Fix lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 13:30:08 +03:00
Pierre Gayvallet 200efcaaa3
Add deprecation warning when inline scripting is disabled (#111865)
* initial implementation

* extract isScriptingDisabled to own file

* add unit tests for scripting deprecation

* add unit tests
2021-09-13 12:15:27 +02:00
Diana Derevyankina 33cfc4183a
[TSVB] Support custom field format (#101245)
* [TSVB] Support custom field format

Add format_label response processor for series vis data and bucket key formatting to process_bucket for table vis data

* Add ignore_field_formatting for series to support value formatting for all panel types except markdown

* Fix type issue for visData and rename getCustomFieldFormatter to createCustomFieldFormatter

* Update vis.test to cover custom field formats logic and add a migration script to set ignore_field_formatting to true for the series

* Move createCustomFieldFormatter to a separate file, make formatting respect only active metrics field name, refactor vis files and fix label formatting only for grouped by terms series

* Remove services, add getFieldFormatsService  to use it in format_label and get_table_data, replace getCustomFieldFormatter with createCustomFieldFormatter

* Update plugin.ts

* Update start for plugin.ts

* Add formatting for annotations and markdown values

* Refactor some code

* Update some naming and conditions

* Fix formatting of data type labels

* In process_bucket fix case for no getFieldFormatByName

* Add field formatting functional tests for all panel types

* Update tests to make them run correctly for firefox

* Update _tsvb_markdown test setup

* Move series ignoreFieldFormatting check to a separate file, change convertSeriesToVars signature, update migration script and refactor a bit functional tests

* Fix type check for timeseries_visualization.tsx

* Update migrations.js test expected version to 7.15

* Fix tests in _tsvb_chart.ts

* Fix merge conflict remove process_bucket.js

* Update process_bucket.test.ts

* Fix markdown labels formatting

* Add ignore_field_formatting for annotations, enhanced migration script to set that flag to true, refactor data_format_picker

* Fix migration script and add disabling for ignore component when string index pattern is used

* Add supporting URL and color formatters in tsvb table

* Fix eslint

* Remove ignore formatting component, add field formatting option to TSVB data format picker and make it default, remove migration script, update tests and refactor some files

* Fix failing tests, refactor create_field_formatter and add test to it, update some other files

* Fix series formatting for top hit when it has not numeric result

* Handle no fieldFormatMap case for table/vis.js

* Remove "Default" option form DataFormatPicker when index pattern is string, fix markdown variables issue and refactor some code

* Chore(TSVB): Replace aggregations lookup with map

* Fix types, update test expected data and remove unused translations

* Fix i18 check and useEffect in agg.tsx

* Handle aggregations field formatting case

* Fix agg_utils, vis and check_if_numeric_metric tests

* Correct typo and refactor condition in std_metric

* Fix type check

* Get rid of IFieldType

* Add URL and color formatting for topN and metric tabs, fix setting initial custom formatter and switching formatter in agg.tsx

* Update tsvb.asciidoc

* Remove link icon from Date format field help text, update click logic for top N in case of custom field format and fix CI

* Remove unused import

* Revert top N bar extra logic for click

* Refactor some code in agg.tsx

* Add URL and color formatting to Gauge

* Fix bug with terms formatting, refactor some code, update create_field_formatter

* Add comments to _gauge.scss

* Remove unnecessary await

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
2021-09-13 11:51:32 +03:00
Marta Bondyra f9f90705f2
[Graph] Make Graph saved object share-capable (#111404)
* [graph] Make Graph saved object share-capable

Step 4 of https://www.elastic.co/guide/en/kibana/master/sharing-saved-objects.html#sharing-saved-objects-faq-changing-object-ids

* bump migration version to fix the test

* test

* Revert "bump migration version to fix the test"

This reverts commit 04d2f49386.

* Revert "test"

This reverts commit 7b0a74d431.

* Fix Core migration integration tests

The existing tests incorrectly asserted an object's `migrationVersion`
solely based on the registered type's `migration` field; in reality, the
`convertToMultiNamespaceTypeVersion` field is also used when determining
an object's `migrationVersion`. This commit simply updates the test to
reflect that.

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 08:42:07 +02:00
Ahmad Bamieh 13560c01fc
[Usage collection] refactor cloud detector collector (#110439) 2021-09-10 15:42:24 -04:00
Oliver Gupte 5fbc1d4c27
[APM] Removes the beta label from APM tutorial (#111499) (#111828) 2021-09-10 10:38:10 -04:00
Nathan Reese a779ea3818
[Maps] Remove * exports (#111003)
* [Maps] Remove * exports

* update extraPublicDirs

* clean up some more imports

* tslint

* eslint

* eslint

* fix import in functional tests

* eslint

* eslint take 2

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-10 06:16:37 -06:00
Uladzislau Lasitsa 70090e326c
Timelion App removal (#110255)
* Remove timelion app and stuff which related to it

* Fix CI

* Fix lint

* Fix tests

* Fix tests

* Fis tests

* Fix some comments

* Clean up

* fix CI

* fix some comments

* Fix deprecation examples

* Return `enabled` property in config for timelion vis

* Remove unused angular lib

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-09-10 14:53:07 +03:00
Matthias Wilhelm 53ba2c42df
[Discover] Set ownfocus to false when displaying the document flyout (#108646) 2021-09-10 11:52:36 +02:00
Pierre Gayvallet c78121ce5a
[SOM] Improve warning when trying to delete hidden objects (#111698)
* improve warning message when trying to delete hidden saved objects

* improve message

* fix pluralize

* fix title
2021-09-10 10:51:57 +02:00
Tim Roes b9f3fceea5
Improve async loading doc tabs (#111582) 2021-09-10 10:37:02 +02:00
Yulia Čech 544d4f6eaa
[Console] Added information about autocomplete definitions (#105112)
* [Console] Added information about autocomplete definitions to the README.md

* [Console] Updated README.md

* Added code review suggestions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-10 09:46:14 +02:00
Jonathan Budzenski 163fa7d2e0
[build] Add cloud docker images (#107949)
Co-authored-by: Przemysław Hejman <przemyslaw.hejman@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 20:40:09 -05:00
Jonathan Budzenski 5763a2f25a
[config] Remove deprecated environment variables CONFIG_PATH and DATA_PATH (#111535) 2021-09-09 19:31:46 -04:00
Greg Thompson 6803fb362a
Upgrade EUI to v37.6.0 (#110998)
* eui to 37.6.0

* update snapshots

* grid cell text

* update snapshot

* Revert "grid cell text"

This reverts commit 1721e83939.

* grid cell text

* update tsvb baseline

* update area_chart baseline

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 14:54:30 -05:00
Jonathan Budzenski 3f83259db7
[config] Deprecate KIBANA_PATH_CONF in favor of KBN_PATH_CONF (#111550) 2021-09-09 14:22:48 -05:00
Nick Peihl 4b60458c4b
[Maps] Remove deprecated maps.manifestServiceUrl configuration (#111656)
* Remove deprecated maps.manifestServiceUrl

* Remove unused catalogue route

* Remove unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 11:37:57 -07:00
Lisa Cawley 4d933c7d98
Replace hard-coded links in infra alerting (#111072) 2021-09-09 11:27:29 -07:00
István Zoltán Szabó cac4957ef2
[APM] Changes link version to master in APM links. (#111685)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 15:10:12 +02:00
Ahmad Bamieh b001830d58
[Deprecations service] Expose level field to config deprecations (#111516) 2021-09-09 08:59:44 -04:00
Dmitry Tomashevich 9792c1079e
[Discover] Fix pagination when applying filter (#110763)
* [Discover] fix pagination when applying filter

* [Discover] refactoring to forward ref usage

* [Discover] remove console log debug

* [Discover] hide pagination on empty result

* [Discover] add usePager test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 15:48:20 +03:00
Dzmitry Lemechko b324ca3115
[jest] update config files to get coverage per plugin (#111299)
* [jest] update config files to get coverage per plugin

* [docs] add details about plugin coverage collection

* fix path for newsfeed jest config

* fix lint error

* update documentation

* fix lint errors again

* update doc

* fix another lint error

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* [kibana_legacy] fix path

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 08:14:56 +02:00
Rudolf Meijering 5464af6923
legacy dashboards import/export API: deprecation logs and usage data (#111283)
* Move legacy dashboards API to core and adds usage data

* More legacy_export plugin removal

* Log a warning for deprecated dashboard import/export API

* Review comments
2021-09-08 16:15:52 -04:00
Jonathan Budzenski f2c00fdd5a
[os/kibana.yml] Use new logger (#111192)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 14:43:34 -05:00
Brian Seeders 7971283bbe
[CI] Buildkite ES Snapshots Pipelines / attempt 2 (#111565) 2021-09-08 14:31:04 -04:00
Matthias Wilhelm 284bc6663c
[Discover] Cleanup legacy code fragments (#110646) 2021-09-08 19:55:40 +02:00
Andrew Goldstein 99ee803459
[Security Solution] Enable schema-driven sorting descriptions in column headers (#111232)
## Summary

This PR resolves issue <https://github.com/elastic/kibana/issues/110041> reported by @snide to enable schema-driven sorting descriptions in column headers.

@chandlerprall recommends obtaining a **+1** from the Machine Learning and Observability solutions, because the fix updates an `i18n` constant in Kibana common to all consumers of `EuiDataGrid`.

## Details

Thanks @chandlerprall for paring on this!

The Alerts table, `Host > Events`, and other `EuiDataGrid`-based views in the Security Solution make use of the default [`EuiDataGrid` schemas](https://elastic.github.io/eui/#/tabular-content/data-grid-schemas-and-popovers).

The default schemas enable `EuiDataGrid` to automatically display, for example, `Old-New` and `New-Old` sorting descriptions for datetime fields, as opposed to generic `A-Z` and `Z-A` descriptions.

The following (shared) Kibana `i18n` constant in `src/core/public/i18n/i18n_eui_mapping.tsx` is expected to be rendered a `string` at runtime:

```ts
    'euiColumnActions.sort': ({ schemaLabel }: EuiValues) =>
      i18n.translate('core.euiColumnActions.sort', {
        defaultMessage: 'Sort {schemaLabel}',
        values: { schemaLabel },
      }),
```

But the constant was rendered in `EuiDataGrid` column headers as `[object Object]` when schemas were enabled, as shown in the screenshot below:

![column-header-object-object](https://user-images.githubusercontent.com/4459398/132079843-a8b0f5e5-9d47-4816-8baa-e29577511bf1.png)

_Above: The `sortTextAsc/Desc` text was rendered as `[object Object]`_

The temporary workaround described by [#110041](https://github.com/elastic/kibana/issues/110041) ensured that `Sort A-Z` and `Sort Z-A` labels were always displayed (in lieu of `[object Object]`), as shown in the screenshot below:

![image](https://user-images.githubusercontent.com/324519/130789326-bfe67cae-e4f7-469a-9b57-320cbf733cc8.png)

_Above: `Sort A-Z` and `Sort Z-A` labels were always displayed as a workaround_

The fix in this PR updates the following (shared) Kibana `i18n` constant in `src/core/public/i18n/i18n_eui_mapping.tsx` to use a `FormattedMessage`:

```ts
    'euiColumnActions.sort': ({ schemaLabel }: EuiValues) => (
      <FormattedMessage
        id="core.euiColumnActions.sort"
        defaultMessage="Sort {schemaLabel}"
        values={{ schemaLabel }}
      />
    ),
```

, which ensures a schema-specific sorting label is displayed as-expected.

It also removes the workaround, as shown in the animated gif below:

![after](https://user-images.githubusercontent.com/4459398/132080352-1ee41a7e-8884-45ad-ae3c-daa9a0127aac.gif)

_Above: Schema-specific sorting descriptions are displayed for `datetime`, `text`, and `numeric` column headers_
2021-09-08 11:54:39 -06:00
Lisa Cawley e16736416a
Replace hard-coded doc links in uptime (#111075) 2021-09-08 09:27:08 -07:00
Stratoula Kalafateli 6f4d8a52dc
[Vislib] Removes old implementation of xy chart (#110786)
* [Vislib] Remove xy chart

* Update i18n

* Remove uncecessary file

* Fix types

* More fixes

* Fix functional tests part 1

* Fix functional tests part 2

* Fix bug with shard-delay

* Fix functional tests part 3

* fix functional tests part4

* Fix async_serch FT

* Fix functional dashboard async test

* REplace screenshot area chart image

* Cleanup vislib from xy charts

* Remove unused fixtures

* Address PR comments

* Remove miaou :D

* Address PR comments

* Fix i18n

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 18:35:51 +03:00
Dmitry Tomashevich c94c4e653a
[Discover] Fix opening the same saved search (#111127)
* [Discover] fix opening the same saved search

* [Discover] fix functional test

* [Discover] apply suggestion

* [Discover] apply suggestion

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 17:33:29 +03:00
Alexey Antonov d717521ad0
[TSVB] Fix pinned filters not showing in TSVB (#109223)
Closes: #17025

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 17:29:02 +03:00
Devon Thomson 70632e2a9e
[Dashboard] Retain Tags on Quicksave (#111015)
* fixed missing tags api when loading saved dashboard. Added tests
2021-09-07 14:20:15 -04:00
Nathan Reese daf860c701
[sample data] update web log geo.src field to match country code of geo.coordinates (#110885)
* [sample data] update web log geo.src field to match country code of geo.coordinates

* fix functional tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 10:40:46 -06:00
Jonathan Budzenski 173bb47563
[build] Remove empty optimize directory (#111393)
This folder is no longer used.
2021-09-07 12:19:35 -04:00
Dmitry Tomashevich ca79fb1d1e
[Discover] Fix hide chart button (#110779)
* [Discover] fix hide chart button

* [Discover] update tests

* [Discover] fix functional

* [Discover] remove hideChart from the URL it is not true

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 18:24:58 +03:00
Vadim Kibana 95b88cc2fe
add descriptions to plugin manifests (#111306) 2021-09-07 17:24:02 +02:00
Vadim Kibana 05d9bc53fb
Remove any in ui_actions_enhanced (#110018) 2021-09-07 17:23:30 +02:00
Christiane (Tina) Heiligers b1a81bb5e0
Remove unused legacy import code (#111071)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 07:01:35 -07:00
Pierre Gayvallet dec6125402
add hasHeaderBanner$ API to chrome (#111248)
* add hasHeaderBanner$ API to chrome

* update generated doc
2021-09-07 15:54:26 +02:00
Rudolf Meijering cf45c39e0f
Fix flaky migrations tests (#111365) 2021-09-07 09:49:51 -04:00
Søren Louv-Jansen 2cda9a9302
[APM] Deprecate apm_oss.indexPattern config option (#111133)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 13:26:52 +02:00
Matthias Wilhelm 1a1ae6c1bc
[Discover] Fix infinite scrolling of classic table (#110944) 2021-09-07 10:57:01 +02:00
Aleh Zasypkin 1eed669095
Make interactive setup work properly in Docker container. (#110629) 2021-09-07 10:22:58 +02:00
István Zoltán Szabó 07f49853cd
[APM] Uses doc link service instead of ElasticDocsLink for linking custom links (#111149) 2021-09-07 08:33:42 +02:00
Thom Heymann 219ff6c37b
Add verification code protection (#110856)
* Add verification code protection

* Fix bug where verification code could be less than 6 digits

* Added suggestions from code review

* fix type errors

* Added suggestions from code review
2021-09-06 20:04:38 +01:00
István Zoltán Szabó 705fe22088
[APM] Uses doc link service instead of ElasticDocsLink for linking dropped transaction spans (#110964) 2021-09-06 17:15:00 +02:00
István Zoltán Szabó 4eefa8531c
[APM] Uses doc link service instead of ElasticDocsLink for linking upgrading info (#111155) 2021-09-06 14:52:46 +02:00
Jean-Louis Leysens 02a6eeb69f
[Canvas/Reporting] Migrate Canvas to V2 reporting (#109860)
* first iteration of canvas reporting using v2 PDF generator

* updated jest test

* made v2 report URLs compatible with spaces and simplified some code

* remove non-existent import

* updated import of lib

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 13:44:47 +02:00
István Zoltán Szabó 00fac96d37
[APM] Uses doc link service instead of ElasticDocsLink for linking metadata (#110992) 2021-09-06 12:20:35 +02:00
Yaroslav Kuznietsov eef094bafb
[Canvas] TagCloud (#106858)
* Added `tagCloud` to canvas.

* Added `icon` to the `tagCloud` element.

* Added column name support at `tag_cloud`.

* Added condition to `vis_dimension` not to pass invalid index.

Added check of accessor index, if such column exists at vis_dimension.
Removed checks of column existance from TagCloudChart.
Added test for accessing data by column name in addition to a column number.
Updated tag_cloud element in Canvas.
Fixed types. Removed almost all `any` and `as` types.

* Added test suites for `vis_dimension` function.

* Added tests for DatatableColumn accessors at tag_cloud_fn and to_ast.

* Refactored metrics, tagcloud and tests.

Added valid functional tests to metrics and tag_cloud.
Fixed types of metrics_vis.
Added handling of empty data at tag_cloud renderer.

* Added storybook ( still doesn't work ).

* Fixed some mistakes.

* Added working storybook with mocks.

* Added clear storybook for tag_cloud_vis_renderer.

* Updated the location of vis_dimension test after movement of the function.

* Fixed unused type.

* Fixed tests and added handling of the column name at `visualizations/**/*/prepare_log_table.ts`

* Reduced the complexity of checking the accessor at `tag_cloud_chart.tsx`

* Added comments at unclear places of code.

* Added the logic for disabling elements for renderers from disabled plugins.

* removed garbage from `kibana.yml`.

* Fixed element_strings.test error.

* Made changes, based on nits.

* Fixed mistake.

* Removed `disabled` flag for `expression_*` plugins.

* recovered lost comments at the unclear places.

* removed dead code.

* fixed test errors.

* Fixed test error, I hope.

* fixed more tests.

* fixed code, based on nits.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 04:13:38 -04:00
Tiago Costa f955947d4e
skip flaky suite (#110970) 2021-09-06 01:10:52 +01:00
Tiago Costa 7c4e4f507b
chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule (#110620)
* chore(NA): replace babel config files by inline presets by default in the js_ts_transpiler rule

* chore(NA): update @kbn/ace build to exclude worker file

* chore(NA): remove config file support

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 21:17:46 +01:00
Michael Dokolin df43d253c8
[Expressions] Align renderMode with the embeddable viewMode (#110199)
* Add preview view mode to the embeddable
* Rename display render mode to view
* Extract no interactivity render mode to a separate flag
2021-09-03 19:10:29 +02:00
Tim Roes b6ab15e9f4
Remove kibana.defaultAppId setting (#109798)
* Remove kibana.defaultAppId setting

* Fix typings

* Remove plugin dependency

* Use proper navigation method to get to home

* Default route for home

* Address discover new routing code

* Make non existing /kibana URLs working

* Fix space awareness

* Remove documentation

* Remove the setting from docker file

* Make defaultRoute forward work properly

* Add forward_url tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 17:59:59 +02:00
Jean-Louis Leysens 1f06cafa19
[Reporting/Visualization] Migrate Visualize to V2 reporting (#110206)
* added initial version of locator

* removed unused params and added jest test

* updated functional test to expect PDF reports to be available when vis is new

* fix TS: remove unkown field

* added some docs and removed unused code

* AggsConfigOption -> AggsConfigSerialized

* moved locator to common

* fixed building of "create" path and updated test snapshots

* updated import

* update encoding behaviour

* added time range from timefilter to locator params request

* add index pattern and search id to URL params

* reading index pattern from search source if it is there for the locator

* remove "type" from locator params, update comments and test

* removed duplicate identifier

* remove unused type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 17:08:56 +02:00
Frank Hassanabad 9a459806ad
[Security Solutions][Detection Engine] Adds ability to ignore fields during alert indexing and a workaround for an EQL bug (#110927)
## Summary

Adds a workaround for EQL bug: https://github.com/elastic/elasticsearch/issues/77152
Adds the safety feature mentioned here: https://github.com/elastic/kibana/issues/110802

Adds the ability to ignore particular [fields](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html#search-fields-param) when the field is merged with [_source](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html#source-filtering). Also fixes an EQL bug where EQL is introducing the meta field of `_ignored` within the fields and causing documents to not be indexable when we merge with the fields from EQL. 

Alerting document creation uses the fields API to get [runtime field](https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html),  [constant keyword](https://www.elastic.co/guide/en/elasticsearch/reference/master/keyword.html#constant-keyword-field-type), etc... that are only available within the [fields API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html#search-fields-param) and then merges the field values not found within the `_source` document with the `_source` document and then finally indexes this merged document as an alert document.

This fix/ability is a "safety feature" in that if a problematic [runtime field](https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html), [constant keyword](https://www.elastic.co/guide/en/elasticsearch/reference/master/keyword.html#constant-keyword-field-type) is discovered or another bug along the stack we can set a `kibana.yml` key/value pair to ignore the problematic field.

This _WILL NOT_ remove problematic fields from the `_source` document. This will only ignore problematic constant keyword, runtime fields, aliases, or anything else found in the fields API that is causing merge issues.

This PR:
  * Adds a `alertIgnoreFields` `kibana.yml` array key with a default of an empty array if not specified. 
  * Plumbs the `alertIgnoreFields` through the stack and into the fields/_source merge strategies of `missingFields` and `allFields`
  * Adds a temporary `isEqlBug77152` where it hard codes an ignore of `_ignored` until the EQL problem is fixed and then we will remove the workaround
  * Adds unit tests
  * Adds e2e tests which covers the described use cases above.

The `alertIgnoreFields` key/value within `kibana.yml` if set should be an array of strings of each field you want to ignore. This can also contain regular expressions as long as they are of the form, `"/regex/"` in the array.

Example if you want to ignore fields that are problematic called "host.name" and then one in which you want to ignore all fields that start with "user." using a regular expression:

```yml
xpack.securitySolution.alertIgnoreFields: ['host.name', '/user\..*/']
``` 

Although there are e2e tests which exercise the use cases...

If you want to manual test the EQL bug fix you would add these documents in dev tools:

```json
# Delete and add a mapping with a small ignore_above.
DELETE eql-issue-ignore-fields-delme
PUT eql-issue-ignore-fields-delme
{
  "mappings" : {
    "dynamic": "strict",
    "properties" : {
      "@timestamp": {
        "type": "date"
      },
      "some_keyword" : {
        "ignore_above": 5, 
        "type" : "keyword"
      },
      "other_keyword" : {
        "ignore_above": 10, 
        "type" : "keyword"
      }
    }
  }
}

# Add a single document with one field that will be truncated and a second that will not.
PUT eql-issue-ignore-fields-delme/_doc/1
{
  "@timestamp": "2021-09-02T04:13:05.626Z",
  "some_keyword": "longer than normal",
  "other_keyword": "normal"
}
```

Then create an alert which queries everything from it:
<img width="1155" alt="Screen Shot 2021-09-01 at 10 15 06 PM" src="https://user-images.githubusercontent.com/1151048/131781042-faa424cf-65a5-4ebb-b801-3f188940c81d.png">

and ensure signals are created:
<img width="2214" alt="Screen Shot 2021-09-01 at 10 30 18 PM" src="https://user-images.githubusercontent.com/1151048/131782069-b9ab959c-f22d-44d5-baf0-561fe349c037.png">

To test the manual exclusions of any other problematic fields, create any index which has runtime fields or `constant keywords` but does not have anything within the `_source` document using dev tools. For example you can use `constant keyword` like so

```json
PUT constant-keywords-deleme
{
  "mappings": {
    "dynamic": "strict",
    "properties": {
      "@timestamp": {
        "type": "date"
      },
      "testing_ignored": {
        "properties": {
          "constant": {
            "type": "constant_keyword",
            "value": "constant_value"
          }
        }
      },
      "testing_regex": {
        "type": "constant_keyword",
        "value": "constant_value"
      },
      "normal_constant": {
        "type": "constant_keyword",
        "value": "constant_value"
      },
      "small_field": {
        "type": "keyword",
        "ignore_above": 10
      }
    }
  }
}

PUT constant-keywords-deleme/_doc/1
{
  "@timestamp": "2021-09-02T04:20:01.760Z"
}
```

Set in your `kibana.yml` the key/value of:

```yml
xpack.securitySolution.alertIgnoreFields: ['testing_ignored.constant', '/.*_regex/']
```

Setup a rule to run:
<img width="1083" alt="Screen Shot 2021-09-01 at 10 23 23 PM" src="https://user-images.githubusercontent.com/1151048/131781696-fea0d421-836f-465c-9be6-5289fbb622a4.png">

Once it runs you should notice that the constant values for testing are not on the signals table since it only typically exists in the fields API:
<img width="1166" alt="Screen Shot 2021-09-01 at 10 26 16 PM" src="https://user-images.githubusercontent.com/1151048/131781782-1684fb1d-bed9-4cf0-be9a-0abe1f0f34d1.png">

But the normal one still exists:
<img width="1136" alt="Screen Shot 2021-09-01 at 10 26 31 PM" src="https://user-images.githubusercontent.com/1151048/131781827-5450c693-de9e-4285-b082-9f7a2cbd5d07.png">

If you change the `xpack.securitySolution.alertIgnoreFields` by removing it and re-generate the signals you will see these values added back.

### Checklist

Delete any items that are not applicable to this PR.

- [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
- [x] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/master/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
2021-09-03 08:41:28 -06:00
Christiane (Tina) Heiligers 66cb058fa7
Removes support for legacy exports (#110738)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 07:22:14 -07:00
Marco Liberati 21b4752dba
[Lens] Fix transition to custom palette inconsistency when in number mode (#110852)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 15:57:57 +02:00
Alejandro Fernández Haro dfea0fee21
[GET /api/status] Default to v8format and allow v7format=true (#110830) 2021-09-03 07:32:59 -04:00
Mikhail Shustov 641cef7ca6
Functional tests for execution context (#110299)
* remove unnecessary ts-ignore

* add context propagation to x-opaque-id header tests

* run tests on CI

* simplify logging. the action purpose follows from the context name

* extend tests with the assertion against execution_context from the Kibana logs

* split JSON log records only

* apply suggestions proposed by Spencer
2021-09-03 05:48:32 -04:00
Stratoula Kalafateli 33c124b9d8
Move to vis_types folder part 2 (#110574)
* Move to vis_types folder part 2

* fix jest tests

* do some tests

* revert

* Test Tiago's fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 11:19:44 +03:00
Pierre Gayvallet 9d216cd312
[SOR] use initialNamespaces when checking for conflict for create and bulkCreate (#111023)
* use initialNamespaces when checking for conflict

* nits
2021-09-03 08:27:18 +02:00
Devon Thomson e704a52f6e
[Dashboard] Read App State from URL on Soft Refresh (#109354)
Subscribe to app changes from URL to allow dashboard URL to be used as an API. On URL change, update filters, timerange, and query
2021-09-02 17:50:02 -04:00
Pierre Gayvallet 00305dbfb2
normalize initialNamespaces (#110936) 2021-09-02 22:01:32 +02:00
Matthias Wilhelm 814cf7a4fc
[Discover] Remove Angular (#109774)
- This PR removes a remaining Angular related code in Discover
2021-09-02 14:49:14 +02:00
Uladzislau Lasitsa 51b0f5aa15
[XY axis] Split chart and alphabetical descending order doesn't work as expected (#108858)
* We should use 'sort' from terms for 'GroupBy'

* Fix conflicts

* Fix import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-02 15:47:06 +03:00
Nathan L Smith 6509fb31e4
Fix request inspector text display (#110647)
In #110116 I added the `RedirectAppLinks` component, which makes it so links outside the app automatically do not cause a page reload.

This component inserts a div into the DOM. Apparently this also caused the text areas in the request and response tabs of the request inspector to be collapsed to zero height.

Remove `RedirectAppLinks` and handle the navigation with an `onClick` callback instead.
2021-09-02 07:45:50 -05:00
Alexey Antonov 88617325f3
[TSVB] Add migration script for 'drop_last_bucket' value (#110782)
* [TSVB] Add migration script for 'drop_last_bucket' value

* Update visualization_saved_object_migrations.test.ts

* fix PR comments
2021-09-02 12:49:47 +03:00
Spencer fecdba7eba
[eslint] add rule to prevent export* in plugin index files (#109357)
* [eslint] add rule to prevent export* in plugin index files

* deduplicate export names for types/instances with the same name

* attempt to auto-fix duplicate exports too

* capture exported enums too

* enforce no_export_all for core too

* disable rule by default, allow opting-in for help fixing

* update tests

* reduce yarn.lock duplication

* add rule but no fixes

* disable all existing violations

* update api docs with new line numbers

* revert unnecessary changes to yarn.lock which only had drawbacks

* remove unnecessary eslint-disable

* rework codegen to split type exports and use babel to generate valid code

* check for "export types" deeply

* improve test by using fixtures

* add comments to some helper functions

* disable fix for namespace exports including types

* label all eslint-disable comments with related team-specific issue

* ensure that child exports of `export type` are always tracked as types

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 18:05:45 -07:00
Lisa Cawley 714735db21
[APM] Use doc link service instead of ElasticDocsLink (#109027) 2021-09-01 12:08:38 -07:00
spalger 805706b8d5 skip flaky suite (#110038) 2021-09-01 09:01:36 -07:00
Constance 47b86e1bf7
Upgrade EUI to v37.3.1 (#109926)
* Upgrade EUI to v37.3.1

* Update i18n token mappings

* Skip i18n_eui_mapping defString checks for functions

* Update snapshots

* Update failing Security tests with extra nodes

* Remove hook cleanup now that elastic/eui#5068 is merged

* [i18n PR feedback] Prefer specific token skipping over all functions skipping

* Revert "Remove hook cleanup now that elastic/eui#5068 is merged"

This reverts commit e40ebfa929.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 08:39:20 -07:00
Joe Portner b17d87e508
Security usage data (#110548) 2021-09-01 10:35:36 -04:00
Matthew Kime b77ca9392b
create data views service and use in index pattern management (#110747) 2021-09-01 07:22:41 -05:00
Alejandro Fernández Haro 3a434d710e
[Elasticsearch] Skip the Product Check on the scopeable client (#110767) 2021-09-01 13:07:17 +01:00
Rudolf Meijering 393505ab39
Migrationsv2: limit batch sizes to migrations.batchSizeBytes (= 100mb by default) (#109540)
* Fix logging for existing integration test

* First stab at limiting batches to batchSizeBytes

* Fix tests

* Fix batch size calculation, NDJSON needs to be terminated by an empty line

* Integration tests

* Fix type failures

* rename migration integration tests and log files to be consistent & more descriptive

* Review feedback

* Remove duplication of fatal error reasons

* migrations.maxBatchSizeBytes to docker environment vars

* docs for migrations.maxBatchSizeBytes
2021-09-01 12:19:02 +02:00
Ahmad Bamieh 249c5fbf9a
[Core deprecations] Add title field to deprecation info (#109840) 2021-09-01 13:10:25 +03:00
Xavier Mouligneau 16af3e95cb
[RAC] Remove rbac on security solution side (#110472)
* wip to remove rbac

* Revert "[Cases] Include rule registry client for updating alert statuses (#108588)"

This reverts commit 1fd7038b34.

This leaves the rule registry mock changes

* remove rbac on Trend/Count alert

* update detection api for status

* remove @kbn-alerts packages

* fix leftover

* Switching cases to leverage update by query for alert status

* Adding missed files

* fix bad logic

* updating tests for use_alerts_privileges

* remove index alias/fields

* fix types

* fix plugin to get the right index names

* left over of alis on template

* forget to use current user for create/read route index

* updated alerts page to not show table when no privileges and updates to tests

* fix bug when switching between o11y and security solution

* updates tests and move to use privileges page when user tries to access alerts without proper access

* updating jest tests

* pairing with yara

* bring back kbn-alerts after discussion with the team

* fix types

* fix index field for o11y

* fix bug with updating index priv state

* fix i18n issue and update api docs

* fix refresh on alerts

* fix render view on alerts

* updating tests and checking for null in alerts page to not show no privileges page before load

* fix details rules

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Yara Tercero <yara.tercero@elastic.co>
2021-09-01 04:23:44 -04:00
Tiago Costa ff73025533
chore(NA): check for used dependencies on multiple level plugins (#110626) 2021-09-01 03:34:54 +01:00
Jonathan Budzenski 40b91c97ce
[deb/rpm] Generate os package specific kibana.yml (#98213)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 18:00:29 -05:00
Spencer 72f6700270
[eslint] prevent async Promise constructor mistakes (#110349)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-31 17:54:13 -04:00
Jonathan Budzenski 45b13349dc
Ignore elasticsearch-js product check warning by name (#110680) 2021-08-31 16:02:07 -04:00
Mikhail Shustov a3fd138da1
do not make an assumption on user-supplied data content (#109425)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 20:06:47 +02:00
Nathan L Smith 3bae4cdc06
Add inspector panel for APM routes (#109696)
When the observability:enableInspectEsQueries advanced setting is enabled, show an inspector that includes all queries through useFetcher.

Remove the callout.
2021-08-31 11:10:54 -05:00
Michael Dokolin 475eaf2c76
[Expressions] Fix flaky test checking execution duration (#110338) 2021-08-31 17:59:51 +02:00
Josh Dover 257cdddc5f
Increase timeout for displaying welcome interstitial for new users (#110498) 2021-08-31 11:13:58 -04:00
Tim Roes c510288c05
Split KibanaApp into VisEditors and DataDiscovery (#110588)
* Split KibanaApp into VisEditors and DataDiscovery

* Add discover functional tests to codeowners

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 15:57:23 +02:00
Corey Robertson d3774519c0
[Canvas] Adds references extract/inject for Workpads (#109874)
* Register embeddable functions server side.  Adds reference extraction/injection to workpads

* Clean up

* Fix Types

* Update API docs

* Remove API doc from expression (bad conflict resolution)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 09:45:48 -04:00
Jonathan Budzenski ed7beee634
Bump re2 to 1.16.0 (#110489) 2021-08-30 23:05:34 -04:00
Christiane (Tina) Heiligers 8a6cf06f15
[SavedObjects] Integration tests for unsupported product 404 responses (#109755)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 19:36:21 -04:00
Matthew Kime 75c6afe112
[data views] deprecate indexPattern exports, provide dataView exports (#109987)
* first pass at renaming exports

* type fixes

* fix jest test

* look for correct error type

* remove transitional error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 18:04:03 -05:00
Lisa Cawley f41ab3590d
Replace hard-coded link to APM rules (#109021) 2021-08-30 14:41:16 -07:00
Nathan L Smith f875a5bbb3
Locator for console app (#110116)
Add a locator for the console and use it in home and overview.

Fix a bug where the dev tools and management links were not showing on the analytics overview page:

Since the locator's getUrl method is async, pass in the URLs as props into the right side items instead of passing in basePath and hard-coding them.

Add RedirectAppLinks to inspector plugin so we don't have to have an onClick handler for the console link.

Fixes #110076.
2021-08-30 15:01:59 -05:00
Nathan Reese 9e1a4dda42
[Maps] remove map.regionmap.* (#109896)
* remove regionmap config

* clean-up

* clean up docs and i18n cleanup

* telemetry check fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 12:55:03 -06:00
Uladzislau Lasitsa f7db5592e4
[TSVB] Geo_point should be excluded from terms aggregation (#109210)
* Add field type restriction for terms agg

* Fix test

* Add restriction for 'group by' in table

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 12:01:13 -04:00
Michael Dokolin 57dc0c1ff5
[Data] Update esaggs function to use count aggregation by default (#110095)
* Update default value of the aggs argument to use count aggregation
* Fix datatable canvas element to use column id instead of name
2021-08-30 17:10:14 +02:00
Thom Heymann 035937a5c1
Interactive setup mode (#106881)
* Interactive setup mode

* remove first attempt

* Added suggestions from code review

* Verify CA before writing config

* fix i18n path

* updated plugin list

* Updated page bundle limits

* added manual configuration

* fetch certificate chain

* Fix race condition when calling multiple form methods

* Fix i18n errors

* added types and refactored slightly

* welcome page styling

* Remove holdsetup config option

* typo

* fix build errors

* Updated manual configuration form

* Remove issuer link

* Add tests for decode enrollment token

* Removed unused class names

* fix issue where credentials got inherited from base config

* Added tooltips and text overflow

* styling fixes

* refactored text truncate

* Added unit tests

* added suggestions from code review

* Fixed typo and tests

* Styling fixes

* Fix i18n errors

* Added suggestions from code review

* Added route tests

* Explicit type exports

* Fix server url

* Added unit tests

* Added product not supported scenario
2021-08-30 15:23:10 +01:00
Tiago Costa 266769a833
skip flaky suite (#108633) 2021-08-30 12:50:38 +01:00
Alexey Antonov 265fed590e
[Data Table] Expensive queries are causing unnecessary load and delays on Elasticsearch (#98903)
* [Data Table] Expensive queries are causing unnecessary load and delays on Elasticsearch

Part of #93770

* remove extra cycles

* fix PR comments

* fix finder.close

* code cleanup

* add namespaces: ['*'],

* fix jest

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 14:11:42 +03:00
Diana Derevyankina e11e3fdb1b
[TSVB] Remove deprecated IFieldType (#110404)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 13:39:52 +03:00
Alexey Antonov 9f5a93626b
[Vega] Expensive queries are causing unnecessary load and delays on Elasticsearch (#99023)
* [Vega] Expensive queries are causing unnecessary load and delays on Elasticsearch

Part of: #93770

* Update get_usage_collector.test.ts

* add namespaces: ['*']

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 13:34:47 +03:00
Alexey Antonov aa8364a526
[Visualizations] Expensive queries are causing unnecessary load and delays on Elasticsearch (#99031)
* [Visualizations] Expensive queries are causing unnecessary load and delays on Elasticsearch

Part of: #93770

* fix CI

* fix typo

* fix namespaces issue

* fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 13:34:00 +03:00
Alexey Antonov 0e480d8623
[TSVB] Expensive queries are causing unnecessary load and delays on Elasticsearch (#98914)
* [TSVB] Expensive queries are causing unnecessary load and delays on Elasticsearch

Part of: #93770

* remove globalConfig

* fix tests

* fix finder.close

* cleanup code

* run queries concurrently

* add namespaces: ['*'],

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 13:31:08 +03:00
Uladzislau Lasitsa f3562cf12d
Don't add split part of UI if we have one series (#109483)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 12:55:56 +03:00
Maja Grubic a4c0c1c0aa
[Discover] Migrate angular routing to react router (#107042) 2021-08-30 10:48:21 +02:00
Tyler Smalley 73f8a92a33
[bazel] Move keepalive to common (#110351)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-27 03:30:59 -04:00
Yaroslav Kuznietsov dfa6aa8bdf
[Canvas] Fixes Expression Failed Exit Button not Clickable . (#110191)
* Fixed not clickable cross at error popup.
2021-08-27 09:06:31 +03:00
Yaroslav Kuznietsov 5208cfdbc7
[Canvas] Fixes Expression errors are not rendered as markdown. 2021-08-27 09:04:55 +03:00
Matthew Kime 8babdc2462
Remove index pattern placeholder advanced setting (#110334)
* remove index pattern placeholder setting

* remove unused translations
2021-08-26 17:55:37 -05:00
Stacey Gammon e307be985a
Turn off api changes for app services and remove legacy docs for App Services plugins (#109927)
* Turn off legacy docs build script for app services plugins

* Remove legacy docs

* remove all *.api.md (minus core)
2021-08-26 14:01:21 -04:00
Tyler Smalley 8bcf27f600
[bazel] Disable backend keep alive (#110259)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-08-26 13:41:28 -04:00
Christiane (Tina) Heiligers b15b3ce19d
Fixes bugs for product check in update and delete (#109979)
* Fixes bugs for product check in update and delete

* Apply suggestions from code review
2021-08-26 12:03:13 -04:00
Anton Dosov 00c9a76e0d
[fieldFormats] remove reliance on eslint-rule-no-export-all 2021-08-26 17:56:19 +02:00
Joe Portner 695280b756
bulkGet saved objects across spaces (#109967) 2021-08-26 11:26:34 -04:00
Alejandro Fernández Haro bb8ee0ce05
Enable Product check from @elastic/elasticsearch-js (#107663)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 15:36:46 +01:00
Alejandro Fernández Haro 7cfdd000ee
[Home app] Fix this references (#110207)
* [Home app] Fix `this` references

* More readable if
2021-08-26 10:18:39 -04:00
Alexey Antonov 3cc7da8435
[Lens] Inspect flyout should be available in editor mode. (#109656)
* [Lens] Inspect flyout should be available in editor mode.

* fix typo

* add test

* add functional tests for inspector

* toMatchInlineSnapshot -> toMatchSnapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 10:18:09 -04:00
Anton Dosov 44faefb715
[DataViews] filter apm- sources when deciding which empty state to show(#110094) 2021-08-26 12:33:16 +02:00
Anton Dosov 1af200b5e0
[DataViews] Fix checking remote clusters in empty state (#110054) 2021-08-26 12:26:02 +02:00
Matthias Wilhelm dc07f4d00a
[Discover] Fix performance regression in sidebar (#109999) 2021-08-26 11:30:01 +02:00
Jean-Louis Leysens 9e04d2c5c7
[Reporting/Dashboard] Update integration to use v2 reports (#108553)
* very wip, updating dashboard integration to use v2 reports. at the moment time filters are not working correctly

* added missing dependency to hook

* added tests and refined ForwadedAppState interface

* remove unused import

* updated test because generating a report from an unsaved report is possible

* migrated locator to forward state on history only, reordered methods on react component

* remove unused import

* update locator test and use panel index number if panelIndex does not exist

* ensure locator params are serializable

* - moved getSerializableRecord to locator.ts to ensure that the
  values we get from it will never contain something that cannot
  be passed to history.push
- updated types to remove some `& SerializableRecord` instances
- fixed embeddable drilldown Jest tests given that we no longer
  expect state to be in the URL

* update generated api docs

* remove unused variable

* - removed SerializedRecord extension from dashboard locator params
  interface
- factored out state conversion logic from the locator getLocation

* updated locator jest tests and SerializableRecord types

* explicitly map values to dashboardlocatorparams and export serializable params type

* use serializable params type in embeddable

* factored out logic for converting panels to dashboard panels map

* use "type =" instead of "interface"

* big update to locator params: type fixes and added options key

* added comment about why we are using "type" alias instead of "interface" declaration

* simplify is v2 job param check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 09:53:28 +02:00
Nathan L Smith 406df4d986
Open in dev tools button for request inspector (#109923)
Add a "Open in Dev Tools" link to the request inspector.

Allow the dev tools to open data uris that are lz-string encoded (the same method used by TypeScript Playground, which are a lot shorter than a base64 encoded string.)
2021-08-25 12:49:13 -05:00
Stacey Gammon 26c574df71
Remove unused deprecated api (#109921)
* remove unused deprecated apis

* Update legacy docs
2021-08-25 12:07:13 -04:00
Maja Grubic 811d3d779f
[Discover] Hide multifields from doc table (#109242)
* [Discover] Hide multifields from doc table

* Fix failing type check

* Fix eslint

* Fix faulty logic

* Fix linting error

* Add memoization to the function

* Move getFieldsToShow a bit higher up

* Extracting getFieldsToShow logic higher up

* Fix linting error / table logic

* Move fieldsToShow to doc_table_wrapper

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-25 16:19:24 +02:00
Michael Dokolin c7f55db17f
[Data] Fix CIDR mask to avoid using big integers (#109789) 2021-08-25 14:37:10 +02:00
Anton Dosov 48d894427a
[IndexPatterns] Clean up StubIndexPattern (#108555) 2021-08-25 12:26:28 +02:00
Diana Derevyankina e3a6fc59f3
Chore(TSVB): Replace aggregations lookup with map (#109424)
* Chore(TSVB): Replace aggregations lookup with map

* Fix types, update test expected data and remove unused translations

* Correct typo and refactor condition in std_metric

* Fix metric type

* Fix CI and label for Bucket Script

* Update agg_utils.test expected data

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-25 13:06:24 +03:00
Vadim Kibana db57935744
Remove UI actions any types (#109797)
* remove any in trigger registry

* improve comments

* remove all anys from ui_actions plugin

* fix formatting suggestions
2021-08-25 10:43:10 +02:00
Alejandro Fernández Haro 137cf86cd8
[Home] Use unified API to show/hide the Welcome interstitial (#109650) 2021-08-25 08:44:18 +01:00
Spencer 213abc47f1
ensure all kibana.json files have owners and they are consistent (#109731)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-24 17:23:48 -04:00
Nathan Reese 84be1c500e
[maps] remove xpack.maps.showMapVisualizationTypes (#105979)
* [maps] remove xpack.maps.showMapVisualizationTypes

* remove settings from xpack_plugins

* eslint

* new telemetry_check parser features

* remove xpack.maps.showMapVisualizationTypes from functional test config

* remove unused const destruct

* update expect for functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
2021-08-24 10:46:40 -06:00
Anton Dosov ac851149a2
[DataViews] Fix redundant fields requests that cause errors (#109702) 2021-08-24 16:09:22 +02:00
Aleh Zasypkin d37b3659b5
Do not use outdated request package in tests. (#109225) 2021-08-24 16:08:38 +02:00
Stacey Gammon 52ee65b8d5
Make owner attribute required on kibana.json (#108231)
* make owner attribute required

* Add owner properties in more places

* add test for owner attribute

* add error check too in the test

* Fix tests

* fix tests and update docs

* wip

* More test fixes

* Fix All The Errorz

* Adding more owner attributes

* Update x-pack/test/saved_object_api_integration/common/fixtures/saved_object_test_plugin/kibana.json

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Update x-pack/test/ui_capabilities/common/fixtures/plugins/foo_plugin/kibana.json

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* commeeeooonnnn

* Update docs

* soooo many kibanajsons

* adjust plugin generator to add an owner

* Add owner to the plugin generator scripts

* update snapshot

* Fix snapshot

* review updates

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-24 10:02:32 -04:00
Sébastien Loix 3534450317
[Form lib] Allow dynamic data to be passed to validator functions (#109238) 2021-08-24 13:56:07 +01:00
Liza Katz 268a279930
[Data][Es Query] Use ES types in Filters (#108378)
* es-query types

* jest and lint

* cc

* options

* type

* types for kuery FUNCTIONS

* doc

* types for filters

* sec fixes

* filtersss

* typey type

* typey type

* comparator options

* test typescript

* test

* fixes

* test types

* test

* cr

* cleanup a bit more

* Jest fix + types

* Remove geo bounding box and geo polygon filters

* delete geo filters

* geo

* geo

* Fix tests \_0_/

* doc

* types and fixes

* jests

* ts

* Remove geo bounding box and geo polygon filters

* delete geo filters

* delete geo filters

* geo

* remove geo docs

* ts

* plg ts

* types

* cast

* Update types.ts

* Update create_threat_signal.ts

* Update packages/kbn-es-query/src/es_query/migrate_filter.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* Code review

* revert change

* docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2021-08-24 11:28:22 +02:00
Matthias Wilhelm 42527e4188
[Discover] Remove Angular from doc viewer (#109368)
* Remove angular from doc viewer

* Remove types

* Remove plugin_functional for angular doc_view, since testing angular is no longer necessary
2021-08-24 10:50:22 +02:00
Uladzislau Lasitsa 1e8609b3db
[Saved Search] Interrupted Loading Throws Console Error (#108926)
* Add check if embeddable was destroyed.

* Move isDestroyed inside SavedSearchEmbeddable

* Use destroyed variable from parent

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-24 10:37:03 +03:00
Anton Dosov bea4865374
[DataViews] Fix excessive resolve_index requests in create data view flyout (#109500) 2021-08-23 18:35:32 +02:00
Lukas Olson 0a8d42c80b
[data.search] Remove deprecated courier:batchSearches advanced setting (#109350)
* [data.search] Handle warnings inside of headers

* Update docs

* Add tests

* Remove isWarningResponse

* Remove deprecated courier:batchSearches advanced setting

* Update docs

* Remove legacy tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-23 09:31:13 -07:00
Greg Thompson 873f2e23a9
Upgrade EUI to v37.3.0 (#109157)
* eui to 37.3.0

* i18n tokens

* reinstate discover_grid_flyout test

* more i18n tokens

* snapshot updates

* fix jest failures

* update cell position pattern

* clean up pattern

* buttongroup click -> change

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-23 11:12:02 -05:00
Matthias Wilhelm 6f7ded9fd4
[Discover][Context] Set trackTotalHits to false in requests to Elasticsearch (#108661) 2021-08-23 17:03:47 +02:00
Nathan Reese 3669aad41f
fix TableListView empty view trapping users with no action to create new item (#109345)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-23 08:25:08 -06:00
Joe Portner 65e04b1380
Remove spacesOss plugin (#109258) 2021-08-23 15:10:09 +02:00
Aleh Zasypkin 3a0f209bde
Cumulative set of the preboot stage adjustments (#108514) 2021-08-23 15:01:46 +02:00
Matthias Wilhelm 8489e91f2a
[Discover] Fix keeping error state after invalid KQL query (#109514) 2021-08-23 14:55:26 +02:00
Dmitry Tomashevich 68afb8d0e1
[Discover] Fix discover footer width (#109403)
* [Discover] fix discover footer width

* [Discover] fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-23 14:16:51 +03:00
Yaroslav Kuznietsov 237fcac254
[Canvas] Expression tagcloud (#108036)
* Added `expression_tagcloud` plugin.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-23 06:52:19 -04:00
Maja Grubic 6711005db2
[Saved Search Embeddable] Do not set source field when reading fields from source (#109069)
* [Saved Search Embeddable] Do not set source if reading fields from source enabled

* Extract functionality to a helper function and added unit tests

* Fix unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-23 12:34:35 +02:00
Pierre Gayvallet 5c5e191364
Add multiple namespaces support to PIT search and finder (#109062)
* initial modifications

* change approach for openPointInTime and add tests for spaces wrapper changes

* fix and add security wrapper tests

* fix export security FTR tests

* update generated doc

* add tests for PIT finder

* NIT

* improve doc

* nits
2021-08-23 12:02:41 +02:00
Devon Thomson 95463f47f3
[Dashboard] Remove Legacy Dashboard Only Mode (#108103)
Remove all dashboard only mode code and tests. Align dashboard permissions to use showWriteControls only
2021-08-20 15:39:10 -04:00
Tim Roes 4d115dcaa2
Fix bug with highlighting in field formatters (#109401)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-20 18:08:12 +02:00
Anton Dosov cd7f26dd81
[IndexPatterns] No data experience to handle default Fleet assets (#108887)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-08-20 17:58:34 +02:00
Devon Thomson ff17140179
[Input Controls] Options List Data Fetch In Embeddable (#108226)
Moved data fetching from react component into embeddable class. This cleans up the component, and allows for more accurate comparison before firing async requests
2021-08-20 10:38:59 -04:00
Tiago Costa 9fb152a92f
chore(NA): moving @kbn/logging to babel transpiler (#108702)
* chore(NA): moving @kbn/logging to babel transpiler

* chore(NA): fix imports for @kbn/logging

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-20 11:54:46 +01:00
Stratoula Kalafateli cb868928a7
Move to vis types part 1 (#107535)
* Move to vis types part 1

* Fix types

* fix more types

* Fix paths

* Update readme file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-20 11:43:21 +03:00
CJ Cenizal 8d1ebea7db
Migrate Stack Management apps to consume internal EuiCodeEditor (#108629)
* Migrate Index Management to use internal EuiCodeEditor.
* Migrate Rollup to use internal EuiCodeEditor.
* Migrate Snapshot and Restore to use internal EuiCodeEditor.
* Migrate Watcher to use internal EuiCodeEditor.
* Add default setOptions values to EuiCodeEditor.
2021-08-19 10:23:55 -07:00
Spencer 7e2bd4fd54
[ftr] rework ciGroup validation to remove JOBS.yml and avoid duplication (#109149)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-19 11:40:23 -05:00
Mikhail Shustov fe96d3c96e
Remove LegacyRequest type from Core public API (#109243)
* remove LegacyRequest from public API

* remove LegacyRequest from Security plugin API

* update docs

* remove an obsolete comment
2021-08-19 11:11:58 -04:00
Pierre Gayvallet e88d77b045
Remove unused chrome APIs (#109204)
* remove unused chrome APIs

* update generated doc

* fix tests

* fix tests bis
2021-08-19 16:23:30 +02:00
Stratoula Kalafateli 4419efcbd0
[XY, Pie] Long legend values support (#108365)
* [XY, Pie] Long legend values support

* Update vislib snapshots

* Fix truncate labels to work only for slice labels positioned outside the chart

* Address PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-19 12:36:23 +03:00
Aleh Zasypkin cb0ce59376
Introduce Enroll API endpoint. (#108835) 2021-08-19 11:24:32 +02:00
Stratoula Kalafateli fe08d0aa21
[TSVB] Long legend values support (#108023)
* [TSVB] Supports legends with long values

* Add a unit test

* Design optimization

* Revert changes

* Add the missing prop type

* Ensure that the limits are respected

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-19 11:27:18 +03:00
Jonathan Budzenski 64454f3283 Revert "[build] Remove optimize dir creation (#109014)"
This reverts commit c2f310006d.
2021-08-18 20:05:16 -05:00
Luke Elmers 49ba7e746c
Add deprecation notice to dashboard import/export docs. (#108826) 2021-08-18 14:46:17 -06:00
Jonathan Budzenski c2f310006d
[build] Remove optimize dir creation (#109014) 2021-08-18 14:53:19 -05:00
Nathan Reese dd9dd52718
[maps] remove tile_map, region_map, and maps_legacy plugins (#105326)
* [maps] remove tile_map plugin

* initial bounds

* update embeddable query context

* start editor

* remove tile_map from tsconfig and i18n cleanup

* implement view in maps button

* tslint

* remove empty lines

* remove tileMap from limits.yml

* remove region_map and maps_legacy plugins

* region_map vis with Map embeddable

* make MapComponent

* lint

* clean up

* shorten text

* lint

* remove region_map from interpreter functional tests

* update docs

* add migration for removing ui_settings

* remove tile_map and region_map functional tests

* tslint

* call handlers.done when layers are loaded

* fix visualize create menu test

* eslint

* add owner comment to ui_settings/saved_objects/migrations.ts

* remove deleted plugins from codeowners

* review feedback

* use correct value for TILE_MAP_RENDER

* down select mapModules for getLayerDescriptors callback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 12:51:31 -06:00
Liza Katz fd676afb9c
text improvement (#109111) 2021-08-18 19:21:26 +02:00
Mikhail Shustov b53b2cdc35
[Elasticsearch] remove legacy es client (#107619)
* remove legacy es client

* update docs

* uninstall elasticsearch package

* fix global_search tests

* ad-hoc fix to address bazel failure. authored by Tiago

* update docs

* remove elasticsearch import. errors are muted with @ts-ignore

* Update WORKSPACE.bazel

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>

* update docs

* fix problem when dev mock already mocked client

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-08-18 19:18:05 +02:00
Nathan Reese 7be0bb9c78
Abort full screen in dashboard and maps when user clicks back button (#108747)
* [Maps] reverse geocoding tutorial

* reverse geocoding step

* add final step

* use dash delemiter instead of underscore in file name

* add float to step 3 so its on the same page

* add into to step 3

* Abort full screen in dashboard and maps when user clicks back button

* remove doc changes from another PR

* remove change in file heading

* tslint and fix unit test

* eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 11:01:47 -06:00
Alexey Antonov 31c7b81a94
[TSVB] Fix Markdown variables are not available on the first rendering (#108836)
* [TSVB] Markdown variables are not available on the first rendering

Closes: #108721

* Update editor_controller.tsx

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 12:33:45 -04:00
Michael Marcialis 336b099eec
Home Page Style Tweaks (#108989)
* balance solutions

* clean up solution changes

* change footer button size

* update management section

* apply max-width to management items

* remove right side items from page header

* add data content update

* illustration poc

* add data content updates per feedback

* img size and alignment

* moved shared images to shared assets folder

* more solutions clean up

* rm unneeded import

* remove references to subtitle and appDescriptions

* update tests and snapshots

* more test and snapshot updates

* restore solution sort order

* ts and jest fixes; thx catherine!

* i18n fixes

* use new `KibanaPageTemplateSolutionNavAvatar` comp

* change solution imgs from png to svg

* update tests and snapshots

* rm spacer and update snapshots

* account for flex margin changes in img offset

* Change "Kibana" overview page text to "Analytics"

* update overview icon to match hp changes

* update snapshots

* center justify solutions and update snapshots

* update snapshots

* title case dev tools and stack management

* update text and snapshots

* fix merge error

* apply caroline's suggested style tweaks

* clean up css and update snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 16:25:44 +01:00
Liza Katz 6a1a1afd3a
[Data cleanup] Remove geo filters (#109097)
* Remove geo bounding box and geo polygon filters

* delete geo filters

* delete geo filters

* geo

* remove geo docs
2021-08-18 17:08:42 +02:00
Tim Roes 92dcef9f26
Hide "Manage Searches" if insufficient permissions (#109099) 2021-08-18 17:04:58 +02:00
Uladzislau Lasitsa bc7b2f9c59
Switching between some aggregations in bucket section for sibling aggregations breaks the visualization. (#108693)
* share between aggs only field and base params: json, label, time shift.

* Fix some remarks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 12:42:30 +03:00
Ignacio Rivas 1d98cb6512
[Upgrade Assistant] Overview page redesign (#106521) 2021-08-18 09:12:55 +02:00
Patryk Kopyciński 754b79f08a
[Cases] Add Lens markdown plugin (#96703) 2021-08-17 15:49:44 -07:00
Lukas Olson 0f0a33c737
Fix search warnings with sample data (#108825)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 15:15:47 -07:00
Caroline Horn 59ec89bfbe
[NoDataPage] Updating the default messages (#108799)
* [NoDataPage] Updating the default messages and reusing `title` as default `button` label
  * Update default description for agent
* Overview page i18n and snaps
2021-08-17 17:59:15 -04:00
Alejandro Fernández Haro 335393e875
Add debounce to the status observers to reduce unnecessary CPU loops (#108952) 2021-08-17 16:46:54 -04:00
Josh Dover 66a06f97df
Update onboarding interstitial to handle default Fleet assets (#108193) 2021-08-17 15:47:03 -04:00
Jonathan Budzenski fe11fe0c58
[build] Exclude __fixtures__ (#108946) 2021-08-17 14:42:09 -04:00
Katrin Freihofner cac84d7cce
styling updates to alerts table and alignment of elements (#108507)
Co-authored-by: Kerry Gallagher <471693+Kerry350@users.noreply.github.com>
2021-08-17 14:35:21 -04:00
Matthew Kime 5b5e152e2f
[index pattern management] Restore cross cluster search functionality (#108756)
* restore cross cluster search functionality
2021-08-17 12:52:07 -05:00
Christiane (Tina) Heiligers 3a74287268
Improves not found response handling in the saved objects repository (#108749) 2021-08-17 13:47:05 -04:00
Alexey Antonov 5b30b3d316
[TSVB] Markdown variables should be clickable (#108844)
* [TSVB] Markdown variables should be clickable

* fix test
2021-08-17 19:21:17 +03:00
Matthew Kime d62ff559b8
[index pattern management] load index pattern list without loading field lists (#108823)
* don't load field list for index pattern list
2021-08-17 10:03:54 -05:00
Tim Roes 6f4a615860
Make indexPattern only read only in Discover permission (#108376)
* Make indexPattern only read only in Discover permission

* Fix test failures

* Address review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 16:47:43 +02:00
Stacey Gammon 9258ba5147
Adding owners to kibana plugins (#108407)
* Adding owners to kibana plugins

* Fix ui actions enhanced owner

* Account for virtual RAC team owning a plugin

* Fix empty githubTeam for ui actions
2021-08-17 10:21:06 -04:00
Stratoula Kalafateli 0640a11feb
Import EuiCodeEditor from kibana (#108846) 2021-08-17 16:54:36 +03:00
Jonathan Budzenski e2ad384d12
[build] Remove jest.config.js (#108822) 2021-08-17 08:13:04 -05:00
Jonathan Budzenski 304bbf054f
[build] Remove scss files (#108821) 2021-08-17 08:12:32 -05:00
Alexey Antonov 87ac80ec90
[Lens] Make lens_time_scale function to pick timezone from the context (#108366)
Part of: #97134

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 15:53:25 +03:00
renovate[bot] 41162c3940
Update dependency @elastic/elasticsearch to ^8.0.0-canary.17 (#107536)
* Update dependency @elastic/elasticsearch to ^8.0.0-canary.15

* update tests for new error message building mechanism

* fix integration tests

* fix functional test

* mute new type errors

* fix new type errors

* bump es client to canaary.16

* fix integration test

* fix type errors in infra plugin

* mute type error in ml plugin

* fix type errors in monitoring plugin

* fix and mute errors in security solution plugin

* bump version to canary.18

* remove an unnecessary change

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: restrry <restrry@gmail.com>
2021-08-17 08:44:24 -04:00
Liza Katz 9d1a8a87f8
[Data][Es Query] Use ES types in Kuery functions (#108367)
* es-query types

* jest and lint

* cc

* options

* type

* types for kuery FUNCTIONS

* doc

* sec fixes

* typey type

* test typescript

* test

* fixes

* test

* cr

* cleanup a bit more

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 11:49:16 +02:00
Dmitry Tomashevich e258f46167
[Discover] Improve Doc viewer (#107869)
* [Discover] fix doc-vewer

* [Discover] remove redundant stuff

* [Discover] remove redundant i18n

* [Discover] remove unused translation

* [Discover] fix by comments

* [Discover] clean up remaining things

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 12:48:32 +03:00
Lukas Olson 6a39dc1880
[data.search] Handle warnings inside of headers (#103744)
* [data.search] Handle warnings inside of headers

* Update docs

* Add tests

* Remove isWarningResponse

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 21:06:19 -07:00
Matthew Kime f4022d1862
searchsource should send all index patterns defined on the runtime field (#108549)
* searchsource should send all index patterns defined on the runtime field

* fix jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 18:54:54 -05:00
Jonathan Budzenski f62edecb51
[build] Exclude integration tests (#108790)
`src/core/server/saved_objects/migrationsv2/integration_tests` comes in
at 36mb.  This adds it to the exclude list.
2021-08-16 19:49:15 -04:00
Michael Marcialis f80104df0e
Home Page Solutions & Add Data Updates (#108580)
* balance solutions

* clean up solution changes

* change footer button size

* update management section

* apply max-width to management items

* remove right side items from page header

* add data content update

* illustration poc

* add data content updates per feedback

* img size and alignment

* moved shared images to shared assets folder

* more solutions clean up

* rm unneeded import

* remove references to subtitle and appDescriptions

* update tests and snapshots

* more test and snapshot updates

* restore solution sort order

* ts and jest fixes; thx catherine!

* i18n fixes

* use new `KibanaPageTemplateSolutionNavAvatar` comp

* change solution imgs from png to svg

* update tests and snapshots

* rm spacer and update snapshots

* account for flex margin changes in img offset

* Change "Kibana" overview page text to "Analytics"

* update overview icon to match hp changes

* update snapshots

* center justify solutions and update snapshots

* update snapshots

* title case dev tools and stack management

* update text and snapshots

* fix merge error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 19:21:25 -04:00
Matthew Kime 0153bdbcbd
Index pattern creation - text improvements (#107860)
* text improvements
2021-08-16 18:09:58 -05:00
Jonathan Budzenski 64a63e6f9e
[keystore] Fix input masking (#108415)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 17:08:17 -05:00
Nick Peihl ed7c0825b7
Use Elastic Maps Service 7.15 (#108751)
* Bump @elastic/ems-client to 7.15.0

* Also bumps link to ems landing page
2021-08-16 15:00:05 -07:00
Constance 3ffd6af7c5
[Enterprise Search] Set up basic scaffolding for Cypress tests in Kibana (#108560)
* Set up tsconfigs

- Required if we're going to have several different Cypress suites (one for each plugin/product essentially) in order for global cy.() commands and it()/describe() to register as expected

@see https://docs.cypress.io/guides/tooling/typescript-support#Clashing-types-with-Jest

* Set up shared commands and routes

NOTE: Unlike ent-search, shared/ will *not* have its own set of tests - rather, shared/cypress is a resource/set of helpers for other test suites to extend/import/etc.

* Create basic Enterprise Search Overview E2E tests

- For happy path testing, we _likely_ shouldn't need more than these tests going forward

- If we ever want to add an error connecting test however, this is likely where it should go (or alternatively, use Kibana's FTR with Enterprise Search host set but not spun up)

* Set up App Search Cypress test scaffolding

- placeholder/hello world test only

* Set up Workplace Search Cypress test scaffolding

- placeholder/hello world test only

* Add helper script and update README

* Add config setup & documentation for potentially running Cypress against Kibana functional server

* PR feedback: Fix typescript project names

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 16:30:46 -04:00
Ryan Keairns 36bba6ffe0
Update Analytics overview page to new empty state template (#108532)
* Use empty state page template

* Remove unused translations

* Fixed snaps

* Use docLinks service

* Fix test

* Revert "Use docLinks service"

Use exisiting docLinks.ELASTIC_WEBSITE_URL instead

* Update learn more link and test

* fix test

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 14:54:22 -05:00
Mikhail Shustov ea3fcbd8e9
provide execution context information for task and alerting (#108197)
* provide execution context information for task.run and alert.execute

* log default space

* expose setRequestId to plugins for cases when a runtime scope exists outside of requestHandler

* fix typescript errors in jest test files

Unfortunately, some of the tests are still failing.  Not quite sure what's
going on, but it looks like the calls to `withContext()` are not returning
the result of the function passed in, but only in the tests.  Because the
code seems to run fine when I run Kibana - but perhaps we're just lucky
and don't need the results the tests are looking for, for my simple
smoke tests.  But seems unlikely to me - guessing the mock is not being
set up correctly, or there's some weird interaction with jest mocks
and async hooks.

* fix alerting unit tests

* add tests that withContext is called even when exection_context service is disabled

* update docs

* add fakerequestid registration

* do not attach request id when undefined (FakeRequest, for example)

* Revert "add fakerequestid registration"

This reverts commit ca5a396dcc.

* not to expose setRequestId for time being

* cleanup alerting code

* update docs

* add a unit test for alerting execution context

* add a test for execution context of task runner

* improve description readability

* update type definitons

* fall back to unknownId if no requestId is provided

Co-authored-by: Patrick Mueller <pmuellr@gmail.com>
2021-08-16 15:38:52 -04:00
Greg Thompson f26591fd13
Upgrade EUI to v37.1.1 (#108210)
* eui to 37.1.0

* i18n tokens

* license checker

* disabled prop

* i18n shapshot

* date title snapshots

* date title formatting

* date title formatting

* Revert "disabled prop"

This reverts commit 68a48c4352.

* date title formatting

* eui to 37.2.0

* trial: outsideClickCloses

* Revert "trial: outsideClickCloses"

This reverts commit 4da2299e4f.

* eui to 37.1.1

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 12:15:44 -05:00
Jonathan Budzenski f3f3e10274
[uuid] Cleanup fs error message (#108574)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 13:09:08 -04:00
Mikhail Shustov 7b03175395
disable execution_context service by default (#108534)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 17:43:20 +01:00
Rudolf Meijering b96648ca0c
Handle index not found during bulk index action (#108544)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 15:10:10 +02:00
Alison Goryachev 650f45b823
[Upgrade Assistant] Create new status endpoint (#105998) 2021-08-16 08:50:36 -04:00
Alexey Antonov 49735477d0
[TSVB] Fix UI issue with padding on showing annotations (#108205)
* [TSVB] Fix UI issue with padding on showing annotations

* try to fix CI

* move 19 to constant

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 14:30:57 +03:00
Uladzislau Lasitsa cb4069272f
Reduce calling canFilter significantly (#108515)
* Reduce calling canFIlter

* Fix lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 13:01:14 +03:00
Anton Dosov 72742d0d50
[FieldFormats] Example plugin (#108070) 2021-08-16 05:18:34 -04:00
Patryk Kopyciński c347a7e5e5
[Osquery] Add ECS mapping editor (#107706) 2021-08-16 01:17:07 +02:00
Matthew Kime 2e68ce1a05
Developer guide - index patterns key concepts (#96017)
* add index patterns key concepts
2021-08-15 08:48:51 -05:00
CJ Cenizal bfea4a1c2b
Add EuiCodeEditor to ES UI Shared. (#108318)
* Export EuiCodeEditor from es_ui_shared and consume it in Grok Debugger. Remove warning from EuiCodeEditor.
* Lazy-load code editor so it doesn't bloat the EsUiShared plugin bundle.
* Refactor mocks into a shared jest_mock.tsx file.
2021-08-13 16:49:55 -07:00
Sébastien Loix b24d44d165
[Index pattern field editor] Add preview for runtime fields (#100198) 2021-08-13 18:27:23 -04:00
Ece Özalp f952643e54
[CTI] adds securitySoluion:defaultThreatIndex uiSetting (#108389) 2021-08-13 16:32:32 -04:00
Apoorva Joshi c6dc6e207a
Adding host_risk_score_latest to the list of patterns to track for telemetry (#108547)
* Adding host_risk_score_latest to the list of patterns to track for telemetry

* Adding a test

* Removing extra spaces at end of line- should make the linter happy
2021-08-13 11:04:42 -07:00
Joe Portner e35be9d87c
Fix flaky security/spaces tests (#108088) 2021-08-13 13:05:11 -04:00
Brian Seeders 212b1898e6
Revert "[Enterprise Search] Set up basic scaffolding for Cypress tests in Kibana (#108309)" (#108541)
This reverts commit 4d7aa45e14.
2021-08-13 10:10:53 -04:00
Jean-Louis Leysens 6a7cb09764
[Dashboard] Minor copy tweak for copy to dashboard action 2021-08-13 07:26:53 -04:00
Rudolf Meijering ebdda25fa8
migrationsv2: handle 413 errors and log the request details for unexpected ES failures (#108213)
* Log the failing request and response code when an action throws a response error

* Provide useful log message when migrations fail due to ES 413 Request Entity Too Large

* Don't log request body for unexpected ES request failures

* Fix types

* CR feedback: fix order of ES request debug log

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-13 11:44:07 +02:00
Caroline Horn ba14713623
[KibanaPageTemplate] Adding a noDataConfig for templated add data screens (#108293) 2021-08-12 20:01:54 -04:00
Constance 4d7aa45e14
[Enterprise Search] Set up basic scaffolding for Cypress tests in Kibana (#108309)
* Set up tsconfigs

- Required if we're going to have several different Cypress suites (one for each plugin/product essentially) in order for global cy.() commands and it()/describe() to register as expected

@see https://docs.cypress.io/guides/tooling/typescript-support#Clashing-types-with-Jest

* Set up shared commands and routes

NOTE: Unlike ent-search, shared/ will *not* have its own set of tests - rather, shared/cypress is a resource/set of helpers for other test suites to extend/import/etc.

* Create basic Enterprise Search Overview E2E tests

- For happy path testing, we _likely_ shouldn't need more than these tests going forward

- If we ever want to add an error connecting test however, this is likely where it should go (or alternatively, use Kibana's FTR with Enterprise Search host set but not spun up)

* Set up App Search Cypress test scaffolding

- placeholder/hello world test only

* Set up Workplace Search Cypress test scaffolding

- placeholder/hello world test only

* Add helper script and update README

* Add config setup & documentation for potentially running Cypress against Kibana functional server

* PR feedback: Remove unnecessary return true
2021-08-12 17:58:26 -04:00
Devon Thomson 33f3933118
[Dashboard] [Embeddable] Add Ability to Defer Embeddable Loaded State (#107227)
Added defer embeddable loading flag to embeddable for embeddables which aren't finished loading after their constructor is finished
2021-08-12 17:43:57 -04:00
Corey Robertson 4291a1507b
[Presentation] Adds owner to presentation team plugin kibana.json. Updated CODEOWNERS (#108408)
* Adds owner to presentation team plugin kibana.json. Updated CODEOWNERS

* Adds a few more owners for presentation
2021-08-12 15:54:39 -04:00
Liza Katz e91baea5dc
[Data][Es Query] Use ES types instead of DslQuery (#108290)
* es-query types

* jest and lint

* cc

* options

* type

* type
2021-08-12 21:23:33 +02:00
Chris Roberson fb215edf55
Revert "[Task Manager] [8.0] Remove xpack.task_manager.index (#108111)" (#108398)
This reverts commit 9dce033408.
2021-08-12 14:46:46 -04:00
Jean-Louis Leysens f08005e0e7
[Reporting] Create reports with full state required to generate the report (#101048)
* very wip

* - Reached first iteration of reporting body value being saved with
  the report for **PDF**
- Removed v2 of the reporting since it looks like we may be able
  to make a backwards compatible change on existing PDF/PNG
  exports

* reintroduced pdfv2 export type, see https://github.com/elastic/kibana/issues/99890\#issuecomment-851527878

* fix a whol bunch of imports

* mapped out a working version for pdf

* refactor to tuples

* added v2 pdf to export type registry

* a lot of hackery to get reports generated in v2

* added png v2, png reports with locator state

* wip: refactored for loading the saved object on the redirect app URL

* major wip: initial stages of reporting redirect app, need to add a way to generate v2 reports!

* added a way to generate a v2 pdf from the example reporting plugin

* updated reporting example app to read and accept forwarded app state

* added reporting locator and updated server-side route to not use Boom

* removed reporting locator for now, first iteration of reports being generated using the reporting redirect app

* version with PNG working

* moved png/v2 -> png_v2

* moved printable_pdf/v2 -> printable_pdf_v2

* updated share public setup and start mocks

* fix types after merging master

* locator -> locatorParams AND added a new endpoint for getting locator params to client

* fix type import

* fix types

* clean up bad imports

* forceNow required on v2 payloads

* reworked create job interface for PNG task payload and updated consumer code report example for forcenow

* put locatorparams[] back onto the reportsource interface because on baseparams it conflicts with the different export type params

* move getCustomLogo and generatePng to common for export types

* additional import fixes

* urls -> url

* chore: fix and update types and fix jest import mocks

* - refactored v2 behaviour to avoid client-side request for locator
  instead this value is injected pre-page-load so that the
  redirect app can use it
- refactored the interface for the getScreenshot observable
  factory. specifically we now expect 'urlsOrUrlTuples' to be
  passed in. tested with new and old report types.

* updated the reporting example app to use locator migration for v2 report types

* added functionality for setting forceNow

* added forceNow to job payload for v2 report types and fixed shared components for v2

* write the output of v2 reports to stream

* fix types for forceNow

* added tests for execute job

* added comments, organized imports, removed selectors from report params

* fix some type issues

* feedback: removed duplicated PDF code, cleaned screenshot observable function and other minor tweaks

* use variable (not destructured values) and remove unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 18:40:19 +02:00
Mikhail Shustov 3950c436a7
Add execution context data to discover, vega and timelion (#108016)
* propagate exression context with vega fn

* add execution context for discover searches

* propagate execution context for timelion

* update descriptions
2021-08-12 17:03:58 +02:00
Sébastien Loix 338f7c5d7f
[Monaco editor]: Fix accessibility focus trap issue (#107292) 2021-08-12 11:00:29 -04:00
Stratoula Kalafateli 2ebdf3e629
[TSVB] Adds a color picker in percentiles and percentiles rank aggs (#107390)
* WIP - Improve the way that percentiles are rendered in TSVB

* Adds color picker to percentile and percentile ranks

* initialize color

* Be backwards compatible

* Fixes unit tests

* Add a unit test for percentile rank

* Fix unit tests

* Address PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 14:53:00 +03:00
Marco Liberati dc2a1e1cea
[Lens] Introduce new layer types (#107791) 2021-08-12 08:29:31 +02:00
Lukas Olson a2347b2d77
Add scoring support to KQL (#103727)
* Add ability to generate KQL filters in the "must" clause
Also defaults search source to generate filters in the must clause if _score is one of the sort fields

* Update docs

* Review feedback

* Fix tests

* update tests

* Fix merge error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 21:45:01 -07:00
Spencer 73e7db5ead
[scripts/type_check] don't fail if --project is a composite project (#108249)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-11 15:32:28 -07:00
Chris Roberson 9dce033408
[Task Manager] [8.0] Remove xpack.task_manager.index (#108111)
* Remove support for the config field index

* Fix type issues

* Remove references from a few more places
2021-08-11 16:23:58 -04:00
Tim Sullivan 6563fad7be
[Reporting] implement content changes per feedback (#108068) 2021-08-11 13:13:40 -07:00
Spencer c39c1292eb
[build-ts-refs] normalize paths before writing them to the FS (#108246)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-11 16:08:10 -04:00
Alejandro Fernández Haro def97bd734
[Status UI] Use the new output format of API GET /api/status (#107937) 2021-08-11 16:56:23 +01:00
Spencer c0395c9ef6
[build_ts_refs] improve caches, allow building a subset of projects (#107981)
* [build_ts_refs] improve caches, allow building a subset of projects

* cleanup project def script and update refs in type check script

* rename browser_bazel config to avoid kebab-case

* remove execInProjects() helper

* list references for tsconfig.types.json for api-extractor workload

* disable composite features of tsconfig.types.json for api-extractor

* set declaration: true to avoid weird debug error

* fix jest tests

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-10 22:12:45 -07:00
Nick Peihl 118ef56c2e
Update EMS landing page url (#108102) 2021-08-10 15:23:59 -07:00
Ryan Keairns ca2a591526
Add monaco default style options (#107930)
* Add monaco default style options

* Update snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 16:02:58 -05:00
Joe Portner c21272cc5b
Sharing saved objects developer guide (#107099) 2021-08-10 16:02:45 -04:00
Devon Thomson faf6482e01
[Input Controls] Options List Embeddable, Factory & Frame (#106877)
Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
Co-authored-by: andreadelrio <delrio.andre@gmail.com>
2021-08-10 15:48:07 -04:00
Tiago Costa ff9611b136
chore(NA): moving @kbn/storybook to babel transpiler (#107547)
* chore(NA): moving @kbn/storybook to babel transpiler

* chore(NA): fix import from kbn/storybook

* chore(NA): fix public interface

* chore(NA): fix kbn-storybook preset

* chore(NA): update types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 20:26:46 +01:00
Dmitry Tomashevich 328c36dedc
[Discover] Deangularize classic table (#104361)
* [Discover] move angular directives to react compoenents

* [Discover] add support of infiniteScroll

* [Discover] support paginated classic table

* [Discover] refactor docTable component, remove redundant angular code

* [Discover] remove redundant files

* [Discover] fix some functional tests and pgination

* [Discover] fix functionals

* [Discover] code refactoring, adding tests

* [Discover] update tests

* [Discover] fix embeddable view of doc table

* [Discover] update pagination view

* [Discover] remove unused translations

* [Discover] improve readability, fix pagination

* [Discover] adjust isFilterable check

* [Discover] improve doc viewer table row display

* [Discover] clean up implementation, fix functional test

* [Discover] fix skip button

* [Discover] update test snapshot

* [Discover] update test

* [Discover] simplify pagination, update layout in embeddable

* [Discover] fix functional, remove redundant i18n translations

* [Discover] return indexPatternField

* [Discover] add support of fixed footer for embeddable

* [Discover] move doc_table to apps/components folder, update test

* [Discover] fix imports

* [Discover] update imports, beautify code

* Update src/plugins/discover/public/application/apps/main/components/doc_table/doc_table_wrapper.tsx

Co-authored-by: Tim Roes <mail@timroes.de>

* [Discover] remove redundant styles

* [Discover] fix lining

* [Discover] fix discover grid embeddable

* [Discover] fix by comments

* [Discover] return extraWidth, describe the problem

* [Discover] fix unresolved conflicts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tim Roes <mail@timroes.de>
2021-08-10 18:21:08 +03:00
Patryk Kopyciński 9edcf9e71e
[Osquery] RBAC (#106669) 2021-08-10 16:36:27 +02:00
Jonathan Budzenski 1498a91796
[build] Clean images from png-js. Closes #107617 (#107975) 2021-08-10 10:09:33 -04:00
Anton Dosov 6450df1885
[FieldFormats] Add editors tests (#107770) 2021-08-10 09:44:24 -04:00
Christiane (Tina) Heiligers cdf90aae42
Adds new SavedObjectsRespository error type for 404 that do not originate from Elasticsearch responses (#107301)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 06:16:55 -07:00
Marius Dragomir 2ddaddc2e9
[Sample Data] Add new Lens vis from eCommerce dashboard to the Vis Library (#107746)
* Add ecommerce dashboard lens vis to library

* layout and existing translations

* remove old replace from maps

* remove unused translation string

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 07:33:43 -04:00
Alexey Antonov ea6c904597
[Vega] Add the ability to override runtime_mappings (#107875)
* Add the ability to override runtime_mappings

Closes: #107855

* runtime_mappings not correctly logged in Inspect panel.
2021-08-10 14:17:56 +03:00
Liza Katz 204efae5bf
[Data cleanup] unify serializable state (#107745)
* Use Serializable from package

* Rename to align with core

* fix

* more replacements

* docssss

* fix

* Move it to @kbn/utility-types and remove core export

* buildy build

* tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 13:03:48 +02:00
Uladzislau Lasitsa e0f154613e
[Timelion] Fix behavior for points and bars in timelion (#107398)
* Fix behavior for points and bars

* Fix lint

* Fix color for points

* Some fixes

* Fix lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 11:34:09 +03:00
Matthias Wilhelm 87db81505d
[Discover] Apply histogram layout of new table to classic table layout (#107766)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 10:17:38 +02:00
Mikhail Shustov 5480c4d0f4
[Execution context] Add nested context support (#107523)
* Add nested context support

* remove execution context service on the client side

ExecutionContextContaier is not compatible with SerializableState, so I had to fall back to passing context as POJO. With this change, using a service looks like overhead.

* update docs

* fix test

* address comments from Josh

* put export back

* update docs

* remove outdated export

* use input.title for unsaved vis

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 08:53:40 +02:00
Christiane (Tina) Heiligers 5d9b9a15d8
Adds team details to core/telemetry/localization-owned plugins (#107843)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-09 20:45:25 -04:00
Caroline Horn be7ec79006
[SolutionNav] Fixed tabindex and collapsible functionality (#107462)
* Fixed `tabIndex`
* Added embellishment back in
* Fixed the collapse button visibility and usability
2021-08-09 13:36:54 -04:00
Matthew Kime dcd628b8a3
remove IFieldType references (#107355)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-09 12:25:41 -05:00
Josh Dover f3d8431dd6
Add test harness for SO migration integration tests (#106116)
Co-authored-by: Mikhail Shustov <restrry@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-09 13:08:56 -04:00
Tiago Costa 2558194f80
chore(NA): moving @kbn/config to babel transpiler (#107763)
* chore(NA): moving @kbn/config to babel transpiler

* chore(NA): fix types

* chore(NA): include missing deps

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-09 16:20:01 +01:00
Liza Katz 21f4de833c
Clear out unused imports (#107638)
* Clear out unused imports
Add public to some exports

* types and funzies

* flattenHitWrapper

* t

* restore

* SAD

* bad merge
2021-08-09 16:35:10 +02:00
Liza Katz 8d90df3bca
filter FilterBar suggestions by time (according to flag) (#107192)
* filter filter bar suggestions by time (according to flag)
add api integration tests for autocomplete apis

* test fix: setDefaultAbsoluteRange

* timeRangeForSuggestionsOverride

* revert

* tests

* doc

* set time range

* Added tests following code review

* eslint

* fun-ctional tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-09 15:58:27 +02:00
Josh Dover e7a05c0110
Move src/core/TESTING.md to mdx (#107039)
* Move src/core/TESTING.md to mdx

* PR comments

* Fix conventions link

* Fix FTR api config link
2021-08-09 14:03:35 +02:00
Dave Snider 957ef4ca95
Fix default route link on kibana homepage (#107809) 2021-08-06 09:32:21 -04:00
Matthew Kime d44df74598
[index patterns] index pattern create modal (#101853)
index pattern creation flyout
2021-08-05 22:58:57 -05:00
Alejandro Fernández Haro 74107a1fbd
Disable Product check in @elastic/elasticsearch-js (#107642)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-05 15:55:41 -04:00
Spencer 02c571e362
[scripts/build_ts_refs] when using --clean initialize caches (#107777)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-05 12:09:56 -07:00
Chandler Prall c2e834353e
Upgrade EUI to v36.1.0 (#107231)
* Upgrade eui to v36.1.0

* Jest snapshots

* More jest snapshots; one test assertion update

* Bump core page load limit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-05 13:00:32 -06:00
Joe Portner 66dbb88451
Allow optional OSS to X-Pack dependencies (#107432) 2021-08-05 13:58:24 -04:00
Joe Portner 7fe2d177a1
Add SavedObjectsUtils.getConvertedObjectId function (#107767) 2021-08-05 13:49:22 -04:00
Cauê Marcondes ca6182cd20
[APM] Remove the feature flag for the Service overview (Kibana advanced setting) (#107657) 2021-08-05 18:11:01 +02:00
Nicolas Chaulet 3438a70ec3
[Fleet] Replace usages of EuiCodeEditor by CodeEditor (#107434) 2021-08-05 11:40:40 -04:00
Anton Dosov af3a976e17
[FieldFormats] Break from data plugin (#107173) 2021-08-05 16:25:22 +02:00
Ahmad Bamieh b6a9f0323b
[Telemetry] Add telemetry.sendUsageTo config (#107396) 2021-08-05 17:15:37 +03:00
Alexey Antonov f62a0a1f76
[Lens] Synchronize cursor position for X-axis across all Lens visualizations in a dashboard (#106845)
* [Lens] Synchronize cursor position for X-axis across all Lens visualizations in a dashboard

Closes: #77530

* add mocks for active_cursor service

* fix jest tests

* fix jest tests

* apply PR comments

* fix cursor style

* update heatmap, jest

* add tests

* fix wrong import

* replace cursor for timelion

* update tsvb_dashboard baseline

* fix CI

* update baseline

* Update active_cursor_utils.ts

* add debounce

* remove cursor from heatmap and pie

* add tests for debounce

* return theme order back

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 22:20:03 +03:00
Diana Derevyankina 2605bd81cf
[Timelion Viz] Add functional tests (#107287)
* First draft migrate timelion to elastic-charts

* Some refactoring. Added brush event.

* Added title. Some refactoring

* Fixed some type problems. Added logic for yaxes function

* Fixed some types, added missing functionality for yaxes

* Fixed some types, added missing functionality for stack property

* Fixed unit test

* Removed unneeded code

* Some refactoring

* Some refactoring

* Fixed some remarks.

* Fixed some styles

* Added themes. Removed unneeded styles in BarSeries

* removed unneeded code.

* Fixed some comments

* Fixed vertical cursor across Timelion visualizations of a dashboad

* Fix some problems with styles

* Use RxJS instead of jQuery

* Remove unneeded code

* Fixed some problems

* Fixed unit test

* Fix CI

* Fix eslint

* Fix some gaps

* Fix legend columns

* Some fixes

* add 2 versions of Timeline app

* fix CI

* cleanup code

* fix CI

* fix legend position

* fix some cases

* fix some cases

* remove extra casting

* cleanup code

* fix issue with static

* fix header formatter

* fix points

* fix ts error

* Fix yaxis behavior

* Fix some case with yaxis

* Add deprecation message and update asciidoc

* Fix title

* some text improvements

* [Timelion Viz] Add functional tests

* Add more complex cases for _timelion

* Update test expected data

Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-08-04 21:56:46 +03:00
Yaroslav Kuznietsov dbab7d9f70
[Canvas] Expression progress (#104457)
* Added `expression_progress` plugin.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 11:33:01 +03:00
Corey Robertson 91e64e0afa
Fix bug with expression reference extraction (#107309)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 12:30:36 -04:00
Aleh Zasypkin ed28155165
Implement interactiveSetup plugin server side functionality: setup layout (#105222) 2021-08-03 15:52:11 +02:00
Stratoula Kalafateli e3572e306b
[Visualizations] Fixes the wrong desciption of the kibana.json file (#107503) 2021-08-03 16:42:57 +03:00
Vadim Kibana 0df0255bbf
Make url saved object in SO app clickable (#106646) 2021-08-03 12:03:42 +02:00
Stratoula Kalafateli 4d3aed52a1
[Visualizations] Adds dimensionName in datatable meta info (#107265)
* [Visualizations] Adds dimensionName in datatable meta info

* Delete unused file

* fix i18n

* Another fix of i18n

* Fix translations

* Remove double types

* Fix types

* Another type fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 12:05:55 +03:00
Liza Katz 7af1ec246d
[Data] Align deprecation messages (#107175)
* Move more utils to package and cleanup API

* docs and imports

* better imports

* change comment

* Better docs

* typos

* typo

* Align deprecation messages

* fixes

* casting

* Code review

* Update meta_filter.ts

* Update types.ts

* Deprecate by 8.1

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 09:18:44 +02:00