Commit graph

4423 commits

Author SHA1 Message Date
Maja Grubic 0f5e65f988
[Discover] Sort option: Introduce format parameter (#96774) (#97449)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-19 10:32:19 -04:00
Matthew Kime 884e931484
Index pattern field editor - Add warning on name or type change (#95528) (#97386)
* add warning on name or type change

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-17 11:21:05 -04:00
Mikhail Shustov 7e97b438a0
minimize number of so fild asserted in tests. it creates flakines when implementation details change (#97374) (#97379)
# Conflicts:
#	test/plugin_functional/test_suites/saved_objects_management/find.ts
2021-04-16 16:44:23 -04:00
Pierre Gayvallet ad6dc34cf7
[SavedObjects] Add aggregations support (#96292) (#97361)
* 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>

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 06:47:41 -04:00
Stacey Gammon 0a2799d09d
Track API stats as part of ci (#95733) (#97306)
* 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>
# Conflicts:
#	api_docs/data.json
#	api_docs/data_index_patterns.json
#	api_docs/data_search.json
#	api_docs/reporting.json
2021-04-15 16:47:21 -04:00
Matthias Wilhelm 7a14e4d613
[Discover] Unskip doc navigation functional test (#96948) (#97304) 2021-04-15 16:40:21 -04:00
Kibana Machine 3b58233ae6
Harden saved object deserialization (#94842) (#97282)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-04-15 14:10:31 -04:00
Maja Grubic f187515c1a
[Discover] Runtime Fields Editor integration: Add + Delete operation (#96762) (#97231)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-15 09:20:08 -04:00
Bhavya RM 9aeec426d8
Test user for maps test verifying sample data maps (#96109) (#97195)
test user for sample maps test & removing geoall_writer_role from add layer
2021-04-14 21:29:41 -04:00
Rashmi Kulkarni 34965c5b6a
unskip accessibility - dashboard_edit_panel tests (#96710) (#97192)
* unskip

* added render complete

* added render complete in couple other places

* minor corrections

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-14 20:16:24 -04:00
Greg Thompson 99716057b9
Upgrade EUI to v32.0.4 (#96459) (#97147)
* eui to 31.12.0

* type updates

* snapshot updates

* snapshot updates

* euiavatarprops

* eui to 32.0.3

* euicard updates

* update test
2021-04-14 15:28:44 -04:00
Alison Goryachev b2a0df386a
export DomainDeprecationDetails type from public + fix typo (#96885) (#97116) 2021-04-14 11:53:29 -04:00
Kibana Machine 630d4bbfcf
[Usage collection] Usage counters (#96696) (#97103)
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>

Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
2021-04-14 10:23:45 -04:00
Stratoula Kalafateli 5e6b35b86f
[Datatable] Fix filter cell flakiness (#96934) (#97078) 2021-04-14 03:43:37 -04:00
Stratoula Kalafateli 3f2a01ef4f
Unskip heatmap suite and fixes flakiness (#96941) (#97077) 2021-04-14 03:41:52 -04:00
Kibana Machine 784270dd6b
Index patterns server - throw correct error on field caps 404 (#95879) (#97033)
* throw correct error on field caps 404 and update tests

Co-authored-by: Matthew Kime <matt@mattki.me>
2021-04-13 21:21:38 +00:00
Catherine Liu 8365901c46
[Presentation Util] Shared toolbar component (#94139) (#97003) 2021-04-13 14:36:08 -04:00
Matthias Wilhelm b85cfadada
[Discover][EuiDataGrid] Add document selector (#94804) (#96975)
Co-authored-by: Ryan Keairns <rkeairns@chef.io>

Co-authored-by: Ryan Keairns <rkeairns@chef.io>
2021-04-13 12:03:36 -04:00
Tiago Costa bb6904be8f
skip flaky suite (#89550) 2021-04-12 21:20:42 +01:00
Kibana Machine 285471f05b
[Dashboard] Move all dashboard extract/inject into persistable state (#96095) (#96827)
* 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>

Co-authored-by: Corey Robertson <corey.robertson@elastic.co>
2021-04-12 14:33:30 -04:00
Kibana Machine bed793e8a2
Index pattern management - fix refresh of index pattern list after delete (#92619) (#96789)
* refresh id and title list

* add functional test

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

Co-authored-by: Matthew Kime <matt@mattki.me>
2021-04-12 12:37:08 -04:00
Maja Grubic 8fe4a858bf
[Discover] Integration of Runtime Fields editor - edit operation (#95498) (#96792)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 12:35:24 -04:00
Tiago Costa 40d95e215d
skip flaky suite (#94545) 2021-04-12 12:56:05 +01:00
Tiago Costa 2d1d058295
skip flaky suite (#96113) 2021-04-12 12:54:32 +01:00
Matthias Wilhelm 6775a86025
[Discover] Unskip histogram hiding test (#95759) (#96763)
- improves the test to be no longer flaky
2021-04-12 07:39:36 -04:00
Nathan Reese e1a1f8b989
[Maps] fix Kibana does not recognize a valid geo_shape index when attempting to create a Tracking Containment alert (#96633) (#96681)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-09 00:12:42 -04:00
Tyler Smalley 671f91fa2a skip flaky suite (#92522) 2021-04-06 12:49:33 -07:00
Tyler Smalley 21978b6a44 skip flaky suite (#89477) 2021-04-06 12:45:21 -07:00
Pierre Gayvallet 248390f779
[7.x] Remove /src/legacy (#95510) (#96283)
* 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
# Conflicts:
#	.github/CODEOWNERS
#	src/cli_plugin/install/core_plugins/kibana/public/context/query_parameters/state.js
#	src/core/server/http/http_config.ts
#	x-pack/test/functional/config.js

* codestyle
2021-04-06 06:08:31 -04:00
Thomas Neirynck b31ee25c46
[Maps] Enable all zoom levels for all users (#96093) (#96228)
# Conflicts:
#	.github/CODEOWNERS
2021-04-05 14:33:44 -04:00
spalger af236df4d0 skip flaky suite (#95660) (#95706)
(cherry picked from commit 6868f18343)
2021-04-01 19:18:06 -07:00
Jonathan Budzenski 95f37732d3 skip flaky test #95660 2021-04-01 11:20:40 -05:00
Pierre Gayvallet a4b185b86d
add per space configuration to custom header banner (#94449) (#95897)
* 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
# Conflicts:
#	src/plugins/kibana_usage_collection/server/collectors/management/schema.ts
#	src/plugins/kibana_usage_collection/server/collectors/management/types.ts
#	src/plugins/telemetry/schema/oss_plugins.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-31 10:36:57 -04:00
Ahmad Bamieh da5edcc055
[7.x] [Core] create deprecations service (#94845) (#95815)
* fix conflicts

* eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-31 08:21:07 -04:00
Ece Özalp be873d41c1
[7.x] Add a11y test coverage to Rule Creation Flow for Detections tab (#94377) (#95458)
* Add a11y test coverage to Rule Creation Flow for Detections tab (#94377)

[Security Solution] Add a11y test coverage to Detections rule creation flow (#80060)

* update browser size

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-30 16:03:03 -04:00
Chandler Prall 2c5a9a7cb4
[7.x] Upgrade EUI to v31.10.0 (#93796) (#95687)
* Upgrade EUI to v31.10.0 (#93796)

* Upgraded eui version, updated jest snaapshots

* Upgrade EUI to v31.10.0 & update tests

* increase expected histogram brush size result

* revert dev_server snap

* update baseline dashboard reporting png

* avoid multiple acton menu openings when verified that the action exists and is enabled

* update dashboard table expand button

* update dashboard tsvb baseline

* Adjust 2 cypress tests

* snapshot update

Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/functional/screenshots/baseline/tsvb_dashboard.png
#	x-pack/plugins/canvas/public/components/asset_manager/__stories__/__snapshots__/asset_manager.stories.storyshot
#	x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/__snapshots__/trusted_apps_page.test.tsx.snap

* snapshot updates
2021-03-30 15:30:58 -04:00
Stratoula Kalafateli 4fe26b8198
[TSVB] Show an indicator when using Last Value mode (#91977) (#95817)
* [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>

Co-authored-by: Diana Derevyankina <54894989+DziyanaDzeraviankina@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-03-30 14:49:18 -04:00
Matthias Wilhelm 630f00897e
[Discover] Improve sidebar rendering for large field lists (#95038) (#95764)
* 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 08:41:47 -04:00
Kibana Machine 3d8702f87f
Revert "[ci] skip building ts refs when not necessary (#95739)" (#95746) (#95749)
This reverts commit e46a74f7

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
2021-03-30 02:04:11 -07:00
Uladzislau Lasitsa 9e5b4bffa2
[TSVB] Change the default mode from last value to entire timerange (#93608) (#95662)
* Make 'enter time range' value as default and add telemetry for 'last value' mode

* Fix telemetry schema

* Fix test

* Add possibility count timeseries created from dashboard

* Fix remark

* Fix remark

* Fix problem with time_range_mode

* Fix tests

* Fix tests

* Fix tests for markdown and table

* exclude TSVB which have type as timeseries

* Add description for field in schema in telemetry

* Fix telemetry schema

* Fix some remarks

* Added check for hits

* fix CI

* fix CI

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-03-30 03:31:54 -04:00
Kibana Machine d79ef66ed9
[ci] skip building ts refs when not necessary (#95739) (#95740)
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-03-30 02:53:57 -04:00
Tiago Costa 1041ed9e7a
skip flaky suite (#95642) 2021-03-30 03:39:27 +01:00
Kibana Machine ccfa83446f
Add test to verify Console proxy doesn't forward system index header (#95562) (#95666)
* Add test to verify Console API does not forward system index header

* Add integration test to Core to verify system indices warning behavior

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

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-03-29 13:48:21 -04:00
Tiago Costa a056e47edc
skip flaky suite (#94532) 2021-03-29 13:21:08 +01:00
Alexey Antonov 7bf2d4c1ba
[TSVB] Enable dual mode, support index patterns and strings (#92812) (#95631)
* [TSVB] Enable `dual mode`, support index patterns and strings

* modify UI

* add migration script

* refactoring

* fix CI

* prefill the index pattern name

* modify UI

* modify UI

* update UI

* fix functional test

* some work

* remove callouts

* fix rollup test

* update UI

* fix typo

* add some unit tests

* add functional test

* fix CI

* correct labels

* fix ci group 12

* cleanup interface

* fix CI

* cleanup API

* fix some of PR comments

* move index patterns into so references

* remove wrong logic

* fix JEST

* fix some ui issues

* update sample data

* indexPatternObject -> indexPatternValue

* fix comments

* I have a dashboard with two TSVB viz. One with the default (haven't applied it to the combobox) and one with the logs. The filter contains fields only from the logs index pattern

* When I am on the string mode and try to write my index, sometimes some of the chars are not added or they are deleted while typing, something with the denounce maybe?

* fix merge conflicts

* Does this PR also supports runtime fields? I created one from the editor and I see that I can select it

* fix UI issue

* If I create a viz with the string mode and a wildcard e.g. kibana_sample*, the index patterns are not communicated correctly to the dashboard.

* fix import/export refs for dashboard

* remove MigrationPopover

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-29 07:43:17 -04:00
Matthew Kime d8c01e6cc6
Index pattern field editor - Add warning and type 'confirm' on delete or save (#95237) (#95526)
* add runtime field change/delete confirm dialog
2021-03-26 12:32:40 -04:00
Pierre Gayvallet 71ebbdc36b
[Application Usage] use incrementCounter on daily reports instead of creating transactional documents (#94923) (#95494)
* initial implementation

* add test for upsertAttributes

* update generated doc

* remove comment

* removal transactional documents from the collector aggregation logic

* rename generic type

* add missing doc file

* split rollups into distinct files

* for api integ test

* extract types to their own file

* only roll transactional documents during startup

* proper fix is better fix

* perform daily rolling until success

* unskip flaky test

* fix unit tests
2021-03-26 05:23:34 -04:00
Matthias Wilhelm e5c58751d5
[Discover] Unskip functional test of saved queries (#94705) (#95450) 2021-03-25 16:51:23 -04:00
Mikhail Shustov a15178a1b0
[7.x] ES client : use the new type definitions (#83808) (#95391)
* ES client : use the new type definitions (#83808)

* Use client from branch

* Get type checking working in core

* Fix types in other plugins

* Update client types + remove type errors from core

* migrate Task Manager Elasticsearch typing from legacy library to client library

* use SortOrder instead o string in alerts

* Update client types + fix core type issues

* fix maps ts errors

* Update Lens types

* Convert Search Profiler body from a string to an object to conform to SearchRequest type.

* Fix SOT types

* Fix/mute Security/Spaces plugins type errors.

* Fix bootstrap types

* Fix painless_lab

* corrected es typing in Event Log

* Use new types from client for inferred search responses

* Latest type defs

* Integrate latest type defs for APM/UX

* fix core errors

* fix telemetry errors

* fix canvas errors

* fix data_enhanced errors

* fix event_log errors

* mute lens errors

* fix or mute maps errors

* fix reporting errors

* fix security errors

* mute errors in task_manager

* fix errors in telemetry_collection_xpack

* fix errors in data plugins

* fix errors in alerts

* mute errors in index_management

* fix task_manager errors

* mute or fix lens errors

* fix upgrade_assistant errors

* fix or mute errors in index_lifecycle_management

* fix discover errors

* fix core tests

* ML changes

* fix core type errors

* mute error in kbn-es-archiver

* fix error in data plugin

* fix error in telemetry plugin

* fix error in discover

* fix discover errors

* fix errors in task_manager

* fix security errors

* fix wrong conflict resolution

* address errors with upstream code

* update deps to the last commit

* remove outdated comments

* fix core errors

* fix errors after update

* adding more expect errors to ML

* pull the lastest changes

* fix core errors

* fix errors in infra plugin

* fix errors in uptime plugin

* fix errors in ml

* fix errors in xpack telemetry

* fix or mute errors in transform

* fix errors in upgrade assistant

* fix or mute fleet errors

* start fixing apm errors

* fix errors in osquery

* fix telemetry tests

* core cleanup

* fix asMutableArray imports

* cleanup

* data_enhanced cleanup

* cleanup events_log

* cleaup

* fix error in kbn-es-archiver

* fix errors in kbn-es-archiver

* fix errors in kbn-es-archiver

* fix ES typings for Hit

* fix SO

* fix actions plugin

* fix fleet

* fix maps

* fix stack_alerts

* fix eslint problems

* fix event_log unit tests

* fix failures in data_enhanced tests

* fix test failure in kbn-es-archiver

* fix test failures in index_pattern_management

* fixing ML test

* remove outdated comment in kbn-es-archiver

* fix error type in ml

* fix eslint errors in osquery plugin

* fix runtime error in infra plugin

* revert changes to event_log cluser exist check

* fix eslint error in osquery

* fixing ML endpoint argument types

* fx types

* Update api-extractor docs

* attempt fix for ese test

* Fix lint error

* Fix types for ts refs

* Fix data_enhanced unit test

* fix lens types

* generate docs

* Fix a number of type issues in monitoring and ml

* fix triggers_actions_ui

* Fix ILM functional test

* Put search.d.ts typings back

* fix data plugin

* Update typings in typings/elasticsearch

* Update snapshots

* mute errors in task_manager

* mute fleet errors

* lens. remove unnecessary ts-expect-errors

* fix errors in stack_alerts

* mute errors in osquery

* fix errors in security_solution

* fix errors in lists

* fix errors in cases

* mute errors in search_examples

* use KibanaClient to enforce promise-based API

* fix errors in test/ folder

* update comment

* fix errors in x-pack/test folder

* fix errors in ml plugin

* fix optional fields in ml api_integartoon tests

* fix another casting problem in ml tests

* fix another ml test failure

* fix fleet problem after conflict resolution

* rollback changes in security_solution. trying to fix test

* Update type for discover rows

* uncomment runtime_mappings as its outdated

* address comments from Wylie

* remove eslint error due to any

* mute error due to incompatibility

* Apply suggestions from code review

Co-authored-by: John Schulz <github.com@jfsiii.org>

* fix type error in lens tests

* Update x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

* Update x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.test.ts

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

* update deps

* fix errors in core types

* fix errors for the new elastic/elasticsearch version

* remove unused type

* remove unnecessary manual type cast and put optional chaining back

* ML: mute Datafeed is missing indices_options

* Apply suggestions from code review

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>

* use canary pacakge instead of git commit

Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: restrry <restrry@gmail.com>
Co-authored-by: James Gowdy <jgowdy@elastic.co>
Co-authored-by: John Schulz <github.com@jfsiii.org>
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
# Conflicts:
#	package.json
#	src/core/server/saved_objects/migrationsv2/integration_tests/migration.test.ts
#	src/plugins/data/server/autocomplete/value_suggestions_route.ts
#	src/plugins/discover/public/application/angular/doc_table/create_doc_table_react.tsx
#	x-pack/plugins/apm/server/lib/services/get_service_dependencies/get_destination_map.ts
#	x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts
#	x-pack/plugins/security/server/authentication/api_keys/api_keys.ts
#	yarn.lock

* fix file broken during conflict resolution

* fix lint errors and test failure

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
2021-03-25 10:33:44 -04:00
Matthias Wilhelm cd5b0d6347
[Discover] Deangularize controller part 1 (#93896) (#95379)
* Refactor minimumVisibleRows

* Extract setupVisualization function

* Extract getDimensions function

* Inline breadcrumb and help menu function exec to discover.tsx

* Extract getStateDefault 

* Remove unnecessary code

* Improve performance by React.memo
2021-03-25 04:52:47 -04:00
Kibana Machine 8e7e9dcce5
[ci] try reducing Jest concurrency to mitigate random timeouts (#95348) (#95362)
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-03-24 18:46:12 -04:00
Kibana Machine 95e07fe5c7
[ML] Functional tests for Anomaly swim lane (#94723) (#95313)
* [ML] update @elastic/charts

* [ML] swim lane service, axes tests

* [ML] check single cell selection and current URL

* [ML] clear selection

* [ML] assert anomaly explorer charts

* [ML] fix unit test

* [ML] assert anomalies table and top influencers list

* [ML] update apiDoc version

* [ML] exclude host from the URL assertion

* [ML] clicks view by swim lane

* [ML] fix method for cell selection

* [ML] brush action tests

* [ML] use debug state flag

* [ML] declare window interface

* [ML] pagination tests

* [ML] enable test

* [ML] scroll into view for swim lane actions

* [ML] rename URL assertion method

* [ML] fix assertion for charts count

* [ML] extend assertion

* [ML] refactor test subjects selection

* [ML] fix assertSelection

* [ML] reduce timeout for charts assertion

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-03-24 12:53:14 -04:00
Kibana Machine ed9c83ca07
isClusterOptedIn should fallback to true when not found (#94980) (#95232)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-03-23 17:37:03 -04:00
Dmitry c090bd348f
[dashboard/bwc_shared_urls] check viz are loaded (#94941) (#95085)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-22 15:47:56 -04:00
Jonathan Budzenski 341014b120 skip telemetry app usage test. #94513 2021-03-22 08:43:25 -05:00
Jonathan Budzenski b9933d566c skip "doc table should show popover" #94889 2021-03-19 12:12:26 -05:00
Kibana Machine 3e32ee02d4
[core.savedObjects] Fix maxImportExportSize config & update docs. (#94019) (#94999)
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
2021-03-18 21:42:14 -04:00
Jonathan Budzenski f5b2ac4870 skip "navigates to doc view from embeddables" #93670 2021-03-18 16:12:07 -05:00
Devon Thomson 52e0a43e21
[Time to Visualize] Add Discrete Library Option to Save Modal (#94589) (#94961)
* save modal UI and Redirect and save to library

Co-authored-by: Poff Poffenberger <poffdeluxe@gmail.com>
# Conflicts:
#	.github/CODEOWNERS
2021-03-18 15:56:01 -04:00
Kibana Machine 515ac4b373
Define schema for monitoring-sourced telemetry (#94434) (#94816)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-03-18 18:43:37 +00:00
Anton Dosov 2df4d5ca96
[QueryBar] a11y improvements, focus glitches fixes, unskip tests (#94148) (#94806)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-18 07:26:44 -04:00
Kibana Machine 184b01ad97
[Lens] Runtime field editor (#91882) (#94892)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-03-18 05:36:16 -04:00
Peter Pisljar b388d36971
kql, lucene and timerange functions (#93043) (#94829)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-18 04:40:49 -04:00
Diana Derevyankina 8781e4c349
Replace EuiCodeBlock with JsonCodeEditor in DiscoverGrid (#92442) (#94780)
* Replace EuiCodeBlock with JsonCodeEditor in DiscoverGrid

* Add optional "hasLineNumbers" property to JsonCodeEditor and removed line numbers from the popover

* Update json_code_editor snapshot

* Add functional test for cell expanded content popover

* Remove unused code

* Fix geo point case and refactor some code

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-17 06:44:23 -04:00
Yara Tercero 7eb713a5a0
[Lists][Exceptions] - Adding basic linting, i18n and storybook support (#94772) (#94776)
### Summary

In preparation for moving all the exceptions UI components into the lists plugin adds some linting, adds the lists plugin to the i18n config and adds storybook support. Tried to add a bit stricter linting than exists in the security solution right now, rules that we've talked about wanting to enable.
2021-03-17 01:41:27 -04:00
Stratoula Kalafateli da9e1c313d
[XY axis] Integrates legend color picker with the eui palette (#90589) (#94738)
* XY Axis, integrate legend color picker with the eui palette

* Fix functional test to work with the eui palette

* Order eui colors by group

* Add unit test for use color picker

* Add useMemo to getColorPicker

* Remove the grey background from the first focused circle

* Fix bug caused by comparing lowercase with uppercase characters

* Fix bug on complimentary palette

* Fix CI

* fix linter

* Use uppercase for hex color

* Use eui variable instead

* Changes on charts.json

* Make the color picker accessible

* Fix ci and tests

* Allow keyboard navigation

* Close the popover on mouse click event

* Fix ci

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-16 15:58:18 -04:00
Mikhail Shustov b6076d7ca4
Merge tsconfig and x-pack/tsconfig files (#94519) (#94703)
* merge all the typings at root level

* merge x-pack/tsconfig into tsconfig.json

* fix tsconfig after changes in master

* remove unnecessary typings

* update paths to the global typings

* update paths to the global elaticsearch typings

* fix import

* fix path to typings/elasticsearch in fleet plugin

* remove file deleted from master

* fix lint errors
# Conflicts:
#	x-pack/plugins/fleet/server/services/agents/crud.ts
#	x-pack/plugins/fleet/server/services/artifacts/artifacts.ts
#	x-pack/plugins/fleet/server/services/artifacts/mappings.ts
#	x-pack/plugins/fleet/server/services/artifacts/mocks.ts
#	x-pack/tsconfig.json
2021-03-16 12:33:47 -04:00
Matthew Kime 3ed0a00341
[Field formats] Fix switching away from duration formatter (#93818) (#94631)
* simplify field format editor rendering, fixes switching away from duration formatter
2021-03-15 17:20:49 -04:00
Anton Dosov 9b353ee9f9
[Search Sessions] Search session example app functional test (#92133) (#94570)
# Conflicts:
#	test/scripts/jenkins_build_plugins.sh
#	test/scripts/jenkins_ci_group.sh
#	x-pack/scripts/functional_tests.js
2021-03-15 12:09:58 -04:00
Anton Dosov 26cb5b90a3
Fix importing dashboards created before ~6.1.0 (#94332) (#94565) 2021-03-15 11:13:39 -04:00
Matthew Kime 6e657baac7
Add runtime field functional test (#93710) (#94373)
Add runtime fields editor functional test
2021-03-10 19:06:37 -05:00
Rashmi Kulkarni f6e139f1af
Unskipping Dashboard listing functional test (#93843) (#94208)
* fixes https://github.com/elastic/kibana/issues/74449

* unskipping to check the flakiness
2021-03-09 20:35:19 -08:00
Wylie Conlon 5c001f8443
Support for number, date and IP range data types (#76971) (#94001)
* Support for number, date and IP ranges

* Update tests

* Ranges don't work with range agg

* Fix test case

* Allow Discover to create range filters

* Supports ranges in Visualize, KQL, remove Lens support

* Fix test mappings

* Bring back field cache to work around bug

* Fix some tests

* Fix test expectation

* Respond to review comments

* Fix type error

* Remove added sample data

* Fix api_docs

* Fix test
2021-03-08 18:03:26 -05:00
Lukas Olson 6d762717d1
[KQL] Use cache and other performance improvements (#93319) (#93972)
* [KQL] Use cache and other performance improvements

* Fix test

* Fix jest tests

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 14:36:14 -05:00
Kibana Machine 2c3efd35a5
Enable APM storybook publishing (#93353) (#93964)
Changes to fix APM's Storybook setup were made in #93087 and #93294. This re-enables it and fixes a couple places where we weren't using a theme provider.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-03-08 13:57:11 -05:00
Kibana Machine 564079e00b
wait for index pattern button to be enabled (#93677) (#93842)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Lee Drengenberg <lee.drengenberg@elastic.co>
2021-03-05 19:47:39 -05:00
Kibana Machine c7504737fd
[Telemetry] Fix flaky "after" delete (#93636) (#93753)
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-03-05 07:23:09 -05:00
Nick Partridge 3c3e63f975
[XY Charts] fix partial histogram endzones annotations (#93091) (#93640) 2021-03-04 14:16:59 -05:00
Wylie Conlon fd98aca6c3
[Discover] Fix link from dashboard saved search to Discover (#92937) (#93499)
* [Discover] Fix link from dashboard saved search to Discover

* Fix tests that weren't fully testing the navigation

* Fix snapshot

* Fix test navigation to context app by reverting to previous

* Unskip functional test and fix issue in data grid

* Respond to review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-03 21:52:46 -05:00
Wylie Conlon 2faf3f428b
Fix expanding document when using saved search data grid (#92999) (#93522)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-03-03 19:00:41 -05:00
Wylie Conlon ab13e4c9fa
[7.x] [Index patterns] Guarantee order of fields in flattenHits (#93344) (#93483)
* [Index patterns] Guarantee order of fields in flattenHits (#93344)

* [Discover] Guarantee order of fields in table preview

* Remove comments

* Fix test that relied on discover ordering

* Fix ordering of test
# Conflicts:
#	test/functional/apps/discover/_large_string.ts
#	x-pack/test/functional/apps/security/doc_level_security_roles.js
#	x-pack/test/functional/apps/security/field_level_security.js

* Update tests

* Fix whitespace
2021-03-03 17:17:11 -05:00
Rashmi Kulkarni 51bab14d9a
Test huge fields functional test (#93334) (#93461)
* fixes https://github.com/elastic/kibana/issues/74449

* fix for unskipping test huge fields functional test

* fix eslint
2021-03-03 14:18:33 -05:00
Kibana Machine 447a04c704
[ci] separate checks done in bootstrap as individual tasks (#93329) (#93446)
(cherry picked from commit b790f4ca1761bc1fab7818318213833a9c7d092f)

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-03-03 13:03:00 -05:00
Maja Grubic 9f002eda06
[Search Embeddable] Add highlighting when searching (#93178) (#93372)
* [Search Embeddable] Add highlighting when searching

* Adding a functional test
2021-03-03 05:03:55 -05:00
Devon Thomson 870a529d34
[Time to Visualize] Disable Visualize URL Tracker When Linked to OriginatingApp (#92917) (#93251)
* changed url tracker for visualize to not save when linked to originating app
2021-03-02 13:20:14 -05:00
Alejandro Fernández Haro dfb217bf2e
[7.x] [Telemetry] Full schema definition (#90273) (#93187)
* [Telemetry] Full `schema` definition (#90273)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/api_integration/apis/telemetry/telemetry_local.ts

* Normalize test arguments with `master`

* Normalize to `master` the `/api/settings` FTR tests
2021-03-02 12:55:20 -05:00
Uladzislau Lasitsa 0772e207a2
Control round and decimal places in Gauge Visualization when using aggregate functions like average (#91293) (#93014)
* Add field for providing format in percentage mode

* Fix CI

* Add tests

* Fix ci

* Fix some remarks

* Fix ci

* Fix some remarks

* Fix ci

* Fix width

* Fix some remarks

* Fix text

* Fix i18n

* Remove unneeded import

* Remove unneeded code

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 09:42:53 -05:00
Kibana Machine f6e6149e66
[kbn/test] add import/export support to KbnClient (#92526) (#92935)
Co-authored-by: Tre' Seymour <wayne.seymour@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: Tre' Seymour <wayne.seymour@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-25 20:34:11 -05:00
Rashmi Kulkarni 357cbe0a2f
Test fix management scripted field filter functional test and unskip it (#92756) (#92924)
* fixes https://github.com/elastic/kibana/issues/74449

* unskipping the functional test, removing the unload and adding an empty kibana in the after method
2021-02-25 19:21:09 -05:00
Wylie Conlon 953b9ad5fe
[Discover] Fix persistence of "hide/show chart" in saved search (#92731) (#92894) 2021-02-25 16:28:14 -05:00
Anton Dosov 9ef5f01872
Fix navigating from discover single document view back to discover (#92463) (#92637) 2021-02-24 12:20:12 -05:00
Devon Thomson d0d6d3923c
[Dashboard] Remove Multiple History Entries & Stay in Edit Mode on Save As (#92105) (#92440)
* made save as stay in edit mode when not navigating to another dashboard. Removed extra history entires from save
2021-02-23 13:14:05 -05:00
Wylie Conlon 7b835f980c
[TSVB] Stop inserting zeroes for null series (#90861) (#92432)
* [TSVB] Stop inserting zeroes for null series

* Replace empty default value with hyphen

* Stop treating 0 as false

* Fix test cases

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 12:42:56 -05:00
Rudolf Meijering d381d48645
v1 migrations: drop fleet-agent-events during a migration (#92188) (#92371)
* v1 migrations: drop fleet-agent-events during a migration

* Add TODO to fleet to make it clear that fleet-agent-events should not be used

* Fix test
2021-02-23 07:54:57 -05:00
Daniil 76ca536537
[Data Table] Fix visualization layout in split mode (#91799) (#92263)
* Fix table vis layout in split mode

* Stick pagination at the bottom

* Fix functional tests

* Fix jest test

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 03:27:20 -05:00
Daniil 0a4f2a2548
Use EuiResizableContainer in visualize (#86934) (#92183)
* Use EuiResizableContainer

* Code cleanup

* Memoize the sidebar for performance boost

* Prevent mouseLeave event

* Downgrade eui to 30.6.0

* Revert eui downgrade

* Update styles

* Render embeddable after a timeout

* Fix printing

* Fix resizer functional test

* Create an explicit layout breakpoint

* Remove extra code

* Update layout styles

* Add a note of using height: 1px

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 03:26:02 -05:00
Michail Yasonik 41fa5f6909
Enabling Uptime and Dashboard a11y test (#91017) (#92325)
# Conflicts:
#	x-pack/test/accessibility/apps/uptime.ts
2021-02-22 23:08:12 -05:00
Wylie Conlon e9639ef839
[Discover] Show correct data for top level object columns (#91954) (#92268)
* [Discover] Show correct data for top level object columns

* Fix bug with missing fields

* Fix bug in data grid

* Fix remaining bug in datagrid

* Change use of API to work with any type

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 16:34:56 -05:00
MadameSheema e7e5c73aad
[Security Solution] Cypress tests executed on Firefox (#91524) (#92233)
* allows Cypress tests to be executed on Firefox

* fixes failing tests

* fixes issues

* fixes exceptions table failing test

* updates readme

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 14:01:11 -05:00
Pierre Gayvallet 3c6bdca1c3
Implement ScopedHistory.block (#91099) (#92150)
* implements ScopedHistory.block

* add FTR tests

* fix test plugin id

* update generated doc

* deprecates AppMountParameters.onAppLeave

* typo fix

* add new FTR test

* fix added test
2021-02-22 14:59:14 +01:00
Maja Grubic 391b3a827f
[Discover] Always show unmapped fields (#91735) (#92070)
* [Discover] Always show unmapped fields

* Updating the functional test

* Remove unmapped switch toggle

* Some more code cleanup

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 10:09:12 +00:00
Dmitry b164ae4a42
[load testing] add env vars to pass simulations and repo rootPath (#89544) (#92049)
* [load testing] add env vars to pass simulations and repo rootPath

* pass simulation to sript as argument

* export GATLING_SIMULATIONS

* fix export

* add validation
2021-02-20 13:03:23 +03:00
Devon Thomson ee7cb03a25
[Time to Visualize] Stay in Edit Mode After Dashboard Quicksave (#91729) (#92053)
* Make quicksave function stay in edit mode
2021-02-19 14:44:28 -05:00
Joe Reuter 980ff31c6b
[7.x] Discover: Add handling for source column (#91815) (#91980)
* Discover: Add handling for source column (#91815)

* enable by default

* fix conflicts

* fix search_after

* fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-02-19 10:50:41 -05:00
Ahmad Bamieh ce22a9e769
[7.x] [SOM] fix flaky suites (#91809) (#91880)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-19 12:02:55 +02:00
Bhavya RM d2a5a51eec
Unskip import saved objects test (#91834) 2021-02-18 17:25:21 -05:00
Alejandro Fernández Haro 6da1e935bd
[7.x] [HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541) (#91892)
* [HTTP] Apply the same behaviour to all 500 errors (except from `custom` responses) (#85541)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/security/server/routes/authentication/saml.ts

* Fix deprecated route

* Mock before calling the method
2021-02-18 17:17:02 -05:00
Kibana Machine 854e833cf0
[CI] Build and publish storybooks (#87701) (#91917)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2021-02-18 16:26:10 -05:00
Devon Thomson 8537f25996
[Time to Visualize] Dashboard Save As New by Default (#91761) (#91905)
* changed dashboard save as to have save as new switch on by default
2021-02-18 16:03:15 -05:00
Matthew Kime 8dff16a0a6
Index pattern field editor (#88995) (#91896)
Index pattern field editor

Co-authored-by: Sébastien Loix <sabee77@gmail.com>
2021-02-18 14:24:38 -06:00
Nick Partridge a4a74c81ef
Enable new chart library setting (#86538) (#91705) 2021-02-17 13:31:03 -06:00
Rashmi Kulkarni 1d8f36249c
unskip navigation test (#91306) (#91586)
* fixes https://github.com/elastic/kibana/issues/74449

* unskip navigation test

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 17:18:20 -08:00
Spencer fedc100d4c
[7.x] ship @kbn/ui-shared-deps metrics in separate step (#91504) (#91539)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-16 16:01:26 -05:00
Devon Thomson f81cdc3ff7
[Time to Visualize] Unsaved Changes Badge (#91073) (#91540)
* Added unsaved changes badge to dashboards. Removed (unsaved) from the dashboard title
2021-02-16 16:01:01 -05:00
Devon Thomson 04eca9683c
[Time to Visualize] Combine Discard & Cancel (#91267) (#91533)
* recombined discard and cancel button functionality
# Conflicts:
#	test/functional/apps/dashboard/view_edit.ts
2021-02-16 15:17:31 -05:00
Maja Grubic 8485edc50a
[Discover] Making source filters test run with fields API (#91404) (#91482) 2021-02-16 17:38:09 +00:00
Rudolf Meijering 1fc8122c6d
[7.x] Unrevert "Migrations v2: don't auto-create indices + FTR/esArchiver support (#85778)" (#89992) (#90839)
* Unrevert "Migrations v2: don't auto-create indices + FTR/esArchiver support (#85778)" (#89992)

* Revert "Revert "Migrations v2: don't auto-create indices + FTR/esArchiver support (#85778)""

This reverts commit f97958043f.

* Fix flaky saved objects management test #89953

* If a clone target exists, wait for yellow, not green, index status

* Fix test after master merge

* Fix types

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

* Fix visualize fixture after backport

* Disable monitoring plugin email notifications in functional tests

* Disabling monitoring emails doesnt disable it, configure instead

* Fix monitoring test

* Remove debug logging from FTR config

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 06:56:59 -05:00
Ahmad Bamieh 004b1dfc2e
[7.x] fix ui counters flaky test (#91372) (#91433) 2021-02-16 01:32:28 +02:00
Tiago Costa f8eef635e5
skip flaky suite (#86948) 2021-02-15 13:40:36 +00:00
Tiago Costa b54a5ec577
skip flaky suite (#91191) 2021-02-15 13:37:42 +00:00
Ahmad Bamieh ccaded1d89
[7.x] [Saved Objects] Allow exporting and importing hidden types (#90178) (#91351)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 03:07:05 +02:00
Joe Portner f03a7ea753
Sharing saved objects, phase 2.5 (#89344) (#91335) 2021-02-13 15:51:40 -05:00
Catherine Liu f503aa3eed
[Time to Visualize] Adds functional tests for editing by value visualize embeddables (#90241) (#91207)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-12 08:57:55 -08:00
Devon Thomson 578c4ee96b
[Time to Visualize] Rename Visualize to Visualize Library (#91015) (#91184)
* Renamed Visualize to Visualize Library
2021-02-11 19:32:03 -05:00
Devon Thomson 4396e45c4d
[Time to Visualize] Copy Panel to Dashboard (#90856) (#91228)
* Added copy to dashboard action
2021-02-11 19:26:02 -05:00
Catherine Liu f5f6bc17c1
[7.x] [Dashboard] Adds Save as button to top menu (#90320) (#91208)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 15:02:11 -08:00
Luke Elmers ee4b72ee29
[7.x] Support pit and search_after in server savedObjects.find (#89915) (#91217) 2021-02-11 16:00:01 -07:00
Catherine Liu 852ef0b643
[Time to Visualize] Adds functional tests for linking/unlinking panel from embeddable library (#89612) (#91066)
# Conflicts:
#	.github/CODEOWNERS

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 13:12:52 -08:00
Alejandro Fernández Haro 8aaf168347
[7.x] [Plugins Discovery] Enforce camelCase plugin IDs (#90752) (#91140)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 16:41:22 +00:00
Marco Vettorello f0fd2ef0bc
Update dependency @elastic/charts to v24.5.1 (#89822) (#91083)
Updates @elastic/charts to 24.5.1 with some Kibana related fixes:
- align tooltip z-index to EUI tooltip z-index
- external tooltip legend extra value sync
- legend: hierarchical legend order should follow the tree paths


fix #84307

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 11:13:24 +01:00
Uladzislau Lasitsa 67acb7fa11
Bump "monaco-editor" and "react-monaco-editor" to latest versions (#90158) (#91019)
* Update version of react-monaco-editor and monaco-editor libraries

* Fix yarn lock file

* Fix CI

* Fix unit tests

* Fix CI

* Fix comment

* move monaco instance in window.MonacoEnvironment

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 10:07:29 +03:00
Kibana Machine ef775d6ef3
[7.x] [jest/ci] remove max-old-space-size override to use 4gb default (#91020) (#91054)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Spencer <email@spalger.com>
2021-02-11 00:07:23 +00:00
Poff Poffenberger 97a83fb45f
[Time to Visualize] Add functional tests for adding visualizations from Visualize, Lens, and Maps and adjust capabilities for new modal (#89245) (#91004)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-10 14:46:37 -06:00
Matthias Wilhelm bd8642ba76
[Discover] Add "Hide chart" / "Show chart" persistence (#88603) (#90961) 2021-02-10 18:30:11 +01:00
Tyler Smalley 6502c8f8e0
[7.x] [CI] Combines Jest unit tests (#89948) (#90828)
* [CI] Combines Jest unit tests (#89948)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	jest.config.oss.js
#	src/dev/code_coverage/shell_scripts/extract_archives.sh
#	test/scripts/jenkins_unit.sh
#	test/scripts/jenkins_xpack.sh
#	vars/kibanaCoverage.groovy
#	x-pack/jest.config.js

* Fix bad merge

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-02-09 17:52:27 -05:00
Spencer 684edffa1d
[7.x] [es] disable wildcards in destructive actions (#88986) (#90804)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-09 13:15:14 -05:00
Robert Oskamp 1dccab352a
Functional tests - Add esSupertest support for SSL (#90425) (#90755)
This PR allows the functional test service esSupertest to work correctly in environments that have ES SSL enabled in the Kibana server configuration.
2021-02-09 14:34:01 +01:00
Rudolf Meijering 735d9a9993
[7.x] Backport v2 SO migrations, disabled in FTR tests (#89297) (#89903)
* Enable v2 so migrations, disable in FTR tests (#89297)

* Enable v2 so migrations, disable in FTR tests

* Disable v2 migrations for ui_settings integration tests

* Disable v2 migrations for reporting without serucity api integration test
# Conflicts:
#	test/common/config.js

* migrations v2: fix snapshot builds (#89541)

* migrations v2: fix snapshot builds

* Revert "Fix sharing saved objects phase 2 CI (#89056)"

This reverts commit 8263d47d37.

* Fix documentMigrator for snapshot releases (#89936)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-09 09:52:22 +01:00
Tyler Smalley 4ecef99ee0
Use default ES distribution for functional tests (#88737) (#90694)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.ci/packer_cache_for_branch.sh
2021-02-08 22:57:34 -08:00
Spencer d3c37cde22
[7.x] [kbn/optimizer][ci-stats] ship metrics separate from build (#90482) (#90659)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-08 16:40:11 -07:00
Steph Milovic 7d220d54c0
[index patterns] Add pattern validation method to index patterns fetcher (#90170) (#90512)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-08 10:09:18 -07:00
Pierre Gayvallet 97f89e256b
[7.x] Migrate most plugins to synchronous lifecycle (#89562) (#90579)
* Migrate most plugins to synchronous lifecycle (#89562)

* first pass

* migrate more plugins

* migrate yet more plugins

* more oss plugins

* fix test file

* change Plugin signature on the client-side too

* fix test types

* migrate OSS client-side plugins

* migrate OSS client-side test plugins

* migrate xpack client-side plugins

* revert fix attempt on fleet plugin

* fix presentation start signature

* fix yet another signature

* add warnings for server-side async plugins in dev mode

* remove unused import

* fix isPromise

* Add client-side deprecations

* update migration examples

* update generated doc

* fix xpack unit tests

* nit

* (will be reverted) explicitly await for license to be ready in the auth hook

* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"

This reverts commit fdf73feb

* restore await on on promise contracts

* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"

This reverts commit fdf73feb

* Revert "restore await on on promise contracts"

This reverts commit c5f2fe51

* add delay before starting tests in FTR

* update deprecation ts doc

* add explicit contract for monitoring setup

* migrate monitoring plugin to sync

* change plugin timeout to 10sec

* use delay instead of silence
# Conflicts:
#	x-pack/plugins/xpack_legacy/server/plugin.ts

* fix mock
2021-02-08 13:16:05 +01:00
Tyler Smalley f7d50e5daf
[test] Await retry.waitFor (#90456) (#90541)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-02-05 18:56:52 -08:00
Chandler Prall d18bdb0fb2
Upgrade EUI to v31.4.0 (#89648) (#90462)
* Bump EUI to v31.4.0

* fix datagrid functional tests

* fix Lens unit tests

* fix table cell filter test

* Fix discover grid doc view test

* stabilize data table tests

* fix dashboard embeddable datagrid test

* Fix x-pack functional tests

* fix ml accessibility tests

* Fix discover grid context test

* Adapt expected nr of documents being displayed

* stabilize Lens a11y tests and skip data table

* Fix 2 ml functional tests

* enable lens datatable test; disable axe rule for datatable

* fix ml test

* fix Lens table test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
2021-02-05 14:17:03 -07:00
Devon Thomson 05d248127f
Fix Visualize Link Redirecting to Dashboard Linked Visualization (#90243) (#90490) 2021-02-05 15:37:22 -05:00
Devon Thomson c78a5a2645
[7.x] [Time to Visualize] Remove Panels from URL (#86939) (#90247)
Removed panels from dashboard URLs

Co-authored-by: Ryan Keairns <contactryank@gmail.com>
2021-02-04 13:32:02 -05:00
Maja Grubic af940d518f
[Discover] Minor cleanup (#90260) (#90283) 2021-02-04 16:42:11 +00:00
Anton Dosov 012d453624
[Search Session] Revamp search session indicator UI and tour (#89703) (#90277) 2021-02-04 17:00:58 +01:00
Maja Grubic b6038f30b2
[7.x] [Discover] Add support for unmapped fields using the fields API (#89074) (#90184)
* [Discover] Add support for unmapped fields using the fields API (#89074)

* Add search source to example plugin.

* Add uiSetting for fields API.

* Update SearchSource to support fields API.

* [PoC] reading from the fields API in Discover

* Add N fields as a default column

* Make fields column non-removeable

* Do not add 'fields' to state

* Remove fields from app state and read from source when needed

* Remove fields column if a new column is added

* Add search source to example plugin.

* Add uiSetting for fields API.

* Update SearchSource to support fields API.

* Improve error handling in search examples plugin.

* Add unit tests for legacy behavior.

* Remove uiSettings feature flag; add fieldsFromSource config.

* Rewrite flatten() based on final API design.

* Update example app based on final API design.

* Update maps app to use legacy fieldsFromSource.

* Update Discover to use legacy fieldsFromSource.

* Rename source filters to field filters.

* Address feedback.

* Update generated docs.

* Update maps functional test.

* Formatting fields column similar to _source

* Moving logic for using search API to updating search source

* Fix small merge error

* Move useSource switch to Discover section of advanced settings

* Do not use fields and source at the same time

* Remove unmapped fields switch

* Add basic support for grouping multifields

* Remove output.txt

* Fix some merge leftovers

* Fix some merge leftovers

* Fix merge errors

* Fix typescript errors and update nested fields logic

* Add a unit test

* Fixing field formats

* Fix multifield selection logic

* Request all fields from source

* Fix eslint

* Fix default columns when switching between _source and fields

* More unit tests

* Update API changes

* Add unit test for discover field details footer

* Remove unused file

* Remove fields formatting from index pattern

* Remove unnecessary check

* Addressing design comments

* Fixing fields column display and renaming it to Document

* Adding more unit tests

* Adding a missing check for useNewFieldsAPI; minor fixes

* Fixing typescript error

* Remove unnecessary console statement

* Add missing prop

* Fixing import order

* Adding functional test to test fields API

* [Functional test] Clean up in after

* Fixing context app

* Addressing PR comments

* Add support for unmapped fields

* Add data migration

* Add toggle unmapped fields logic

* Adding more unit tests

* Some cleanup

* More unit tests

* Fixing failing snapshot

* Add tooltip next to unmapped switch

* Add functional test for the feature

* Fixing a typo in a functional test

* Refetch data when unmapped fields value changes

* Updating mapping

* Support for fields API in search embeddable

* Addressing PR comments

* Fix failing unit test

* Updating the text

Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* Fixing ES license

Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-04 14:13:32 +00:00
Brandon Kobel 57af8462e4
[7.x] Elastic License 2.0 (#90192)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:39:13 -08:00
Dario Gieselaar bde1b77dac
[7.x] decorate_snapshot_ui: ensure snapshots are saved (#89694) (#90144) 2021-02-03 19:41:24 +01:00
Peter Pisljar c18c39d57f
Examples/expressions2 (#90140) (#90185) 2021-02-03 18:06:43 +01:00
Stratoula Kalafateli cc3eb8ec51
Remove navigation from Discover to Visualize (#89132) (#90129)
* Remove navigation from Discover to Visualize

* Remove unused translation

* Remove oss check from functional test

* Fix functional test

* Skip test for OSS

* Fix

* Should not remove the uiSettings getter and setter

* Move the isOss flag inside the test

* Cleanup

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 12:16:33 +02:00
Matthias Wilhelm d843d7f273
[Discover] Unskip brushing histogram functional test (#89400) (#90125) 2021-02-03 10:55:07 +01:00
Matthias Wilhelm 18e4f05a1c
[Discover] Fix 'auto' collapsing of documents (#89712) (#90120) 2021-02-03 09:53:11 +01:00
Spencer b4de7f47a5
[esArchiver] upgrade to new ES client (#89874) (#90109)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 19:21:29 -07:00
Pierre Gayvallet 36ea213f7d
migrate more core-owned plugins to tsproject ref (#89975) (#90018)
* migrate more plugins to tsproject ref

* revert changes for xpack_legacy

* fix IT
# Conflicts:
#	src/dev/code_coverage/ingest_coverage/integration_tests/team_assignment.test.js
2021-02-02 19:57:38 +01:00
Marta Bondyra 596479afa8
[Lens] Refactor reorder drag and drop (#88578) (#89846) 2021-02-02 10:43:06 +01:00
Christiane (Tina) Heiligers 04fcaba75b
Migrate indexPatternManagement to TS project ref (#89759) (#89914) 2021-02-01 14:45:23 -07:00
Pierre Gayvallet 43927b8707
migrate legacy_export plugin to tsproject ref (#89858) (#89872) 2021-02-01 17:51:23 +01:00
Uladzislau Lasitsa e5406e4adf
[Vega] Use mapbox instead of leaflet (#88605) (#89718)
* [WIP][Vega] Use mapbox instead of leaflet #78395

add MapServiceSettings class

some work

add tms_raster_layer

add LayerParameters type

clenup view.ts

some cleeanup

fix grammar

some refactoring and add attribution control

Some refactoring

Add some validation for zoom settings and destroy handler

Some refactoring

some work

fix bundle size

Move getZoomSettings to the separate file

update licence

some work

move logger to createViewConfig

add throttling for updating vega layer

* move EMSClient to a separate bundle

* [unit testing] add tests for validation_helper.ts

* [Bundle optimization] lazy loading of '@elastic/ems-client' only if user open map layer

* [Map] fix cursor: crosshair -> auto

* [unit testing] add tests for tms_raster_layer.test

* [unit testing] add tests for vega_layer.ts

* VSI related code was moved into a separate file / unit tests were added

* Add functional test for vega map

* [unit testing] add tests for map_service_setting.ts

* Add unload in function test and delete some unneeded code from test

* road_map -> road_map_desaturated

* [unit testing] add more tests for map_service_settings.test.ts

* Add unit tests for view.ts

* Fix some remarks

* Fix unit tests

* remove tms_tile_layers enum

* [unit testing] fix map_service_settings.test.ts

* Fix unit test for view.ts

* Fix some comments

* Fix type check

* Fix CI

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

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 16:23:43 +03:00
Pierre Gayvallet d3c8fa05d8
[7.x] [SOM] display invalid references in the relationship flyout (#88814) (#89838)
* [SOM] display invalid references in the relationship flyout (#88814)

* return invalid relations and display them in SOM

* add FTR test

* fix mappings for 7.x
2021-02-01 14:22:16 +01:00
Stratoula Kalafateli b68fe92031
Fixes flakiness on timelion suggestions (#89538) (#89843)
* Fixes flakiness on timelion suggestions

* Improvements

* Remove flakiness

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/functional/apps/timelion/_expression_typeahead.js
2021-02-01 14:33:17 +02:00
Liza Katz 6340c7843c
[Search Sessions] Improve search session errors (#88613) (#89823)
* Detect ESError correctly
Fix bfetch error (was recognized as unknown error)
Make sure handleSearchError always returns an error object.

* fix tests and improve types

* type

* normalize search error response format for search and bsearch

* type

* Added es search exception examples

* Normalize and validate errors thrown from oss es_search_strategy
Validate abort

* Added tests for search service error handling

* Update msearch tests to test for errors

* Moved bsearch route to routes folder
Adjusted bsearch response format
Added verification of error's root cause

* Align painless error object

* eslint

* Add to seach interceptor tests

* add json to tsconfig

* docs

* updated xpack search strategy tests

* oops

* license header

* Add test for xpack painless error format

* doc

* Fix bsearch test potential flakiness

* code review

* fix

* code review 2

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-31 17:13:06 +02:00
Spencer 30efb21112
[7.x] [kbn/pm] throw an error if package doesn't have a script (#89438) (#89462)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 11:48:28 -07:00
Christiane (Tina) Heiligers 7e401830d5
[7.x] Fix flights sample data dashboard visualization (#89460) (#89724)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 11:05:56 -07:00
Pete Harverson c6d8e34a75
[ML] Stabilize accessibility tests for data frame analytics pages (#89423) (#89691)
* [ML] Stabilize accessibility tests for data frame analytics pages

* [ML] Remove snapshot test after opening index pattern modal

* [ML] Remove snapshot test when index pattern modal opens

* [ML] Add back snapshot test at index pattern modal step
2021-01-29 11:05:29 +00:00
Jonathan Budzenski c2163a5675 Revert "[7.x] [CI] Combines Jest test jobs (#85850) (#89432)"
This reverts commit e36dfcd49f.
2021-01-28 12:17:22 -06:00
Lee Drengenberg 4ef94ade75
[7.x] unskip getting_started/shakespeare test elasticsearch 64016 (#89346) (#89487)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-28 09:18:05 -06:00
Matthias Wilhelm 925f12a237
[Discover] Merge discover.tsx and discover_legacy.tsx (#88465) (#89446) 2021-01-28 15:37:24 +01:00
Anton Dosov bba95e8269
[Search Sessions] Improve session restoration back button (#87635) (#89532) 2021-01-28 11:44:04 +01:00
Tyler Smalley e36dfcd49f
[7.x] [CI] Combines Jest test jobs (#85850) (#89432)
* [CI] Combines Jest test jobs (#85850)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	jest.config.oss.js
#	src/dev/code_coverage/shell_scripts/extract_archives.sh
#	test/scripts/jenkins_unit.sh
#	test/scripts/jenkins_xpack.sh
#	vars/kibanaCoverage.groovy
#	x-pack/jest.config.js

* [CI] Decrease number of Jest workers

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 16:16:22 -08:00
spalger 9030eabd56 skip flaky suite (#89475)
(cherry picked from commit c8ef36ab12)
2021-01-27 13:09:44 -07:00
spalger 31397bad52 skip flaky suite (#89477)
(cherry picked from commit 27d9a9ddaa)
2021-01-27 13:09:42 -07:00
spalger 737f2a49f2 skip flaky suite (#89476)
(cherry picked from commit 44b8333141)
2021-01-27 13:09:40 -07:00
spalger b85ffb7c57 skip flaky suite (#89478)
(cherry picked from commit 4499f62dcb)
2021-01-27 13:09:39 -07:00
Stratoula Kalafateli 68ae33ccc3
Increase the time needed to locate the save viz toast (#89301) (#89426)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 19:13:28 +02:00
Stratoula Kalafateli ddc205821a
[7.x] Cleanup OSS code from visualizations wizard (#89092) (#89409)
* Cleanup OSS code from visualizations wizard (#89092)

* Cleanup OSS code from visualizations wizard

* Remove unecessary translations

* Remove unused translation

* Fix functional test

* Disable the functional test for OSS

* Remove from oss correctly :D

* Fix ci
# Conflicts:
#	.github/CODEOWNERS
#	docs/developer/plugin-list.asciidoc
#	packages/kbn-optimizer/limits.yml

* fix plugin list docs

* Change plugins docs list
2021-01-27 16:01:23 +02:00
Tyler Smalley b8a60b0acb skip flaky suite (#89379) 2021-01-26 16:30:56 -08:00
Tyler Smalley 6d19704e0a skip flaky suite (#89031) 2021-01-26 15:27:51 -08:00
Tyler Smalley 589862cf58 Fixes linting caused by skipping flaky suite
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-01-26 14:14:39 -08:00
Tyler Smalley 4e01b80cd6 skip flaky suite (#88826) 2021-01-26 13:42:35 -08:00
Daniil 3f81a0b16a
[Visualizations] Changes in custom visualizations support (#88317) (#89266)
* Convert to typescript

* Move related files directly into plugin

* Implement toExpressionAst

* Remove build_pipeline dedicated fn

* Async import converter

* Create a custom renderer

* Move function directly into plugin

* Update tests

* Move files directly into related plugins

* Remove ExprVis instance usage in maps visualizations

* Use uiState updates

* Fix minor issues

* Update expression builder

* Update styles

* Create wrapper component

* Update rendering

* Create region map expression renderer

* Fix tests and types

* Fix initial render

* Remove resize subscription

* Fix custom visualization expression

* Update region map expression in tests

* Update files structure

* Remove ReactVisController

* Remove base visualization renderer

* Remove extra vis properties

* Use requiresSearch flag for agg based vis

* Update types

* Remove visualization expression function

* Create toExpressionAst function

* Update custom visualization example

* Update interpreter functional tests

* Enhance VisTypeDefinition interface

* Enhance visualization types

* Update license

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

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-26 13:02:07 +03:00
Diana Derevyankina 77e3f33b3c
Advanced JSON input functional test (#88609) (#89123)
* Advanced JSON input functional test

* Replace string check with object property check

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 19:58:28 +03:00
Diana Derevyankina f7b288bd8f
Small multiples in vis_type_xy plugin (#86880) (#89127)
* Small multiples in vis_type_xy plugin

* Fix tooltip and formatted split chart values

* update advanced settings wording

* Remove React import in files with no JSX and change the extension to .ts

* Simplify conditions

* fix bar interval on split charts in vislib

* Fix charts not splitting for terms boolean fields

* fix filtering for small multiples

* Change tests interval values from 100 to 1000000

* Revert "Change tests interval values from 100 to 1000000"

This reverts commit 92f9d1b4b9.

* Fix tests for interval issue in vislib

(cherry picked from commit ef45b63c47da403399f76f00b49329531d445f31)

* Revert axis_scale changes related to interval

* Enable _line_chart_split_chart test for new charts library

* Move chart splitter id to const

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 18:00:04 +03:00
Alejandro Fernández Haro ddcd8a2783
[7.x] [Functional tests] Drop legacyEs usage (#88939) (#89089)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 12:16:31 +00:00
Peter Pisljar d4084f50e2
[examples] expressions explorer (#88344) (#89065) 2021-01-23 06:29:13 +01:00
Joe Portner 73d1f644cd
[7.x] Sharing saved objects, phase 2 (#80945) (#88917) 2021-01-22 16:53:47 -05:00
Pierre Gayvallet a8c21e0477
[7.x] add SavedObject export hooks (#87807) (#88973)
* add SavedObject export hooks (#87807)

* initial POC

* fix spaces UT

* address POC feedback, add tests for applyExportTransforms

* add sorting for transforms

* add type validation in SOTR

* add FTR tests

* update documentation

* add explicit so type export for client-side

* update generated doc

* add exporter test

* update license headers

* update generated doc

* fix so import... imports

* update generated doc

* nits

* update generated doc

* rename test plugins

* adding FTR tests on export failures

* fix data for 7.x
2021-01-21 22:01:31 +01:00
Mikhail Shustov 99cd66f72d
[Core] Explicit typings for request handler context (#88718) (#88975)
* move context to server part. couple with RequestHandlerContext

Context implementation will be simplified in follow-up.

* adopt core code

* adopt bfetch code

* adopt data code

* adopt search examples

* adopt vis_type_timelion

* adopt vis_type_timeseries

* adopt plugin functional tests

* adopt actions

* adopt alerting plugin

* adopt APM plugin

* adopt beats_management

* adopt case plugin

* adopt cross_cluster_replication

* adopt data_enhanced

* adopt event_log

* adopt global_search

* adopt index_management

* adopt infra

* adopt licensing

* adopt lists

* adopt logstash

* adopt reporting

* adopt observability

* adopt monitoring

* adopt rollup

* adopt so tagging

* adopt security

* adopt security_solutions

* adopt watcher

* adopt uptime

* adopt spaces

* adopt snapshot_restore

* adopt features changes

* mute error when null used to extend context

* update docs

* small cleanup

* add type safety for return type

* refactor registerRouteHandlerContext type

* update docs

* update license header

* update docs

* fix type error. fetch body does not accept array of strings

* fix telemetry test

* remove unnecessary ts-ignore

* address comments

* update docs
# Conflicts:
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.plugin.start.md
#	src/plugins/data/server/server.api.md
#	x-pack/plugins/monitoring/server/plugin.ts
2021-01-21 18:13:51 +01:00
Joe Reuter 7294d9cb6c
make drag drop test more stable (#88614) (#88963) 2021-01-21 16:21:26 +01:00
Rudolf Meijering fc687b790b
Handle another node already having deleted the temporary index (#88332) (#88949)
* Handle another node already having deleted the temporary index

* Make run_multiple_kibana_nodes.sh script more generic

* Add note about dependency on jq

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 14:13:19 +01:00
Pierre Gayvallet fd4628dcd3
Add SO import hook / warnings API (#87996) (#88887)
* initial commit

* adapt client-side signatures

* more type fixes

* adapt api IT asserts

* fix some unit tests

* fix more test usages

* fix integration tests

* fix FT test assertions

* fix FT test assertions

* add FTR API integ test suite

* create the plugin_api_integration test suite

* adapt and fix flyout tests

* update documentation

* update generated doc

* add unit tests for `executeImportHooks`

* wire resolve_import_errors and add unit tests

* move hooks registration to SO type API

* update generated doc

* design integration

* update generated doc

* Add FTR tests for import warnings

* deletes plugins api integ tests

* self review

* move onImport to management definition

* update license header

* rename actionUrl to actionPath
2021-01-20 21:37:24 +01:00
Alejandro Fernández Haro ee5b6d22a3
[7.x] [FTR] Use new ES client instead of legacyEs service (#88720) (#88845) 2021-01-20 17:48:30 +00:00
Tiago Costa 80f45d403e
chore(NA): create new x-pack cigroups and rebalancing them all (#88366) (#88833)
* chore(NA): create new x-pack cigroups and rebalancing them all

* chore(NA): better cigroups balancing

* chore(NA): push rollup tests back into ciGroup1

* chore(NA): move some functional ml tests from cigroup3 into cigroup13

* chore(NA): move some more tests into ciGroup13

* chore(NA): use a single top level describe at x-pack/test/functional/apps/ml

* chore(NA): move settings into ciGroup13

* temporary test for es snapshots env

* Revert "temporary test for es snapshots env"

This reverts commit 789ebe7b9c.

* docs(NA): add missing documentation on the function tests describe split

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	vars/kibanaCoverage.groovy
2021-01-20 15:46:18 +00:00
Dmitry 58b582f165
[FTR] add custom runner and config to run load tests (#88409) (#88825)
* add custom runner and config for load testing

* add full maven command

* add jenkins script

* run tests against build

* run kibana with no-base-path flag

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-20 15:41:29 +01:00
Tyler Smalley baf56d80c4
[7.x] Updating the License (#88343) (#88745)
* Updating the Licenses, except for applying eslint, building

* Applying ESLint rules,building @kbn/pm, regenerating api docs

Co-authored-by: kobelb <brandon.kobel@elastic.co>
2021-01-19 17:54:11 -08:00
Ahmad Bamieh 863ade4670
[7.x] [SavedObjects] Allow migrations to be a function (#88594) (#88700)
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
2021-01-19 22:14:23 +02:00
Alejandro Fernández Haro 9e933fc796
[7.x] [Application Usage] Functional test to validate the full list of appIds in the schema (#88080) (#88681)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-19 17:45:20 +00:00
Maja Grubic 53036698cb
[7.x] [Discover] Use fields API to retrieve fields (#83891) (#88493)
* [Discover] Use fields API to retrieve fields (#83891)

* Add search source to example plugin.

* Add uiSetting for fields API.

* Update SearchSource to support fields API.

* [PoC] reading from the fields API in Discover

* Add N fields as a default column

* Make fields column non-removeable

* Do not add 'fields' to state

* Remove fields from app state and read from source when needed

* Remove fields column if a new column is added

* Add search source to example plugin.

* Add uiSetting for fields API.

* Update SearchSource to support fields API.

* Improve error handling in search examples plugin.

* Add unit tests for legacy behavior.

* Remove uiSettings feature flag; add fieldsFromSource config.

* Rewrite flatten() based on final API design.

* Update example app based on final API design.

* Update maps app to use legacy fieldsFromSource.

* Update Discover to use legacy fieldsFromSource.

* Rename source filters to field filters.

* Address feedback.

* Update generated docs.

* Update maps functional test.

* Formatting fields column similar to _source

* Moving logic for using search API to updating search source

* Fix small merge error

* Move useSource switch to Discover section of advanced settings

* Do not use fields and source at the same time

* Remove unmapped fields switch

* Add basic support for grouping multifields

* Remove output.txt

* Fix some merge leftovers

* Fix some merge leftovers

* Fix merge errors

* Fix typescript errors and update nested fields logic

* Add a unit test

* Fixing field formats

* Fix multifield selection logic

* Request all fields from source

* Fix eslint

* Fix default columns when switching between _source and fields

* More unit tests

* Update API changes

* Add unit test for discover field details footer

* Remove unused file

* Remove fields formatting from index pattern

* Remove unnecessary check

* Addressing design comments

* Fixing fields column display and renaming it to Document

* Adding more unit tests

* Adding a missing check for useNewFieldsAPI; minor fixes

* Fixing typescript error

* Remove unnecessary console statement

* Add missing prop

* Fixing import order

* Adding functional test to test fields API

* [Functional test] Clean up in after

* Fixing context app

* Addressing PR comments

* Updating failed snapshot

* Addressing PR comments

* Fixing i18n translations, updating type

* Addressing PR comments

* Updating a functional test

* Add a separate functional test for fields API

* Read fields from source in a functional test

* Skip buggy test

* Use default behavior in functional tests

* Fixing remaining failing tests

* Fixing date-nanos test

* Updating FLS test

* Fixing yet another functional test

* Skipping non-relevant tests

* Fixing more tests

* Update stub import in test

* Fix import

* Fix invalid import

Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/test/functional/apps/security/doc_level_security_roles.js
#	x-pack/test/functional/apps/security/field_level_security.js

* Fixing failing functional tests

* Fixing failing functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-19 16:12:26 +00:00
Mikhail Shustov f90e4d3018
[Core] Remove public context (#88448) (#88629)
* remove client side context

* update docs

* fix tests

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-19 09:19:54 +01:00
Bhavya RM 6eb1fabe5d
A11y tests for roles page (#79900) (#88619) 2021-01-18 17:47:31 -05:00
Devon Thomson ccff49ddf7
[Time to Visualize] Enable by Default (#88390) (#88626)
* Enable Time to Visualize by Default
2021-01-18 16:13:39 -05:00
Tiago Costa 7bdac0bea4
chore(NA): remove mocha junit ci integrations (#88129) (#88534)
* chore(NA): remove mocha junit ci integrations

* chore(NA): remove mocha script from xpack

* chore(NA): single rule exclusion on eslint config for mocha

* chore(NA): remove unused custom mocha integration code from kbn/test

* chore(NA): rewording packages readme

* docs(NA): remoe mocha mention from development-unit-tests
# Conflicts:
#	docs/developer/contributing/development-unit-tests.asciidoc
#	test/scripts/jenkins_unit.sh
2021-01-16 00:01:29 +00:00
Jonathan Budzenski 1dc3276e74
[7.x] [dev] Replace sass-lint with stylelint (#86177) (#88498)
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>

Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
2021-01-15 14:36:34 -06:00
Daniil ae139f927f
[TileMap][RegionMap] Implement custom renderers and expression builders (#84775) (#88308)
* Convert to typescript

* Move related files directly into plugin

* Implement toExpressionAst

* Remove build_pipeline dedicated fn

* Async import converter

* Create a custom renderer

* Remove ExprVis instance usage in maps visualizations

* Use uiState updates

* Create wrapper component

* Update rendering

* Create region map expression renderer

* Remove resize subscription

* Fix custom visualization expression

* Update interpreter functional tests

* Use types from geojson

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

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 16:09:05 +03:00
Diana Derevyankina e2647645d7
[TSVB] Validation telemetry removal (#87848) (#88304)
* [TSVB] Validation telemetry removal

* Update telemetry check oss_plugins.json

* Remove unnecessary async function, usageCollection from optional plugins and fix telemetry_local test
2021-01-14 12:33:58 +03:00
Mikhail Shustov 83b3510da8
[DX] SavedObjectsManagement to TS project (#88240) (#88283)
* som to ts project

* global_search_providers to ts projecvt
2021-01-14 08:44:10 +01:00
Mikhail Shustov 4b650e9f5e
[DX] move some ES UI plugins to TS project (#88050) (#88276)
* es_ui_shared to ts project

* console to ts project

* console_extensions to ts project

* searchprofiler to ts project

* update includes
2021-01-14 08:43:10 +01:00
Christiane (Tina) Heiligers 9a12f16294
[7.x] Converts Telemetry Management Section to TS project refs (#88073) (#88191) 2021-01-13 10:50:03 -07:00
Jean-Louis Leysens 3ebce3c2b0
[Console] Add functional test to check for basic autocomplete functionality (#87331) (#88165)
* added first pass at functional test

* refactor console autocomplete test to be more robust

* remove unused variable

* refactored test to use data-test-subj where possible

* remove unused value

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 16:47:14 +01:00
Joe Reuter dfa0c67f3b
Kibana app and presentation ts projects (#87639) (#88035) 2021-01-13 11:53:40 +01:00
Alexey Antonov f7710eeefe
[TSVB] Allow custom label for fields via index pattern field management (#84612) (#88074)
* [TSVB] Allow custom label for fields via index pattern field management

Closes: #84336

* replace saveObject, elasticsearch client to new one

* fix CI

* update schema

* fix Top Hit

* some changes

* partially move getting fields into client side

* fix PR comments

* fix issue with getting fields

* move SanitizedFieldType to common types

* fix issue on changing index pattern

* fix issue

* fix regression

* some work

* remove extractFieldName, createCustomLabelSelectHandler

* request/response processors should be async

* some work

* remove tests for createCustomLabelSelectHandler

* fix table

* fix placeholder

* some work

* fix jest

* fix CI

* fix label for table view

* test: visualize app visual builder switch index patterns should be able to switch between index patterns

* fix functional tests

* fix sorting

* fix labels for entire timerange mode

* add createFieldsFetcher method

* table view - fix pivot label

* fix PR comments

* fix issue with selecting buckets scripts

* fix types

* Update create_select_handler.test.ts

* fix PR comments

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 09:41:46 +03:00
Anton Dosov efaebd8974
[Search] Search Sessions with relative time range (#84405) (#88013) 2021-01-12 17:44:56 +01:00
Aleh Zasypkin fb29691106
[7.x] Do not embedd credentials into ES URL and enable anonymous tests. (#88005) 2021-01-12 16:09:29 +01:00
Christiane (Tina) Heiligers d0ca49ce3f
[7.x] [DX] Management to TS projects (#87660) (#87847)
* Adds management to tsconfig refs

* removes preemptive script fix
2021-01-11 10:45:09 -07:00
Stratoula Kalafateli 6ccb14e301
[Timelion] Fix tests flakiness on suggestion click (#87273) (#87802)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 13:23:52 +02:00
Joe Reuter 81378edcbf
[Lens]Test color syncing (#86906) (#87626) 2021-01-11 11:58:25 +01:00
Angela Chuang 0d1d095677
[Security Solution] Unskip cypress tests (#86653) (#87767)
* unskip data provider cypress test

* remove extra whitespace for filter classes

* remove cy.wait

* update functional test

* fix cypress and add tabType to dataTestSubj

* fix cypress test

* revert createNewTimeline task

* fix dependency

* fix line error

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-08 23:38:05 +00:00
Tiago Costa f8eb44e58e
chore(NA): move kbn-es-archiver from mocha into jest (#87699) (#87748)
* chore(NA): move kbn-es-archiver from mocha into jest

* chore(NA): remove mocha temporarily from CI
2021-01-08 00:04:28 +00:00
Devon Thomson 28365e322e
[Time to Visualize] Align Lens & Visualize Top nav Buttons & Behaviour (#86922) (#87677)
* Aligned Lens & Visualize Top nav behaviour and look
2021-01-07 14:55:03 -05:00
Devon Thomson 4492282223
[Dashboard] Fix Missing Legacy Redirect (#87246) (#87509)
* Added dashboard no match to run legacy redirect. Added functional test coverage
2021-01-07 12:56:18 -05:00
Mikhail Shustov 1d4164000a
[DX] Home & SO tagging OSS to TS projects (#87610) (#87621)
* so tagging oss to ts project

* home to ts project
2021-01-07 16:19:58 +01:00
Pierre Gayvallet 6e66ee0f65
Expose SO import/export APIs from the service's contract instead of exporting static functions (#86264) (#87611)
* Add user doc for SO tagging

* add link to new page

* handle review feedbacks

* second pass

* create SO exporter class

* adapt spaces code

* typo fix

* adapt tests

* some doc

* update generated doc

* fix spaces tests

* move ALL the import things

* adapt / move types

* create context, adapt core code

* adapt integration tests

* rename for consistency

* adapt spaces usages

* adapt spaces routes usages

* remove unused getImportExportObjectLimit

* fix tsdoc

* update generated doc

* doc nits

* review comments

* add test for fetchByObjects failure

* add custom errors for exporter

* remove `getImportExportObjectLimit` API

* fix IT

* update generated doc

* adapt UT

* forgot one Boom usage

* rename import error to failure

* remove Boom usages from importer

* update generated doc

* fix spaces types
2021-01-07 13:43:31 +01:00
Mikhail Shustov 838c0ef754
Migrate App services plugins to TS projects (#87294) (#87604)
* migrate expressions to ts project refs

* bfetch to ts project

* ui_actions to ts project

* move fitures to data plugins

* add data ts project

* remove outdated ts-expect-error

* add data to x-pack tsconfigs

* navigation to ts project

* cleanup licensing tsconfig

* saved_objects to ts project

* embeddable to ts project

* ui_actions_enhanced to ts project

* embeddable_enhanced to ts project

* features to ts project

* data_enhanced to ts project refs

* fix i18n check

* fix find_plugins_ready_to_migrate_to_ts_refs script

* add a comment for bug ignoring json for composite projects

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 11:57:24 +01:00
Devon Thomson 530095ea00
[Time to Visualize] Align Lens & Visualize Breadcrumbs (#86941) (#87395)
* Aligned Lens & Visualize Breadcrumbs
2021-01-06 10:48:15 -05:00
Nick Partridge 853dfaedcb
Rename chartLibrary setting to legacyChartsLibrary (#86529) (#87328)
* rename chartLibrary setting to legacyChartsLibrary

* fix spelling

* fix plugin setting check boolean
2021-01-06 10:26:53 +02:00
Alexey Antonov 41aab669bc
[Data plugin] Wrong caching for Index pattern fields (#87116) (#87376)
* [Data plugin] Wrong caching for Index pattern fields

Closes: #84666

* remove can update index_pattern fields test

* fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/data/common/index_patterns/index_patterns/index_patterns.ts
2021-01-06 09:19:53 +03:00
Mikhail Shustov 5bb0186c15
Remove dynamic mapped types from UiActions (#87075) (#87274)
* Remove dynamic mapped types from UiActions

* Remove import between data <-> embeddables

* remove outdated comments, export action types from discover_enhanced

* fix notice.txt

Co-authored-by: restrry <restrry@gmail.com>

Co-authored-by: Josh Dover <me@joshdover.com>
2021-01-05 13:27:11 +01:00
Liza Katz 485667511e
[Search] Session server side functional tests (#86152) (#87210)
* OSS search functional tests

* x-pack tests

* Session tests

* Update search.ts

* Update session.ts

* Update test/api_integration/apis/search/search.ts

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

* reportServerError

* Improve response error codes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2021-01-04 17:45:28 -07:00
Maja Grubic 755b042d87
[Discover] Integration of EuiDataGrid (#67259) (#86871)
Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-12-23 13:56:36 +00:00
Jonathan Budzenski 96fa0dbdf9 [build] Migrate grunt ensureAllTestsInCIGroup to script (#85873)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-22 09:46:00 -06:00
Matthias Wilhelm 32e6dc5fc5
[Discover] Change default sort handling (#85561) (#86557) 2020-12-22 12:05:53 +01:00
Tyler Smalley 0cffe7a2e0
[CI] Removes script previously used for Karma (#86412) (#86714)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 17:22:37 -08:00
Jonathan Budzenski d9bcdd027b [build] Remove grunt docker:docs task (#85848)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 15:20:05 -06:00
Jonathan Budzenski 3d925d06b9 skip histogram brushing, #86602 2020-12-21 11:27:13 -06:00
Nick Partridge 86563373c5
[7.x] Create vis_type_xy plugin to replace histogram, area and line charts (#78154) (#86534) 2020-12-18 22:00:58 -06:00
Devon Thomson d20bb3d781
[Time to Visualize] Fix Dashboard OnAppLeave (#86193) (#86525)
Added isTransferInProgress to embeddable_state_transfer for apps to determine whether or not to show onAppLeave confirm
2020-12-18 17:21:05 -05:00
Jonathan Budzenski c21992b9a2 skip 'dashboard title is case insensitive' #86226 2020-12-17 09:34:42 -06:00
Peter Pisljar 385f72792e
inspector table adapter cleanup (#84232) (#86260) 2020-12-17 14:45:55 +01:00
Tyler Smalley af5b7afd4c Revert "chore(NA): rebalance x-pack cigroups (#85797) (#86146)"
This reverts commit c24da96269.
2020-12-16 15:31:59 -08:00
Tyler Smalley c24da96269
chore(NA): rebalance x-pack cigroups (#85797) (#86146)
# Conflicts:
#	vars/kibanaCoverage.groovy

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2020-12-16 11:48:43 -08:00
Daniil 9816da3498
[Data table] Reactify & EUIficate the visualization (#70801) (#85936)
* Use data grid for table vis

* Create basic table template

* Add table_vis_split component

* Apply cell filtering

* Add aria-label attributes

* Use field formatters for values

* Add no results component

* Remove legacy dependencies

* Add usePagination

* Create usePagination util

* Use percentage column and total row

* Use csv export button

* Update labels

* Fix merge conflicts

* Use split table

* Fix functional tests

* Fix dashboard tests

* Update data table functional tests

* Fix missed test

* Introduce showToolbar option

* Remove useless package

* Fix merge conflicts

* Return back kibanaUtils required bundle

* Revert "Remove useless package"

This reverts commit 144a7cd77c.

* Use feature flag for legacy vis

* Add footer row

* Remove lock files

* Revert "Remove lock files"

This reverts commit 5c5acd79f4.

* Minor fixes

* Use common no result message

* Fix broken tests

* Use ui state sorting

* Fix error

* Fix merge conflicts

* Add legacy functional tests

* Pull pagination footer up to keep with table

and fix column split growing continuously in dashboard

* Comments fixes

* Use cell actions for filtering

* Fix translations

* Fix comments

* Reduce legacy tests amount

* Update sorting

* Update split column layout

* Add telemetry for legacy vis

* Apply latest changes for split table

* Fix eslint errors

* Use aria labels with values

* Use aria label for export btn

* Fix functional test

* Update translations

* Cleanup

* Truncate cells content

* Enhance types in table_vis_response_handler.ts

* Persist columns width on change

* Fix sorting history

* Add a migration script for toolbar

* Export sorted table

* Use reportUiCounter instead of reportUiStats

* Fix integration tests

* Fix typos

* Adjust FieldFormat type

* Hide the density selector

* Update docs

* Fix pagination

* Restrict hiding the toolbar

* Fix column index on filter

* Add closePopover action

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	scripts/functional_tests.js

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 14:53:45 +03:00
Alexey Antonov 1adf949277
Gauge visualization can no longer be clicked to filter on values since Kibana 7.10.0 (#84768) (#85938)
* Gauge visualization can no longer be clicked to filter on values since Kibana 7.10.0

Closes #84191

* Add functional test to  filtering on gauge

Co-authored-by: Diana Derevyankina <54894989+DziyanaDzeraviankina@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 09:33:33 +03:00
Ahmad Bamieh 6c1d24fc31
[7.x] [Telemetry] Application Usage track sub application views (#85765) (#86072)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 06:11:57 +02:00
Joe Portner d2d98e8ccf
Update core usage stats collection (#85706) (#85879) 2020-12-15 14:19:57 -05:00
Tyler Smalley 82225db0a3
test:jest improvements to better support our monorepo (#84848) (#85880)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	docs/developer/contributing/development-functional-tests.asciidoc
#	test/scripts/jenkins_unit.sh
#	test/scripts/jenkins_xpack.sh
#	x-pack/README.md

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 09:11:51 -08:00
Jonathan Budzenski 8b4e2fe7ce skip "without kibana index" suite. #85911 2020-12-15 10:38:10 -06:00
Tiago Costa 815d19d410
skip flaky suite (#85911) 2020-12-15 15:06:15 +00:00
Stratoula Kalafateli d1eb749ed4
[TSVB] Fix functional tests flakiness and unskip them (#85388) (#85919)
* [TSVB] Fix functional tests flakiness and unskip them

* Fix functional test failure

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 13:35:09 +02:00