Commit graph

4323 commits

Author SHA1 Message Date
Matthias Wilhelm 597325c0de
[Discover] Fix wrong sort order with empty sort URL parameter (#97434)
Co-authored-by: Tim Roes <mail@timroes.de>
2021-04-20 20:29:47 +02:00
Ahmad Bamieh 0f4538195f
[Usage collection] Collect non-default kibana configs (#97368)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 11:02:27 -04:00
Matthias Wilhelm 2ecbca0d8d
[Discover] Enable EuiDataGrid (#89264)
* Now the new EuiDataGrid based document table is the default

* Columns can be sorted by drag and drop

* Column width can be changed by drag and drop

* There's a fullscreen mode

* There's document selection 

* There's document navigation in the flyover of a expanded document

* Sorting is much more user friendly, less confusing and sort order can be changed by drag and drop
2021-04-20 14:43:02 +02:00
Pierre Gayvallet 12c2e7e488
Fix flaky SO import tests (#97586)
* Fix flaky SO import tests

* [will be reverted] remove all tests from CI group 8

* Revert "[will be reverted] remove all tests from CI group 8"

This reverts commit ede007ec

* Revert "[will be reverted] remove all tests from CI group 8"

This reverts commit ede007ec
2021-04-20 13:58:33 +02:00
Matthias Wilhelm 69edee5b75
[Discover] Display toast when adding columns and filters from document flyout (#97270) 2021-04-20 05:56:18 +02:00
Joe Portner 978f5eca5a
Add config properties for HTTP security headers (#97158) 2021-04-19 13:12:45 -04:00
Spencer b7a9b84af8
Revert "Revert "[ci] skip building ts refs when not necessary (#95739)" (#95746)" (#95750)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-19 09:45:09 -07:00
Pierre Gayvallet f1bc11e2fa
add FTR test for aborted requests error name (#97086)
* add FTR test for aborted requests error name

* delete unused file

* wait for the request to fire before cancellation
2021-04-19 17:50:17 +02:00
Matthias Wilhelm 7c5f41e171
[Discover] Unskip functional saved queries test 2021-04-19 16:13:03 +02:00
Maja Grubic 5035230190
[Discover] Sort option: Introduce format parameter (#96774)
* [Discover] Updating a functional test

* [Discover] Context view: add support for date nanos custom

* Remove unnecessary change to a functional test

* Fix failing unit tests

* Remove unnecessary intialization

* Add new type definition to data plugin

* Update docs

* Simplify return statement

* Removing unnecessary type export

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-19 13:10:24 +01:00
Catherine Liu 3b31d81196
[Dashboard] Makes lens default editor for creating new panels (#96181)
* Makes lens default editor in dashboard

Added all editors menu to dashboard panel toolbar

Fixed toggle on editor menu

Removed unnecessary comments

Added data test subjects to editor menu buttons

Populated editor menu with vis types

Removed unused imports

Fixed imports

Adds showCreateNewMenu prop to AddPanelFlyout

Rearranged order of editor menu options

Fixed ts errors

Added groupnig to embeddable factory

Use embeddable state transfer service to redirect to editors

Added showGroups to TypeSelectionState

Fixed add panel flyout test

Fixed data test subjects

Fixed factory groupings

Removed unused import

Fixed page object

Added telemtry to dashboard toolbar

Added telemtry to editor menu

Fix ml embeddable functional tests

Fix lens dashboard test

Fix empty dashboard test

Fixed ts errors

Fixed time to visualize security test

Fixed empty dashboard test

Fixed clickAddNewEmbeddableLink in dashboardAddPanel service

Fixed agg based vis functional tests

Revert test changes

Fixed typo

Fix tests

Fix more tests

Fix ts errors

Fixed more tests

Fixed toolbar sizes and margins to align with lens

Fix tests

Fixed callbacks

Fixed button prop type

New vis modal copy updates

Added savedObjectMetaData to log stream embeddable factory

Addressed feedback

Fixed ts error

Fix more tests

Fixed ts errors

Updated dashboard empty prompt copy

Adds tooltip to log stream embeddable factory saved object meta data

Made icons monochrome in toolbar

Fixed icon colors in dark mode

Cleaned up css

Fixed ts errors

Updated snapshot

Fixed map icon color

* Added tooltips for ML embeddables

* Restored test

* Added empty dashboard panel test

* Fixed i18n id

* Fix dashboard_embedding test

* Removed unused service

* Fixed i18n error

* Added icon and description properties to embeddable factory definition

* Fixed ts errors

* Fixed expected value

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-17 22:29:27 -07:00
Mikhail Shustov 6c7d776fc1
minimize number of so fild asserted in tests. it creates flakines when implementation details change (#97374) 2021-04-16 13:55:16 -04:00
Pierre Gayvallet 106afd41b6
[SavedObjects] Add aggregations support (#96292)
* step 1 to add aggs in the find function of saved object

* setp 2 - add specific unit test to aggs + fix bug found during integrations

* step 3 - add security api_integration arounds aggs

* fix types

* unit test added for aggs_utils

* add documentation

* fix docs

* review I

* doc

* try to fix test

* add the new property to the saved object globaltype

* fix types

* delete old files

* fix types + test api integration

* type fix + test

* Update src/core/server/saved_objects/types.ts

Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>

* review I

* change our validation to match discussion with Pierre and Rudolph

* Validate multiple items nested filter query through KueryNode

* remove unused import

* review + put back test

* migrate added tests to new TS file

* fix documentation

* fix license header

* move stuff

* duplicating test mappings

* rename some stuff

* move ALL the things

* cast to aggregation container

* update generated doc

* add deep nested validation

* rewrite the whole validation mechanism

* some cleanup

* minor cleanup

* update generated doc

* adapt telemetry client

* fix API integ tests

* fix doc

* TOTO-less

* remove xpack tests

* list supported / unsupported aggregations

* typo fix

* extract some validation function

* fix indent

* add some unit tests

* adapt FTR assertions

* update doc

* fix doc

* doc again

* cleanup test names

* improve tsdoc on validation functions

* perf nit

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-16 10:40:30 +02:00
Matthias Wilhelm f4e7941e7d
[Discover] Unskip doc navigation functional test (#96948) 2021-04-15 19:58:19 +02:00
Joe Portner e675429b98
Harden saved object deserialization (#94842) 2021-04-15 11:57:24 -04:00
Stacey Gammon 503cfcf8c9
Track API stats as part of ci (#95733)
* Track stats and add extra output information

* Update api docs output

* Clean up id names

* update api docs

* Consolidate error messages and fix a bug

* Update docs

* Update get_declaration_nodes_for_plugin.ts

* Fix bug with removeBrokenLinks not being recursive

* Update docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-15 11:36:10 -04:00
Maja Grubic 6501b393a2
[Discover] Runtime Fields Editor integration: Add + Delete operation (#96762)
* [Discover] Updating a functional test

* [Discover] Support for edit operation

* Fix unit tests

* Fix typescript

* Fixing failing functional test

* Fixing wrongly commented line

* Uncomment accidentally commented line

* Reintroducing accidnetally removed unit test

* Trigger data refetch onSave

* Remove refreshAppState variable

* Bundling observers together

* Clean state before refetch

* Update formatting in data grid

* [Discover] Runtime fields editor : add operation

* [Discover] Updating a functional test

* Adding a functional test

* Fixing package.json

* Reset fieldCount after data fetch

* [Discover] Updating a functional test

* Don't allow editing of unmapped fields

* Add functionality

* Fix issues with mobile display

* Allow editing if it's a runtime field

* Add a functional test

* [Discover] Updating a functional test

* Add functional test

* Remove unnecessary debugger statement

* Add more tests

* Add delete functionality

* Include runtimeFields in doc search

* Add another functional test

* [Discover] Updating a functional test

* Fix failing i18n check

* Fix package.json

* Addressing PR comments

* Addressing design input

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-15 12:03:57 +01:00
Bhavya RM f92ce3074b
Test user for maps test verifying sample data maps (#96109)
test user for sample maps test & removing geoall_writer_role from add layer
2021-04-14 19:22:18 -04:00
Rashmi Kulkarni 3ba640403f
unskip accessibility - dashboard_edit_panel tests (#96710)
* unskip

* added render complete

* added render complete in couple other places

* minor corrections

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-14 15:05:12 -07:00
Greg Thompson d679035664
Upgrade EUI to v32.0.4 (#96459)
* eui to 31.12.0

* type updates

* snapshot updates

* snapshot updates

* euiavatarprops

* eui to 32.0.3

* euicard updates

* update test
2021-04-14 11:27:36 -05:00
Alison Goryachev b401cbb3eb
export DomainDeprecationDetails type from public + fix typo (#96885) 2021-04-14 09:51:47 -04:00
Ahmad Bamieh 69f570f06a
[Usage collection] Usage counters (#96696)
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
2021-04-14 08:21:11 -04:00
Stratoula Kalafateli f0b1b903d5
[Datatable] Fix filter cell flakiness (#96934) 2021-04-14 08:34:50 +03:00
Stratoula Kalafateli 8db70bca19
Unskip heatmap suite and fixes flakiness (#96941) 2021-04-14 08:33:27 +03:00
Matthew Kime 1cd90d744f
Index pattern field editor - Add warning on name or type change (#95528)
* add warning on name or type change
2021-04-13 15:52:37 -05:00
Matthew Kime d80c257f81
Index patterns server - throw correct error on field caps 404 (#95879)
* throw correct error on field caps 404 and update tests
2021-04-13 14:14:19 -05:00
Catherine Liu 74d93a2f6d
[Presentation Util] Shared toolbar component (#94139) 2021-04-13 09:24:17 -07:00
Matthias Wilhelm 8cce4805d4
[Discover][EuiDataGrid] Add document selector (#94804)
Co-authored-by: Ryan Keairns <rkeairns@chef.io>
2021-04-13 15:54:42 +02:00
Tiago Costa 3f131f5966
skip flaky suite (#89550) 2021-04-12 21:19:26 +01:00
Corey Robertson b645fec8b8
[Dashboard] Move all dashboard extract/inject into persistable state (#96095)
* Move all dashboard inject/extract to be part of embeddable persistable state

* Fixes typescript errors

* Remove comments

* Fixes test

* API Doc changes

* Fix integration tests

* Fix functional testS

* Fix unit tests

* Update Dashboard plugin API to get dashboard embeddable renderer

* Fix Types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 12:25:03 -04:00
Matthew Kime 2ab94f05e1
Index pattern management - fix refresh of index pattern list after delete (#92619)
* refresh id and title list

* add functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 09:27:44 -05:00
Maja Grubic 2d0b32a40a
[Discover] Integration of Runtime Fields editor - edit operation (#95498)
* [Discover] Updating a functional test

* [Discover] Support for edit operation

* Fix unit tests

* Fix typescript

* Fixing failing functional test

* Fixing wrongly commented line

* Uncomment accidentally commented line

* Reintroducing accidnetally removed unit test

* Trigger data refetch onSave

* Remove refreshAppState variable

* Bundling observers together

* Clean state before refetch

* Update formatting in data grid

* [Discover] Updating a functional test

* Adding a functional test

* Fixing package.json

* Reset fieldCount after data fetch

* [Discover] Updating a functional test

* Don't allow editing of unmapped fields

* Fix issues with mobile display

* Allow editing if it's a runtime field

* [Discover] Updating a functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 15:25:50 +01:00
Matthias Wilhelm 5a9fc21415
[Discover] Unskip histogram hiding test (#95759)
- improves the test to be no longer flaky
2021-04-12 11:22:07 +02:00
Nathan Reese ec070d34ed
[Maps] fix Kibana does not recognize a valid geo_shape index when attempting to create a Tracking Containment alert (#96633)
* [Maps] fix Kibana does not recognize a valid geo_shape index when attempting to create a Tracking Containment alert

* tslint

* instead of forcing refresh on getIdsAndTitles, update index pattern service to add saved object to cache when index pattern is created

* simplify title check

* revert unneeded changes

* tslint

* api doc updates

* fix functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-08 20:08:10 -06:00
Tre 9ec466e5a1
[QA] Add saved objects info svc (#96364)
Add svc and fn to return saved object types in a given index,
defaulted to ".kibana" index.
2021-04-08 14:46:52 -06:00
Tyler Smalley 32a691f440 skip flaky suite (#92522) 2021-04-06 12:49:30 -07:00
Tyler Smalley 2ac6fc7ee2 skip flaky suite (#95376) 2021-04-06 12:47:39 -07:00
Tyler Smalley 0c33b1f90a skip flaky suite (#89477) 2021-04-06 12:45:18 -07:00
Pierre Gayvallet 251bd9afc6
Remove /src/legacy (#95510)
* starting removing stuff

* fix jest config

* disable CLI mode until other PR is merged

* fix the schema

* add deprecation for maxPayloadBytes

* fix legacy start logic

* deletes `env` from unknown args

* fix FTR test config

* some legacy service deletion

* move config validation

* remove legacy exports from entrypoint

* preserve legacy logging in core logging config

* try to fix uiSettings integration tests

* fix legacy service tests

* more type fix

* use fromRoot from @kbn/utils

* cleanup kibana.d.ts

* fix unit tests

* remove src/core/server/utils

* fix server script

* add integration test for `/{path*}` route

* add unit tests on legacy config

* adapt uiSetting IT bis

* fix tests

* update generated doc

* address some review comments

* move review comments

* fix some stuff

* fix some stuff

* fix some stuff

* fix some stuff bis

* generated doc

* add test for ensureValidConfiguration
2021-04-06 09:25:36 +02:00
Thomas Neirynck 8e11e2598e
[Maps] Enable all zoom levels for all users (#96093) 2021-04-05 12:04:20 -04:00
Tiago Costa 413477b788
skip flaky suite (#96113) 2021-04-05 13:36:28 +01:00
spalger 6868f18343 skip flaky suite (#95660) (#95706) 2021-04-01 19:17:44 -07:00
Jonathan Budzenski 34b58a4f6f skip flaky test #95660 2021-04-01 11:19:48 -05:00
Pierre Gayvallet ddac0e9501
add per space configuration to custom header banner (#94449)
* restore the banners ui settings

* fix banner init logic

* fix unit tests

* update telemetry schema

* add basic server-side plugin tests

* add FTR tests for banners plugin

* use keyword for sensitive setting

* update snapshots

* setting name consistency with configuration properties

* fix setting names in telemetry files

* open banner links in new tab

* add config.disableSpaceBanners property

* fix types

* add descriptions to banner settings

* change label and value header->top

* finishing header->top replacement

* doc nits

* add banners section to advanced options doc

* feedback on advanced options doc

* adapt deprecation to new format
2021-03-31 10:57:06 +02:00
Diana Derevyankina 78b16fd5d3
[TSVB] Show an indicator when using Last Value mode (#91977)
* [TSVB] Show an indicator when using Last Value mode

* Extended some TSVB types, remove unused translations and do some refactoring

* Fix some functional tests and label displaying for Last value

* Fix some functional tests and label displaying for Last value

* Refactor data_time_range_mode_label and change some types

* fix CI

* Refactor timeseries_visualization seriesData

* Remove unused re export

* Replace "href" prop with "onClick" in EuiLink and refactor tooltip content

* Change link to text and add pointer style to it

* FIx import in kibana_framework_adapter

* Remove label for entire time range mode and add an icon for last value mode label

* Add action to show last value label for TSVB embeddables

* Fix TimeseriesVisParams import

* Revert "Add action to show last value label for TSVB embeddables"

This reverts commit 15f16d6f72.

* Put the "Last value" badge on the top of visualization and add an option to hide it

* Fix failing _tsvb_markdown test and refactor timeseries_visualization

* Move I18nProvider frim timeseries_visualization to timeseries_vis_renderer

* Add condition to hide gear button when entire time range mode is enabled, fix gauge scroll issue

* Change text in the popover, add condition to indicator if series data is empty, create migration script to hide last value label for previously created visualizations and a test for that

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-03-30 19:41:52 +03:00
Ahmad Bamieh a67aa97989
[Core] create deprecations service (#94845)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 19:20:23 +03:00
Matthias Wilhelm 58a6757d7d
[Discover] Improve sidebar rendering for large field lists (#95038)
* 50 fields are rendered initially, more fields are rendered while user is scrolling

* This is a big performance improvement when there are lots of fields to render
2021-03-30 12:31:16 +02:00
Pierre Gayvallet cd703c0c89
Revert "[ci] skip building ts refs when not necessary (#95739)" (#95746)
This reverts commit e46a74f7
2021-03-30 01:56:29 -07:00
Spencer e46a74f757
[ci] skip building ts refs when not necessary (#95739)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-30 00:52:13 -04:00
Tiago Costa edbb989dec
skip flaky suite (#95642) 2021-03-30 03:38:57 +01:00