Commit graph

4736 commits

Author SHA1 Message Date
Marco Vettorello ff1b014c7b
Update dependency @elastic/charts to v37 (master) (#113968) 2021-10-12 16:36:18 +02:00
Anton Dosov f944389352
[bfetch] Pass compress flag in query instead of headers (#113929) 2021-10-11 17:30:18 +02:00
Maja Grubic 9d2c536ccb
[Discover] Unskip Painless date functional test (#114224)
* [Discover] Unskip functional test

* Remove comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-11 11:49:20 +02:00
Yaroslav Kuznietsov 2498b6212c
[MetricVis] Move the expression function and renderer to a separate plugin. (#113427)
* Added expressionMetricVis plugin.

* splitted metric vis_type and expression.

* Fixed check errors.

* Fixed plugin docs.

* updated snapshots.

* Added code owner to expressionMetricVis.

* updated chart docs.

* Changed the `Metric` type export.

* Added storybook.

* Added bucket story.

* Added without label story.

* Added "with custom font size" story.

* Added other stories.

* Added DatatableColumn accessors.

* Replaced Metric with MetricOptions.

* Fixed MetricOptions.any

* updated the check of min/max existence.

* Updated function/renderer names.

metricRenderer -> metricVisRenderer
metricFunction -> metricVisFunction

* updated snapshot.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-08 08:42:44 +03:00
Joe Portner 64f37e7414
Remove securityOss plugin (#113946) 2021-10-07 17:57:37 +02:00
Robert Oskamp f7174809e1
Functional tests - fix retry.waitFor not timing out correctly (#113905)
This PR fixes bugs in test services, where retry.waitForWithTimeout and find.descendantExistsByCssSelector do not time out correctly.
2021-10-07 11:23:33 +02:00
spalger 3a9aa78458 skip flaky suite (#105171) 2021-10-06 18:16:57 +00:00
spalger ce489a1131 skip flaky suite (#113130) 2021-10-06 18:06:05 +00:00
Lee Drengenberg 00de78da2b
refactor a11y tests to group by data sets (#113876)
* test if 2s sleep fixes flakey test

* switch from sleep to retry.waitFor

* remove .only, add comments to config file about sample data add/remove

* refactor a11y tests for sample data load

* refactor a11y tests for sample data load

* cleanup comments

* cleanup comments

* fix eslint errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-06 11:09:03 -05:00
Pierre Gayvallet 0e406d167e
add coreOverall$ to internal status contract (#113729)
* add coreOverall$ to internal status contract

* add unit tests

* re-patch flaky tests

* add and improve tests
2021-10-06 13:49:46 +02:00
Dmitry Tomashevich 2c8686770e
[Discover] Redirect to main page when route not found (#113678)
* [Discover] redirect to main page on route not found discover error

* [Discover] remove services from dependencies

* [Discover] apply suggestions

* [Discover] return invalid link, but make it not clickable

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-06 10:59:28 +03:00
Clint Andrew Hall 4f85f5e841
[Unified Integrations] Create Services, Storybook, Replacements Card; add to Fleet (#113816)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-05 15:29:05 -04:00
Thomas Neirynck f46393d616
[Fleet] Add language clients (#113666) 2021-10-05 13:27:34 -04:00
Stratoula Kalafateli 65df961b5c
[Dashboard] Adding timelion panel without asking for the index pattern (#113896)
* [Dashboard] Adding timelion panel without asking for the index pattern

* Adds a functional test
2021-10-05 16:31:39 +03:00
Pierre Gayvallet a4b74bd398
[8.0] Remove legacy logging (#112305)
* remove kbn-legacy-logging package

* remove legacy service

* remove legacy appender

* remove LegacyObjectToConfigAdapter

* gix types

* remove @hapi/good / @hapi/good-squeeze / @hapi/podium

* remove `default` appender validation for `root` logger

* remove old config key from kibana-docker

* fix FTR config

* fix dev server

* remove reference from readme

* fix unit test

* clean CLI args and remove quiet option

* fix type

* fix status test config

* remove from test config

* fix snapshot

* use another regexp

* update generated doc

* fix createRootWithSettings

* fix some integration tests

* another IT fix

* yet another IT fix

* (will be reverted) add assertion for CI failure

* Revert "(will be reverted) add assertion for CI failure"

This reverts commit 78d5560f9e.

* switch back to json layout for test

* remove legacy logging config deprecations

* address some review comments

* update documentation

* update kibana.yml config examples

* add config example for `metrics.ops`

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-05 13:30:56 +02:00
Dmitry Tomashevich 158b396ae1
[Discover] Fix navigation to a new from saved search and saved query, fix discover:searchOnPageLoad (#112262)
* [Discover] fix saved search become active

* [Discover] add another fix to be consistent with data fetching code

* [Discover] simplify solution

* [Discover] add functionals

* [Discover] fix saved query bug, add functionals

* [Discover] fix functionals

* [Discover] fix functional test

* [Discover] split saved query tests

* [Discover] preselect logstash index pattern

* [Discover] remove saved query after test complete

* [Discover] change query fill order

* [Discover] try to fix unrelated functional test

* [Discover] one more fix

* [Discover] try to fix one more problem

* [Discover] fix commonly used time range test

* [Discover] revert uisettings init in before statement, do small adjustments

* [Discover] fix unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-05 14:08:54 +03:00
Lee Drengenberg d038f1e214
don't wait for nav:not(.ng-hide) on status page (#113674)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 21:07:04 +01:00
Tre 240716d2ee
[QA][SO INFO SVC] Drop in-test jq filtering (#113655) 2021-10-04 21:02:51 +01:00
Matthew Kime bbb2e96dd5
[data views] Move data views api from data plugin and into its own (#113497)
* initial pass at moving data views into own plugin

* require expressions plugin, fix META_FIELDS reference

* bundle limits and localization

* fix integration test

* update plugin list and jest config

* type fixes

* search fixes

* fix localization

* fix mocks

* fix mocks

* fix stub

* type fixes

* fix import on test file

* path fixes

* remove shorted dotted from data plugin

* more todo removal

* eslint fixes

* eslint fix

* simplify data views server plugin

* simplify data views server plugin

* simplify data views server plugin

* fix imports on api routes

* fix imports on api routes

* update plugin list

* ts fixes

* ts fixes

* add deprecation notice

* fix circular dependency and api integration test

* fix circular dependency and api integration test

* rename types for better clarity

* path fixes

* jest.config and tsconfig cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 12:05:22 -05:00
Dzmitry Lemechko 28702ff1c6
[test/page_objects] validate selected dates for timepicker (#113597)
* [test/page_objects] validate selected dates for timepicker

* unskip flaky test

* fix types check failure

* update tests

* update message

* unskip more tests
2021-10-04 19:00:41 +02:00
Dominique Clarke 1ff02e1da6
[Observability] [Exploratory View] Add exploratory view multi series (#113464)
* Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)"

This reverts commit 1649661ffd.

* Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)"

This reverts commit 1649661ffd.

* [Observability] [Exploratory View] Create multi series feature branch (#108079)

* Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)"

This reverts commit 1649661ffd.

* Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)"

This reverts commit 1649661ffd.

* update types

* update tests

* [Observability] exploratory view design issues (#111028)

* remove custom y axis labels for better clarity

* move add series button to the bottom

* disable auto apply

* fix missing test

* When series count changes, collapse other series. (#110894)

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

* Feature/observability exploratory view multi series panels (#111555)

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

* [Exploratory View] Fix date range picker on secondary series (#111700)

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

* [Exploratory View] Collapse series only on add, not delete (#111790)

* [Exploratory view] Remove preview panel (#111884)

* [Exploratory view] implement popovers for data type and metric type (#112370)

* implement popovers for data type and metric type

* adjust types

* add IncompleteBadge

* make report metric dismissable

* show date-picker even if metric is undefined

* adjust styles of expanded series row

* add truncation to series name

* move incomplete badge and add edit pencil

* add tooltip to data type badge

* adjust content

* lint

* delete extra file

* move filters row

* adjust name editing behavior

* adjust filter styles

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

* move cases button to top

* fix types

* more types :(

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: shahzad31 <shahzad31comp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-10-04 10:05:01 -04:00
Tiago Costa fefc34e28f
skip failing es promotion suites (#113745) 2021-10-04 13:08:02 +01:00
Tiago Costa a99bdcacab
skip failing es promotion suites (#113744) 2021-10-04 13:02:23 +01:00
Tre 0b4a8c081c
[QA][SO INFO SVC] Add jq filtering (#113302) 2021-10-01 16:52:20 +01:00
Thomas Neirynck a565eaa39d
[Fleet] Show beats replacements in integration browser (#113291)
Display both beats and epr-packages in the integration browser. When there is overlap, the EPR-package equivalent is displayed. When the EPR-package is not yet ga, the beat-equivalent is displayed.
2021-10-01 08:11:25 -04:00
Shahzad fe9b5332e1
[Uptime] Run Sample uptime tests using @elastic/synthetics (#112128)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-30 13:58:38 +02:00
Thomas Neirynck 1090a356f3
[Fleet] Register Sample Data (#113200) 2021-09-29 18:21:04 -04:00
Matthias Wilhelm 8659f456bc
[Discover] Unksip and improve index pattern without time field functional test (#112698) 2021-09-29 13:52:24 +02:00
Stratoula Kalafateli c63f4be4ca
Fixes error with percentiles on index with many docs (#113216)
* Fixes error with metric viz and percentiles on index with many docs

* Unskip the metric viz suite

* Adds a unit test
2021-09-29 13:47:41 +03:00
Diana Derevyankina 1459839e37
Failing test: Chrome UI Functional Tests.test/functional/apps/visualize/_tsvb_table·ts - visualize app visualize ciGroup12 visual builder table should display correct values on changing metrics aggregation (#112216)
* Add wait for finish header loading

* Add header waitUntilLoadingHasFinished to visChart waitForVisualizationRenderingStabilized

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-29 09:55:54 +03:00
Lee Drengenberg 200d0353d1
fix skipped test test/accessibility/apps/dashboard·ts - Dashboard create dashboard button #111233 (#112872)
* test if 2s sleep fixes flakey test

* switch from sleep to retry.waitFor

* remove .only, add comments to config file about sample data add/remove

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-28 13:50:22 -05:00
Pierre Gayvallet daaa6f8c19
add SavedObjectType.management.displayName (#113091)
* add `SavedObjectType.management.displayName`

* fix unit tests

* add FTR test

* update generated doc

* also update labels

* fix unit tests
2021-09-28 13:49:00 +02:00
Tiago Costa 7010b67f2b
skip flaky suite (#112920) 2021-09-28 11:57:39 +01:00
Matthias Wilhelm c4ddb01d77
[Discover] Add "Chart options" menu (#112453)
Co-authored-by: Tim Roes <mail@timroes.de>
2021-09-28 10:53:29 +02:00
Vadim Kibana c0bf0540dc
Short URLs (#107859) 2021-09-28 10:34:25 +02:00
Michael Dokolin 16aa9bf85f
[Expressions] Partial results example plugin (#113001)
* Update mapColumn expression function implementation to support partial results
* Add partial results example plugin
2021-09-27 18:54:05 +02:00
Thomas Neirynck be1ee57a03
[Fleet] Add custom integrations API (#112481)
Add a new plugin `custom_integrations`. This plugin allows for the registration of data-integrations tutorials. The Fleet-integrations app will display these alongside the existing Elastic Agent integrations.
2021-09-27 11:54:43 -04:00
Maja Grubic c0d68aac32
[Saved Search Embeddable] Add view action (#112396)
* [Saved Search Embeddable] Add view action

* Fix typescript and lint errors; add tests

* Add a functional test

* Fix a unit test

* Renaming action

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-27 16:14:49 +02:00
Stratoula Kalafateli 2fd7f85877
[TSVB] Resolves the flakiness on url drilldowns functional tests (#112809)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-27 12:32:24 +03:00
Jonathan Budzenski bffe5cfc47
[ci] sync storybook builds between jenkins and buildkite (#113071) 2021-09-24 13:35:13 -04:00
Jonathan Budzenski 09e7093b7d skip flaky suite. #112812 2021-09-23 17:10:26 -05:00
Jonathan Budzenski cbbf0fa6ce skip flaky suite. #107028 2021-09-23 10:22:37 -05:00
Joe Reuter fa624567d6
fix permissions for cloud test (#112568) 2021-09-23 10:13:55 +02:00
Rashmi Kulkarni 97e232f105
test/functional/apps/management/_test_huge_fields.js (#112878) 2021-09-22 17:14:35 -07:00
Alexey Antonov 61410a30a5
[vega] Handle removal of deprecated date histogram interval (#109090)
* [vega] Handle removal of deprecated date histogram interval

Fixes: #106352

* fix CI

* add deprecation_interval_info

* add test

* Update vega_info_message.tsx

* fix types

* Update es_query_parser.ts

* apply comments

* fix error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Uladzislau Lasitsa <vlad.lasitsa@gmail.com>
2021-09-22 19:08:33 +03:00
Jonathan Budzenski 1adb492e15 skip flaky suite. #111234 2021-09-22 09:37:25 -05:00
Stratoula Kalafateli 6bf766abb9
Fixes flakiness in timelion viz functional test (#112805)
* Fixes flakiness in timelion viz functional test

* Add sleep
2021-09-22 17:28:26 +03: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
Brian Seeders e9e08d0928
[CI] Balance ci groups (#110711) 2021-09-22 00:36:25 -04: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
Tyler Smalley ce6ed0875a skip flaky suite (#111922)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-21 12:24:39 -07: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
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
Tyler Smalley 6c73b2ad2f
[CI] Increase heap for Jest Integration (#112594)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-20 12:54:00 -07:00
Matthias Wilhelm 6f2815a764
[Discover] Improve saved query management functional service (#112055) 2021-09-20 20:13:09 +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
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
Jonathan Budzenski a61afb357d
[package testing] Update logs path (#112007) 2021-09-16 16:26:59 -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
Brian Seeders be51f0a574
[Buildkite] Hourly CI / tracked branch pipeline (#111785) 2021-09-16 11:28:07 -04: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
Tre 50eb5d9828
[Archive Migration][Partial] discover apps-management (#110444)
* [Archive Migration][Partial] discover apps-management

Comes from https://github.com/elastic/kibana/pull/102827

Helps with https://github.com/elastic/kibana/pull/108503

Only include the changes under the
test/functional/apps/management folder.

* Remove the index pattern, that the test
creates.

* Drop beforeEach(), in favour of before(),
since there's only one test.

* Drop outdated comment,
drop these three cleanup lines
as the unload should handle it.

* Just keep one cleanup.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-15 10:48:16 +01:00
Tre 458a57939b
[QA][SO INFO SVC] Docs for using with jq (#112129) 2021-09-14 17:40:00 +01:00
Tre 9762da497d
[QA][SO INFO SVC] Add json only option (#112061) 2021-09-14 15:31:08 +01: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
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
Mikhail Shustov 4a2acad218
Functional tests for execution context propagation in alerting and task manager plugins (#111179)
* move execution context tests to x-pack folder

* add execution context tests for alerts and tasks

* cleanup tests

* remove obsolete test folder

* use ToolingLog instead of console.log
2021-09-14 11:52:33 +02: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
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
Maja Grubic 22d253f846
[Discover] Fix a functional test 'index pattern with unmapped fields' (#111323)
* [Discover] Fix a functional test

* Fix failing type

* Select index pattern first

* Select index pattern first

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 16:44:03 +02:00
Matthias Wilhelm f3dc980bb9
[Discover] Fix permissions for runtime fields functional test (#111925) 2021-09-13 16:03:15 +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
Stratoula Kalafateli d60fab1413
[VisEditors] Add code ownership to the functional tests (#111680)
* [VisEditors] Add code owenership to the functional tests

* Remove the unnecessary imports

* Revert

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 11:36:14 +03: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
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
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
Jonathan Budzenski 97f9497269
[ci] Update list of storybooks to build (#111556) 2021-09-08 14:40:03 -05:00
Matthias Wilhelm 284bc6663c
[Discover] Cleanup legacy code fragments (#110646) 2021-09-08 19:55:40 +02: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
Tre 094f2c9b81
[Archive Migration][Partial] discover apps-discover (#110437)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 10:32:42 +01:00
Matthias Wilhelm 1b1e936320
[Discover] Fix indices permission for multiline test (#111284) 2021-09-08 07:41:01 +02: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
Tre f0a05e9b3f
[Archive Migration][Partial] discover apps-home (#110440) 2021-09-07 16:09:31 +01:00
Matthew Kime 7e9d2965da
remove skip test - no, _id is not aggregatable (#111241) 2021-09-07 08:52:55 -05:00
Dmitry Tomashevich 0d009438d1
[Discover] Add permissions for context size test (#109391)
* [Discover] add permissions for flaky context test

* [Discover] apply test_logstash_reader role

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 15:55:08 +03: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
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
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
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
Jonathan Budzenski 95423242ac
[package testing] Update logging and pid configuration (#111059)
With the merge of #98213, pid and log file settings were moved from
command line options to kibana.yml.  Package tests use a non-default
kibana.yml and these settings were not applied.  This updates our
configuration to include these settings.
2021-09-02 20:11:45 -04: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
Poff Poffenberger c692ad3724
Add correct roles to test user for functional tests in dashboard (#110880)
* Add animals role to test user for functional tests in dashboard

* Fix two more dashboard tests by applying proper roles

* Restore test user defaults

* Fix one last dashboard test

* forgot security service

* Cleanup
2021-09-02 16:35:12 -05:00
Diana Derevyankina 8a357fdabd
Failing test: Chrome UI Functional Tests.test/functional/apps/visualize/_tsvb_table·ts - visualize app visualize ciGroup12 visual builder table should display correct values on changing metrics aggregation (#110784) 2021-09-02 12:22:29 +03:00
Cauê Marcondes 2fe56f9793
[APM] tests restructure (#110703)
* refactoring test

* improving test structure

* improvements

* improving readmes

* readme

* test

* fixing ts issue

* addressing pr comments

* fixing readme files

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 16:42:33 -04:00
Tyler Smalley 9850414b92
[ci] Removes all verbose flags (#110842)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-01 12:05:28 -07:00
Ahmad Bamieh 249c5fbf9a
[Core deprecations] Add title field to deprecation info (#109840) 2021-09-01 13:10:25 +03:00