Commit graph

1940 commits

Author SHA1 Message Date
Brian Seeders be51f0a574
[Buildkite] Hourly CI / tracked branch pipeline (#111785) 2021-09-16 11:28:07 -04: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
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 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
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
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
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
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
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
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
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
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
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
liza-mae c7d742cb8b
Fix field formatters test on cloud (#109707) 2021-08-24 08:11:08 -06:00
Matthias Wilhelm aa2897ce51
[Discover] Fix runtime fields editor test in cloud environment (#109367) 2021-08-20 16:50:05 +02:00
Tiago Costa eec7bb318b
skip flaky suite (#95376) 2021-08-19 15:31:52 +01:00
Alejandro Fernández Haro 3cb3984d59
[Flaky-tests] Fix SOM edit-saved-objects test (#109215) 2021-08-19 08:40:56 -04:00
Matthias Wilhelm 544c41e214
[Discover] Unskip discover tab field data functional tests (#107305) 2021-08-19 08:18:28 +02:00
Stratoula Kalafateli 2172b88dae
Fix flakiness in load and save agg-based visualizations (#109066)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-19 09:04:53 +03: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
Diana Derevyankina d810c51aab
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)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 11:27:00 +03:00
Josh Dover 66a06f97df
Update onboarding interstitial to handle default Fleet assets (#108193) 2021-08-17 15:47:03 -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
Stratoula Kalafateli 99e33215fb
[Lens] Fixes flakiness in editing pre-existing runtime field (#108653)
* [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>
2021-08-17 12:11:05 +03:00
Tyler Smalley 689d974729
Removes supertest-as-promised dependency (#100486)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-08-16 18:01:34 -07:00
Matthew Kime 0153bdbcbd
Index pattern creation - text improvements (#107860)
* text improvements
2021-08-16 18:09:58 -05: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
Matthias Wilhelm 45ec64f99e
[Discover][Context] Add functional test, convert to TypeScript (#108481) 2021-08-16 11:39:20 +02:00
Sébastien Loix b24d44d165
[Index pattern field editor] Add preview for runtime fields (#100198) 2021-08-13 18:27:23 -04:00
Rashmi Kulkarni 320fc8b650
test user with specific roles and permissions- for create index pattern wizard test (#107984)
* 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>
2021-08-12 10:15:06 -07:00
Dominique Clarke 1649661ffd
[Observability][Exploratory View] revert exploratory view multi-series (#107647)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 11:52:49 -04: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
Anton Dosov 6450df1885
[FieldFormats] Add editors tests (#107770) 2021-08-10 09:44:24 -04: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
Tiago Costa 854faa4bb7
skip flaky suite (#107831) 2021-08-09 12:55:49 +01:00