Commit graph

4579 commits

Author SHA1 Message Date
Matthew Kime d560d74bb9
[data views] rename files from index patterns to data view (#112047) (#112408)
* rename directories

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/data/common/search/search_source/search_source.test.ts
#	src/plugins/data/public/data_views/data_views/on_unsupported_time_pattern.tsx
#	src/plugins/data/public/data_views/index.ts
#	src/plugins/data/server/search/search_service.ts
2021-09-16 10:29:44 -04:00
Matthias Wilhelm 597e69c9db
[Discover] Set ownfocus to false when displaying the document flyout (#108646) (#112379)
# Conflicts:
#	test/functional/apps/discover/_data_grid_doc_table.ts
2021-09-16 05:44:13 -04:00
Kibana Machine a0e992aded
[Archive Migration][Partial] discover apps-management (#110444) (#112230)
* [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>

Co-authored-by: Tre <wayne.seymour@elastic.co>
2021-09-15 12:15:16 +00:00
Tre dd85364998
[QA][SO INFO SVC] Add json only option (#112061) (#112144)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-15 08:12:57 -04:00
Pierre Gayvallet deaf53e484
[7.x] Add deprecation warning when unknown SO types are present (#111268) (#112112)
* 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
# Conflicts:
#	src/core/server/saved_objects/saved_objects_service.ts

* fix types
2021-09-15 07:16:53 -04:00
Kibana Machine e1edcdf662
[QA][SO INFO SVC] Docs for using with jq (#112129) (#112143)
Co-authored-by: Tre <wayne.seymour@elastic.co>
2021-09-14 12:51:20 -04:00
Stratoula Kalafateli fc2feaff7a
[7.x] [Datatable] Removes the old implementation (#111339) (#112059)
* [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>
# Conflicts:
#	scripts/functional_tests.js

* Fix conflict

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 11:10:29 -04:00
Uladzislau Lasitsa fb6e27ef88
[TSVB] Doesn't work correctly with pipeline aggregations in "entire time range" mode (#105073) (#112076)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 10:04:02 -04:00
Mikhail Shustov 6eb230d23c
Functional tests for execution context propagation in alerting and task manager plugins (#111179) (#112066)
* 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
# Conflicts:
#	scripts/functional_tests.js
#	x-pack/scripts/functional_tests.js
2021-09-14 08:43:55 -04:00
Kibana Machine f932175c37
[data views] allow fields that start with an underscore in the field list (#111238) (#111976)
* stop filtering out fields that start with underscore

Co-authored-by: Matthew Kime <matt@mattki.me>
2021-09-13 15:02:28 -04:00
Matthias Wilhelm e8f3136330
[Discover] Fix a functional test 'index pattern with unmapped fields' (#111323) (#111973)
* [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>

Co-authored-by: Maja Grubic <maja.grubic@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 14:05:20 -04:00
Kibana Machine 27969260d1
[Discover] Fix permissions for runtime fields functional test (#111925) (#111956)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-09-13 12:27:14 -04:00
Diana Derevyankina b000066d64
[TSVB] Support custom field format (#101245) (#111928)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
2021-09-13 07:18:34 -04:00
Stratoula Kalafateli be8bc70601
[VisEditors] Add code ownership to the functional tests (#111680) (#111927)
* [VisEditors] Add code owenership to the functional tests

* Remove the unnecessary imports

* Revert

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
2021-09-13 07:01:49 -04:00
Uladzislau Lasitsa 7c49a2d7b7
[7.x] Timelion App removal (#110255) (#111851)
* 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>

* Fix CI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-09-10 15:57:40 -04:00
Rudolf Meijering ca2980eb19
[7.x] legacy dashboards import/export API: deprecation logs and usage data (#111283) (#111710)
* 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
# Conflicts:
#	.github/CODEOWNERS
#	docs/developer/plugin-list.asciidoc
#	src/core/server/saved_objects/routes/legacy_import_export/lib/index.ts

* Fix type errors
2021-09-10 06:50:29 -04:00
Greg Thompson 77a26dacd1
Upgrade EUI to v37.6.0 (#110998) (#111799)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 18:16:16 -04:00
Kibana Machine df07fbc414
[ci] Update list of storybooks to build (#111556) (#111640)
Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-09-08 18:01:35 -04:00
Kibana Machine 9df2914200
[Discover] Cleanup legacy code fragments (#110646) (#111608)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-09-08 20:17:06 +00:00
Stratoula Kalafateli 705d2b07c8
[7.x] [Vislib] Removes old implementation of xy chart (#110786) (#111558)
* [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>
# Conflicts:
#	docs/management/advanced-options.asciidoc
#	test/functional/screenshots/baseline/area_chart.png

* Fixes

* Remove setting from docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 14:41:12 -04:00
Kibana Machine fb186a465d
[Archive Migration][Partial] discover apps-discover (#110437) (#111505)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tre <wayne.seymour@elastic.co>
2021-09-08 11:56:54 +00:00
Kibana Machine 362a5253a5
[Discover] Fix indices permission for multiline test (#111284) (#111490)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-09-08 04:07:28 -04:00
Kibana Machine 6155af332a
remove skip test - no, _id is not aggregatable (#111241) (#111390)
Co-authored-by: Matthew Kime <matt@mattki.me>
2021-09-08 04:34:09 +00:00
Devon Thomson 936e758786
[Dashboard] Retain Tags on Quicksave (#111015) (#111446)
* fixed missing tags api when loading saved dashboard. Added tests
2021-09-07 16:40:09 -04:00
Kibana Machine f768b06d77
[Archive Migration][Partial] discover apps-home (#110440) (#111405)
Co-authored-by: Tre <wayne.seymour@elastic.co>
2021-09-07 17:34:27 +00:00
Kibana Machine 5ff03f3f49
[Discover] Add permissions for context size test (#109391) (#111281)
* [Discover] add permissions for flaky context test

* [Discover] apply test_logstash_reader role

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

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
2021-09-06 15:16:34 +00:00
Kibana Machine 42b95d44f4
[Canvas] TagCloud (#106858) (#111257)
* 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>

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2021-09-06 06:31:10 -04:00
Tyler Smalley 7e096a0a79
[ci] Removes all verbose flags (#110842) (#111216)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-03 18:34:44 -04:00
Mikhail Shustov 88bfd3c2d2
Functional tests for execution context (#110299) (#111102)
* 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
# Conflicts:
#	scripts/functional_tests.js
2021-09-03 08:18:30 -04:00
Kibana Machine 8955d542a1
[package testing] Update logging and pid configuration (#111059) (#111073)
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.

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-09-03 02:30:07 +00:00
Devon Thomson 5078f4a370
[Dashboard] Read App State from URL on Soft Refresh (#109354) (#111052)
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 20:06:45 -04:00
Kibana Machine 71356091f0
Add correct roles to test user for functional tests in dashboard (#110880) (#111048)
* 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

Co-authored-by: Poff Poffenberger <poffdeluxe@gmail.com>
2021-09-02 19:56:31 -04:00
Diana Derevyankina 82d33bbe21
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) (#110953) 2021-09-02 07:42:09 -04:00
Kibana Machine a81693eddf
[APM] tests restructure (#110703) (#110908)
* 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>

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-09-01 19:15:51 -04:00
Ahmad Bamieh f85a7b9e7e
[7.x] [Core deprecations] Add title field to deprecation info (#109840) (#110776)
* merge conflicts

* fix snapshot
2021-09-01 12:06:21 -04:00
Stacey Gammon e7dbd91d3d
[7.x] Make owner attribute required on kibana.json (#108231) (#110215)
* 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>
# Conflicts:
#	dev_docs/tutorials/building_a_plugin.mdx
#	src/dev/code_coverage/ingest_coverage/integration_tests/fixtures/test_plugin/kibana.json
#	test/common/fixtures/plugins/coverage/kibana.json

* Update kibana.json

Add owner attribute

* Remove this json file. It was deleted.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 16:19:52 -04:00
Tim Roes bf5e982477
Split KibanaApp into VisEditors and DataDiscovery (#110588) (#110623)
* Split KibanaApp into VisEditors and DataDiscovery

* Add discover functional tests to codeowners

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	.github/workflows/project-assigner.yml
#	renovate.json5
#	test/plugin_functional/plugins/kbn_tp_custom_visualizations/kibana.json
2021-08-31 12:17:21 -04:00
Kibana Machine 3e84d05432
[Archive Migration][Partial] discover partial accessibility (#110073) (#110485)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tre <wayne.seymour@elastic.co>
2021-08-30 12:36:50 -04:00
Kibana Machine 9e06a9afcc
[7.x] [Discover] Remove Angular from doc viewer (#109368) (#109786)
* [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

* Update doc_views.ts

* Delete test/plugin_functional/test_suites/doc_views directory

* Update config.ts

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>
2021-08-26 15:44:38 -04:00
Kibana Machine cd5459a2a0
[Home app] Fix this references (#110207) (#110244)
* [Home app] Fix `this` references

* More readable if

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-08-26 16:43:35 +00:00
Kibana Machine 8875ce2a9a
[Lens] Inspect flyout should be available in editor mode. (#109656) (#110243)
* [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>

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-08-26 12:42:45 -04:00
Kibana Machine 5280e3523d
Open in dev tools button for request inspector (#109923) (#110123)
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.)

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-08-25 17:06:29 -04:00
Diana Derevyankina f274289504
Chore(TSVB): Replace aggregations lookup with map (#109424) (#110022)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-25 08:23:27 -04:00
Kibana Machine 9af96a8009
[Enterprise Search] Set up cypress-axe tests (#108465) (#109920)
* Set up cypress-axe

@see https://github.com/component-driven/cypress-axe

* DRY out Kibana axe rules into constants that Cypress can use

* Create shared & configured checkA11y command

+ fix string union type error
+ remove unnecessary tsconfig exclude

* Add Overview plugin a11y tests

* Add AS & WS placeholder a11y checks

- Mostly just re-exporting the shared command and checking for failures, I only ran this after the shared axe config settings and found no failures

* Configure our axe settings further to catch best practices

- notably heading level issues (thanks Byron for catching this!)

- however I now also need to set an ignore on a duplicate landmark violation caused by the global header (not sure why it's showing up - shouldn't it be out of context? bah)

- remove option to pass args into checkA11y - I figure it's not super likely we'll need to override axe settings per-page (vs not running it), but we can pass it custom configs or args later if needed

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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-08-24 21:28:49 +00:00
Kibana Machine b1c0879b11
Fix field formatters test on cloud (#109707) (#109851)
Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
2021-08-24 12:37:23 -04:00
Spencer b6c9f4b8fc
[ftr] rework ciGroup validation to remove JOBS.yml and avoid duplication (#109149) (#109324)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	.ci/jobs.yml
#	test/scripts/jenkins_code_coverage.sh

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-23 15:07:12 -04:00
Yaroslav Kuznietsov 94bdff6e8a
[Canvas] Expression tagcloud (#108036) (#109627)
* Added `expression_tagcloud` plugin.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-optimizer/limits.yml
2021-08-23 09:58:32 -04:00
Matthias Wilhelm f4f5a7035a
[Discover] Unskip discover tab field data functional tests (#107305) (#109589) 2021-08-23 05:41:49 -04:00
Anton Dosov 9e00e1e393
[IndexPatterns] No data experience to handle default Fleet assets (#108887) (#109511)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
# Conflicts:
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternsservice.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsservice.md
#	src/plugins/data/public/public.api.md
#	src/plugins/data/server/server.api.md

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-21 05:10:53 -04:00
Kibana Machine 2c44f26656
[Discover] Fix runtime fields editor test in cloud environment (#109367) (#109478)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-08-20 13:07:40 -04:00
Kibana Machine f9d9e8193a
[Flaky-tests] Fix SOM edit-saved-objects test (#109215) (#109245)
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-08-19 11:05:31 -04:00
Tiago Costa 755a9fe139
skip flaky suite (#95376) 2021-08-19 15:32:22 +01:00
Kibana Machine 613f0d95a6
Fix flakiness in load and save agg-based visualizations (#109066) (#109201)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2021-08-19 04:23:28 -04:00
Mikhail Shustov 9f78d17e8f
[Elasticsearch] remove legacy es client (#107619) (#109144)
* 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>
# Conflicts:
#	src/core/server/elasticsearch/legacy/scoped_cluster_client.test.ts
2021-08-18 15:41:25 -04:00
Josh Dover 76e9e96905
[7.x] Update onboarding interstitial to handle default Fleet assets (#108193) (#109074)
* Update onboarding interstitial to handle default Fleet assets (#108193)

# Conflicts:
#	test/functional/page_objects/common_page.ts

* Skip flaky test
2021-08-18 14:16:12 -04:00
Dominique Clarke 0312e29cdd
[Observability][Exploratory View] revert exploratory view multi-series (#109091) 2021-08-18 10:56:31 -04:00
Diana Derevyankina f048d82ed0
Failing test: Chrome UI Functional Tests.test/functional/apps/visualize/_tsvb_markdown·ts - visualize app visualize ciGroup12 visual builder markdown should render mustache list (#108651) (#109056)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 07:36:17 -04:00
Kibana Machine e518b1ab6c
[TSVB] Markdown variables should be clickable (#108844) (#108948)
* [TSVB] Markdown variables should be clickable

* fix test

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-08-17 18:52:27 +00:00
Stratoula Kalafateli e032e9fef3
[Lens] Fixes flakiness in editing pre-existing runtime field (#108653) (#108842)
* [Lens] Fixes flakiness in editing pre-existing runtime field

* Field editor changes

* Unskip test

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 07:39:03 -04:00
Kibana Machine c9b6ce5abf
Removes supertest-as-promised dependency (#100486) (#108817)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-08-17 03:30:08 +00:00
Kibana Machine b0cb12e80d
Index pattern creation - text improvements (#107860) (#108806)
* text improvements

Co-authored-by: Matthew Kime <matt@mattki.me>
2021-08-16 21:41:34 -04:00
Kibana Machine 40b1562672
[package testing] Bump status page timeout (#107813) (#108750)
The socket timeout for testing whether the status page is available or
not is currently 30 seconds.  This test was disabled for being flaky.
Reproducing this locally hasn't been straight forward, but I am seeing
an average of ~20 seconds, which is close enough to the timeout that I'd
like to rule out machine differences.  This gives the status check 120
seconds before dropping the connection.

Related to #106749 and #107300

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

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-08-16 16:21:25 -04:00
Kibana Machine 040d74f046
disable execution_context service by default (#108534) (#108732)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-08-16 15:08:37 -04:00
Kibana Machine a6cafd0472
[QA][SO INFO SVC] Add cli (#108353) (#108685)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tre <wayne.seymour@elastic.co>
2021-08-16 11:05:06 -04:00
Alexey Antonov 1218000fed
[TSVB] Fix UI issue with padding on showing annotations (#108205) (#108672)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 09:53:28 -04:00
Anton Dosov 65e73c08ca
[FieldFormats] Example plugin (#108070) (#108663)
# Conflicts:
#	.github/CODEOWNERS
2021-08-16 08:38:26 -04:00
Kibana Machine e737f79d55
[Discover][Context] Add functional test, convert to TypeScript (#108481) (#108659)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-08-16 08:07:39 -04:00
Alison Goryachev d96cffad3d
[Index pattern field editor] Add preview for runtime fields (#100198) (#108611) 2021-08-13 21:31:21 -04:00
Kibana Machine 650e44acd7
test user with specific roles and permissions- for create index pattern wizard test (#107984) (#108413)
* test user with specific roles and permissions

* added SO method logging, added test data stream to the role and modified createindexpattern function

* removed unused method added in settings page

* removed unused index name- logs-*

* remove unused function from settings page

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

Co-authored-by: Rashmi Kulkarni <rashmi.kulkarni@elastic.co>
2021-08-12 15:42:49 -04:00
Anton Dosov b58d14467e
include and fix hello world example test (#108072) (#108264) 2021-08-11 17:17:49 -04:00
Stacey Gammon c75403ac60
[7.x] Add a new hello world plugin and adjust the welcome message. (#107789) (#108182)
* Add a new hello world plugin and adjust the welcome message. (#107789)

* Add a new hello world plugin and adjust the welcome message.

* update and move files

* Update CODEOWNERS

* add a tsconfig.json file

* update tsconfig.json

* fix type check

* address code review comments
# Conflicts:
#	.github/CODEOWNERS

* Update tsconfig.json

Need to account for https://github.com/elastic/kibana/pull/108139

* Update tsconfig.json

Needed to add references
2021-08-11 12:45:33 -04:00
Dmitry Tomashevich 7a2a5e854c
[Discover] Deangularize classic table (#104361) (#108149)
* [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>
# Conflicts:
#	test/functional/apps/discover/_doc_table.ts
2021-08-11 07:05:38 -04:00
Spencer 79e45f2190
[build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139)
* [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>
# Conflicts:
#	.gitignore
#	examples/hello_world/tsconfig.json
#	tsconfig.json
#	tsconfig.refs.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 05:08:54 -04:00
Kibana Machine a4ee786ca8
[7.x] [APM] Add new ftr_e2e to kibana CI and remove current e2e tests. (#107593) (#108138)
* [APM] Add new ftr_e2e to kibana CI and remove current e2e tests. (#107593)

* fix newly introduced type error (#107593)

(cherry picked from commit 65a5cb1476)

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-11 08:05:08 +00:00
Anton Dosov bb93f4e586
[FieldFormats] Add editors tests (#107770) (#108049)
# Conflicts:
#	test/common/services/index.ts
2021-08-10 17:40:41 -04:00
Kibana Machine 6834ac8ba4
[7.x] [Archive Migration] Swap es archiver for kbn archiver - Canvas app (#102533) (#107504)
* [Archive Migration] Swap es archiver for kbn archiver - Canvas app (#102533)

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

* Backport saved object info svc, as it is in master.

Signed-off-by: Tre' Seymour <wayne.seymour@elastic.co>

Co-authored-by: Tre <wayne.seymour@elastic.co>
2021-08-10 14:54:11 +00:00
Mikhail Shustov fdb41b9855
[Execution context] Add nested context support (#107523) (#108002)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 05:19:07 -04:00
Tiago Costa 8e7fdd83af
skip flaky suite (#107831) 2021-08-09 21:12:10 +01:00
Kibana Machine 5a62b60027
filter FilterBar suggestions by time (according to flag) (#107192) (#107897)
* 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>

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-08-09 12:18:56 -04:00
Matthew Kime 3717f0d47d
[7.x] [index patterns] index pattern create modal (#101853) (#107823)
* [index patterns] index pattern create modal (#101853)

index pattern creation flyout

* update docs

* update limits

* Update limits.yml

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-09 12:02:25 -04:00
Ahmad Bamieh cfae29aeed
[Telemetry] Add telemetry.sendUsageTo config (#107396) (#107805) 2021-08-05 17:43:13 -04:00
Anton Dosov cda9966654
[7.x] [FieldFormats] Break from data plugin (#107173) (#107761)
* [FieldFormats] Break from `data` plugin (#107173)

# Conflicts:
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.castestokbnfieldtypename.md
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.getkbntypenames.md
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.castestokbnfieldtypename.md
#	src/plugins/data/public/public.api.md

* update limits
2021-08-05 13:53:39 -04:00
Kibana Machine 55ce986274
[FieldFormats] Unskip url field formatter test (#107651) (#107720)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-08-05 06:52:24 -04:00
Kibana Machine 3a8020a86b
[package testing] Create target dir before copying artifacts (#107679) (#107698)
gsutil requires a directory to exist before copying artifacts in.
Prior to https://github.com/elastic/kibana/pull/107217, a
.bootstrap-cache file was written, providing the directory for these
writes.  Now that we're no longer writing this file, we need to ensure
it exists.

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-08-04 19:35:02 -04:00
Alexey Antonov 602e26b1b7
[Lens] Synchronize cursor position for X-axis across all Lens visualizations in a dashboard (#106845) (#107691)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 17:41:46 -04:00
Diana Derevyankina 489117af60
[Timelion Viz] Add functional tests (#107287) (#107689)
* 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>

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 17:26:42 -04:00
Kibana Machine 3eaeac5508
Remove legacyEs test service (#107567) (#107635)
* migrate uptime tests to the new client. it didn't use legacy one anyway

* remove legacyEs service

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-08-04 10:43:21 -04:00
Tyler Smalley 6f7c0225f6 skip flaky suite (#107057) 2021-08-04 06:44:57 -07:00
Kibana Machine 53afa0d31b
[Discover][Main] Split single query into 2 queries for faster results (#104818) (#107392)
Co-authored-by: Tim Roes <tim.roes@elastic.co>

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-08-02 11:28:19 -04:00
Kibana Machine 374688ace7
[Discover] Improve functional saved query test to prevent flakiness (#107204) (#107386)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-08-02 10:44:48 -04:00
Marta Bondyra ee206e4699
[7.x] [Sample data] Use Lens in Logs sample data (#106486) (#107371)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 14:43:26 +02:00
Kibana Machine c3573309f0
[Discover] Improve functional testing searchOnPageLoad (#107181) (#107363)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-08-02 06:05:45 -04:00
Kibana Machine 7581e1873f
[dev-utils/run] support --info flag when default log level changed (#107244) (#107316)
* [dev-utils/run] support --info flag when default log level changed

* update kbn/pm dist and remove excess --debug flag

Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-30 15:45:16 -04:00
Stratoula Kalafateli 1618cfe2ad
[Viz listing] Unskip and stabilize the tests (#106830) (#107131)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-29 07:12:56 -04:00
Kibana Machine 8ec8946e8a
[load testing] remove extra loop and pass simulations to running script (#106997) (#107121)
* [load testing] remove loop and pass simulations seq

* pass string, not array to script

* pass var via export

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

Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
2021-07-29 06:28:54 -04:00
Kibana Machine 870840da18
[Aggregations] Create expression functions for object types used in agg params (#103494) (#107110)
Co-authored-by: Michael Dokolin <mikhail.dokolin@elastic.co>
2021-07-29 03:21:11 -04:00
Kibana Machine 9f9f5cfc95
[api-docs] raise memory limit again (#107065) (#107092)
* [api-docs] raise memory limit again

* update buildkite script too

Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-28 19:03:57 -04:00
Tiago Costa 02fdf6cd38
skip flaky suite (#103389) 2021-07-28 14:55:11 +01:00
Tiago Costa 9c72424ba2
skip flaky suite (#100437) 2021-07-28 12:29:19 +01:00
Stratoula Kalafateli d79657675a
[Timelion app] Stabilize the flakiness in cloud (#106826) (#106952) 2021-07-28 04:28:05 -04:00