Commit graph

4349 commits

Author SHA1 Message Date
spalger f97958043f Revert "Migrations v2: don't auto-create indices + FTR/esArchiver support (#85778)"
This reverts commit 03636a07fe.
2021-02-01 17:46:45 -07:00
Dmitry 2498f5719f
[load testing] add env vars to pass simulations and repo rootPath (#89544)
* [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-01 22:33:50 +01:00
Christiane (Tina) Heiligers 5c96da1e20
Migrate indexPatternManagement to TS project ref (#89759) 2021-02-01 12:24:07 -07:00
Pierre Gayvallet 688b918888
migrate legacy_export plugin to tsproject ref (#89858) 2021-02-01 16:00:48 +01:00
Rudolf Meijering 03636a07fe
Migrations v2: don't auto-create indices + FTR/esArchiver support (#85778)
* Migrations V2 on by default

* esArchiver delete migrations v2 indices

* Fix saved_objects_management api_integration tests

* Try to fix v2 migrations for pre-release builds

* esArchiver delete auto-created v2 migration indices like .kibana_8.0.0

* Try to fix v2 migrations for pre-release builds

* Use require_alias to prevent auto-created saved objects index

* Wrap SO routes until core logs all internal errors

* Fix api_integration tests requiring an empty kibana index

* Delete corrupt saved object from lens archives

* Update docs

* Fix ui_settings tests

* Fix core jest tests

* Fix type errors

* Fix accessibility tests

* Fix plugin functional tests

* Fix api_integration tests after merging in master

* Fix plugin functional tests #2

* EsArchiver: Don't reset ui settings after the .kibana index was deleted

* Fix functional management/visualize tests

* Fix oss security functional tests

* EsArchiver clean task manager indices to fix alerting api integration tests

* migrationsv2 correctly handle unknown saved object type mappings

* Revert "Try to fix v2 migrations for pre-release builds"

This reverts commit a1a1567501.

* Revert "Try to fix v2 migrations for pre-release builds"

This reverts commit a9a935558c.

* Re-enable v2 migrations in tests after merging in master

* Try to fix async dashboard functional test

* Restore UiSettings defaults after emptyKibanaIndex()

* Review feedback: rename test to match behaviour
2021-02-01 15:46:16 +01:00
Marta Bondyra 1b8c3c1dcc
[Lens] Refactor reorder drag and drop (#88578) 2021-02-01 11:54:16 +01:00
Stratoula Kalafateli 19b1f46611
Fixes flakiness on timelion suggestions (#89538)
* Fixes flakiness on timelion suggestions

* Improvements

* Remove flakiness

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 12:43:06 +02:00
Pierre Gayvallet 84d49f1123
[SOM] display invalid references in the relationship flyout (#88814)
* return invalid relations and display them in SOM

* add FTR test
2021-02-01 11:03:44 +01:00
Liza Katz 841ab704b8
[Search Sessions] Improve search session errors (#88613)
* 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>
2021-01-31 12:16:46 +02:00
Christiane (Tina) Heiligers a29d4d3b1b
Fix flights sample data dashboard visualization (#89460)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 07:10:12 -07:00
Uladzislau Lasitsa e8e8f78b39
[Vega] Use mapbox instead of leaflet (#88605)
* [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>
2021-01-29 16:49:51 +03:00
Pete Harverson 827446bfcf
[ML] Stabilize accessibility tests for data frame analytics pages (#89423)
* [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 09:15:45 +00:00
Jonathan Budzenski 5c709bb6cc Revert "[CI] Combines Jest test jobs (#85850)"
This reverts commit 46ac4ed7a2.
2021-01-28 12:15:45 -06:00
Jonathan Budzenski 99d1760324 Revert "[CI] Decrease number of Jest workers (#89504)"
This reverts commit b2d4412146.
2021-01-28 12:14:52 -06:00
Anton Dosov 07b210e42d
[Search Sessions] Improve session restoration back button (#87635) 2021-01-28 09:54:26 +01:00
Tyler Smalley b2d4412146
[CI] Decrease number of Jest workers (#89504)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-01-27 16:15:28 -08:00
Lee Drengenberg 8f3e1cf7fc
unskip getting_started/shakespeare test elasticsearch 64016 (#89346)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 14:55:00 -06:00
spalger 4499f62dcb skip flaky suite (#89478) 2021-01-27 13:08:09 -07:00
spalger 44b8333141 skip flaky suite (#89476) 2021-01-27 13:07:12 -07:00
spalger 27d9a9ddaa skip flaky suite (#89477) 2021-01-27 13:04:11 -07:00
spalger c8ef36ab12 skip flaky suite (#89475) 2021-01-27 13:03:00 -07:00
Spencer 3c604438b8
[kbn/pm] throw an error if package doesn't have a script (#89438)
* [kbn/pm] throw an error if package doesn't have a script

* actually add the kbn/es build script 🤦‍♂️

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-01-27 11:22:26 -07:00
Matthias Wilhelm 0a7a9e4933
[Discover] Merge discover.tsx and discover_legacy.tsx (#88465) 2021-01-27 17:58:42 +01:00
Tyler Smalley 46ac4ed7a2
[CI] Combines Jest test jobs (#85850)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-01-27 07:36:10 -08:00
Stratoula Kalafateli d1b88afd3b
Increase the time needed to locate the save viz toast (#89301) 2021-01-27 17:01:02 +02:00
Rudolf Meijering c8afae8a51
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
2021-01-27 12:13:15 +01:00
Stratoula Kalafateli 64e9cf0440
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
2021-01-27 12:45:49 +02:00
Tyler Smalley 2c648acffd skip flaky suite (#89379) 2021-01-26 16:30:52 -08:00
Tyler Smalley 0fe7b9e080 skip flaky suite (#89031) 2021-01-26 15:27:48 -08:00
Tyler Smalley 2a9a9305ee Fixes linting caused by skipping flaky suite
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-01-26 14:14:08 -08:00
Tyler Smalley 1e7b6f0ec2 skip flaky suite (#88826) 2021-01-26 13:42:27 -08:00
Daniil ad953ee04e
[Visualizations] Changes in custom visualizations support (#88317)
* 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>
2021-01-26 10:57:09 +03:00
Diana Derevyankina 191ad14ac2
Small multiples in vis_type_xy plugin (#86880)
* 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>
2021-01-25 15:47:03 +03:00
Diana Derevyankina 349fd5fcad
Advanced JSON input functional test (#88609)
* Advanced JSON input functional test

* Replace string check with object property check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 15:26:53 +03:00
Peter Pisljar d81ab83c16
[examples] expressions explorer (#88344) 2021-01-22 19:52:47 +01:00
Alejandro Fernández Haro 07002d691b
[Functional tests] Drop legacyEs usage (#88939)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 14:49:18 +00:00
Pierre Gayvallet 477d0bbe21
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
2021-01-21 15:27:28 +01:00
Mikhail Shustov b3a9754394
[Core] Explicit typings for request handler context (#88718)
* 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
2021-01-21 15:20:22 +01:00
Joe Reuter 0b798f7d10
make drag drop test more stable (#88614) 2021-01-21 14:29:23 +01:00
Rudolf Meijering bfcd990dee
Handle another node already having deleted the temporary index (#88332)
* 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>
2021-01-21 12:10:10 +01:00
Joe Portner 25f16db4d9
Sharing saved objects, phase 2 (#80945) 2021-01-20 17:39:21 -05:00
Pierre Gayvallet edb338a8ad
Add SO import hook / warnings API (#87996)
* 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 19:25:32 +01:00
Alejandro Fernández Haro ee5f560dd7
[FTR] Use new ES client instead of legacyEs service (#88720) 2021-01-20 15:30:35 +00:00
Tiago Costa 69182a8628
chore(NA): create new x-pack cigroups and rebalancing them all (#88366)
* 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>
2021-01-20 13:47:08 +00:00
Dmitry 841655c1f7
[FTR] add custom runner and config to run load tests (#88409)
* 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>
2021-01-20 13:23:10 +01:00
Brandon Kobel 170a2956c8
Updating the License (#88343)
* Updating the Licenses, except for applying eslint, building

* Applying ESLint rules,building @kbn/pm, regenerating api docs
2021-01-19 17:52:56 -08:00
Ahmad Bamieh f5c73a9ac7
[SavedObjects] Allow migrations to be a function (#88594)
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
2021-01-19 18:37:48 +02:00
Alejandro Fernández Haro 7c9b11476d
[Application Usage] Functional test to validate the full list of appIds in the schema (#88080)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-19 14:44:08 +00:00
Mikhail Shustov 6e4c70848d
[Core] Remove public context (#88448)
* remove client side context

* update docs

* fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-18 21:47:53 +01:00
Devon Thomson af7a577b09
[Time to Visualize] Enable by Default (#88390)
* Enable Time to Visualize by Default
2021-01-18 13:51:32 -05:00
Tiago Costa 9139ab15fd
chore(NA): remove mocha junit ci integrations (#88129)
* 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
2021-01-15 21:17:25 +00:00
Jonathan Budzenski 51ba94d3e5
[dev] Replace sass-lint with stylelint (#86177)
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 11:52:29 -06:00
Maja Grubic 9b22789c3c
[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>
2021-01-15 14:47:35 +00:00
Daniil fbfc50920b
[TileMap][RegionMap] Implement custom renderers and expression builders (#84775)
* 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>
2021-01-14 10:45:02 +03:00
Diana Derevyankina 1c38f908cd
[TSVB] Validation telemetry removal (#87848)
* [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 10:16:00 +03:00
Mikhail Shustov bc06280451
[DX] SavedObjectsManagement to TS project (#88240)
* som to ts project

* global_search_providers to ts projecvt
2021-01-13 22:23:06 +01:00
Mikhail Shustov 5814ca6e05
[DX] move some ES UI plugins to TS project (#88050)
* es_ui_shared to ts project

* console to ts project

* console_extensions to ts project

* searchprofiler to ts project

* update includes
2021-01-13 21:58:34 +01:00
Christiane (Tina) Heiligers 2eca6aa11e
Converts Telemetry Management Section to TS project refs (#88073) 2021-01-13 07:09:32 -07:00
Jean-Louis Leysens c0ab320085
[Console] Add functional test to check for basic autocomplete functionality (#87331)
* 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>
2021-01-13 13:57:49 +01:00
Joe Reuter 807e8bdeb2
Kibana app and presentation ts projects (#87639) 2021-01-12 17:33:07 +01:00
Alexey Antonov 0b7e83f736
[TSVB] Allow custom label for fields via index pattern field management (#84612)
* [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>
2021-01-12 19:28:45 +03:00
Anton Dosov d3303f28bb
[Search] Search Sessions with relative time range (#84405) 2021-01-12 14:51:04 +01:00
Aleh Zasypkin 31e66979b9
Do not embedd credentials into ES URL and enable anonymous tests. (#87987) 2021-01-12 13:51:54 +01:00
Dmitry b10be9ec6f
[coverage] do not collect stats for mocha (#87859) 2021-01-11 21:00:00 +01:00
Christiane (Tina) Heiligers 0549f94332
[DX] Management to TS projects (#87660)
* Adds management to tsconfig refs

* removes preemptive script fix
2021-01-11 07:14:22 -07:00
Stratoula Kalafateli bfac16e449
[Timelion] Fix tests flakiness on suggestion click (#87273)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 11:03:44 +02:00
Angela Chuang 4986bea8b6
[Security Solution] Unskip cypress tests (#86653)
* 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>
2021-01-08 06:59:05 +00:00
Tiago Costa b8d21b1c77
chore(NA): move kbn-es-archiver from mocha into jest (#87699)
* chore(NA): move kbn-es-archiver from mocha into jest

* chore(NA): remove mocha temporarily from CI
2021-01-07 21:45:51 +00:00
Devon Thomson cdee8599d1
[Time to Visualize] Align Lens & Visualize Top nav Buttons & Behaviour (#86922)
* Aligned Lens & Visualize Top nav behaviour and look
2021-01-07 12:02:11 -05:00
Joe Reuter 3c7bd2fdd0
[Lens]Test color syncing (#86906) 2021-01-07 14:28:58 +01:00
Mikhail Shustov b75cd4bb29
[DX] Home & SO tagging OSS to TS projects (#87610)
* so tagging oss to ts project

* home to ts project
2021-01-07 13:58:09 +01:00
Pierre Gayvallet f59711945d
Expose SO import/export APIs from the service's contract instead of exporting static functions (#86264)
* 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 11:23:28 +01:00
Mikhail Shustov 69e2c38bd3
Migrate App services plugins to TS projects (#87294)
* 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>
2021-01-07 09:30:30 +01:00
Devon Thomson 392db8d81c
[Dashboard] Fix Missing Legacy Redirect (#87246)
* Added dashboard no match to run legacy redirect. Added functional test coverage
2021-01-06 10:47:43 -05:00
Devon Thomson 38a7e2b00a
[Time to Visualize] Align Lens & Visualize Breadcrumbs (#86941)
* Aligned Lens & Visualize Breadcrumbs
2021-01-05 17:01:04 -05:00
Alexey Antonov 7ed089c50b
[Data plugin] Wrong caching for Index pattern fields (#87116)
* [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>
2021-01-05 21:52:40 +03:00
Josh Dover 0af81310b6
Remove dynamic mapped types from UiActions (#87075)
* 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>
2021-01-05 10:11:05 +01:00
Matthias Wilhelm a417690ced
[Discover] Integration of EuiDataGrid (#67259)
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 09:05:29 +01:00
Nick Partridge 3aeb344b7c
Enable new chart library setting (#86538) 2020-12-22 10:06:37 -06:00
Jonathan Budzenski 9a2858105e
[build] Migrate grunt ensureAllTestsInCIGroup to script (#85873)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-22 09:44:47 -06:00
Tyler Smalley a76c666a61
[CI] Removes script previously used for Karma (#86412)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 15:06:31 -08:00
Jonathan Budzenski 26b784b2a4
[build] Remove grunt docker:docs task (#85848)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 15:18:56 -06:00
Jonathan Budzenski 256c8cdffb skip histogram brushing, #86602 2020-12-21 11:26:35 -06:00
Nick Partridge 7e9177d3a9
Rename chartLibrary setting to legacyChartsLibrary (#86529)
* rename chartLibrary setting to legacyChartsLibrary

* fix spelling

* fix plugin setting check boolean
2020-12-18 19:07:00 -06:00
Matthias Wilhelm 4bf2de7b0d
[Discover] Change default sort handling (#85561) 2020-12-18 22:59:59 +01:00
Devon Thomson 8ce9b474d6
[Time to Visualize] Fix Dashboard OnAppLeave (#86193)
Added isTransferInProgress to embeddable_state_transfer for apps to determine whether or not to show onAppLeave confirm
2020-12-18 15:07:36 -05:00
Dmitry 899f4dd2f8
[coverage] Improve stability and report stats (#86449)
* improve reporting

* ignore failing tests
2020-12-18 16:46:34 +01:00
Nick Partridge ddea10e718
Create vis_type_xy plugin to replace histogram, area and line charts (#78154) 2020-12-18 08:38:07 -06:00
Liza Katz 3eaf86b944
[Search] Session server side functional tests (#86152)
* 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>
2020-12-17 22:04:53 +02:00
Jonathan Budzenski d18fca3b82 skip 'dashboard title is case insensitive' #86226 2020-12-17 09:33:21 -06:00
Peter Pisljar b93034b72c
inspector table adapter cleanup (#84232) 2020-12-17 12:14:07 +01:00
Tyler Smalley c5e9543fc9 Revert "chore(NA): rebalance x-pack cigroups (#85797)"
This reverts commit 1e3a483b06.
2020-12-16 15:28:53 -08:00
Dmitry 2fcce0bcbc
[coverage] re-enable jest (#85946)
* [coverage] re-enable jest

* fix coverage script for x-pack

* use presets in entry configs

* set max workers

* run tests from x-pack folde

* remove duplicate 'reporters' prop

* remove reporters for x-pack config

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 20:20:55 +01:00
Tiago Costa 1e3a483b06
chore(NA): rebalance x-pack cigroups (#85797) 2020-12-16 09:58:46 -08:00
Ahmad Bamieh 28c8cfbff4
[Telemetry] Application Usage track sub application views (#85765)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 17:25:51 -07:00
Jonathan Budzenski 507ae79ffe skip "without kibana index" suite. #85911 2020-12-15 10:36:35 -06:00
Jonathan Budzenski e5c675cb61 skip find 'should return 200 with empty response. #85911' 2020-12-15 10:32:00 -06:00
Tiago Costa 81744dcf6b
skip flaky suite (#85911) 2020-12-15 15:05:39 +00:00
Daniil 845f716271
[Data table] Reactify & EUIficate the visualization (#70801)
* 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>
2020-12-15 14:44:20 +03:00
Stratoula Kalafateli 1cdaea78ac
[TSVB] Fix functional tests flakiness and unskip them (#85388)
* [TSVB] Fix functional tests flakiness and unskip them

* Fix functional test failure

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 11:12:31 +02:00
Diana Derevyankina ffe29f769a
Gauge visualization can no longer be clicked to filter on values since Kibana 7.10.0 (#84768)
* 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
2020-12-15 11:04:01 +03:00
Joe Portner dd34712ce6
Update core usage stats collection (#85706) 2020-12-14 17:12:05 -05:00
Tyler Smalley 504c8739de
test:jest improvements to better support our monorepo (#84848)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-14 14:07:50 -08:00
Rudolf Meijering 8a34942f3f
Fix dead links to functional testing docs (#85097) 2020-12-14 17:00:53 +01:00
Pierre Gayvallet a4caffae2f
Improve and cleanup chrome helpMenu links (#82300)
* Improve and cleanup chrome helpMenu links

* update doc due to merge

* remove dev dependencies from test plugin

* update generated doc after merge

* update generated doc

* generated doc

* generated doc
2020-12-11 11:38:25 +01:00
Devon Thomson ac189b8c25
Deangularize Dashboard (#82909)
Deangularized dashboard application
2020-12-10 16:46:50 -05:00
Luke Elmers 3b5ed46c9d
[data.search] Clean up arguments to esaggs. (#84973) 2020-12-10 07:40:50 -07:00
Tyler Smalley 38ae314a18
[CI] Set correct script execute permissions (#85475)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-09 12:53:14 -08:00
Tre a4bdee898b
[QA][Stack Integration Tests] Fixup telemetry test (#85348)
Dont click on "Stack Monitoring" in this test, per Lee.
Nav to home page, so the test is not order dependendent.
Drop fn from the monitoring page, and
add it to the common page instead,
using a test subj selector over raw css.
2020-12-09 10:16:10 -07:00
Tyler Smalley 9b62100428
Removes Grunt abstraction from CI tasks (#85210)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-09 08:51:32 -08:00
Dmitry ec1666be5a
Skip jest coverage on CI (#85375)
* [coverage] skip running jest tests

* run mocha only

* skip uploading jest artifacts
2020-12-09 16:31:00 +01:00
Stratoula Kalafateli f2d961df6a
[Functional][TSVB] Wait for markdown textarea to be cleaned (#85128)
* [TSVB] Wait for markdown textarea to be cleaned

* No need for retry
2020-12-09 08:42:35 +02:00
Vadim Dalecky 9bef95a6fb
HTTP CRUD+ API for Index Patterns (#83576)
* refactor: 💡 extract out createIndexPatternsService() method

* feat: 🎸 add create index pattern route

* feat: 🎸 add index patterns http context

* feat: 🎸 add schema for index pattern create method

* refactor: 💡 compose schema out of variables

* feat: 🎸 allow to not make the new index pattern a default one

* feat: 🎸 implement index pattern create endpoint

* docs: ✏️ add index pattern create endpoint docs

* fix: 🐛 add error handling wrapper

* feat: 🎸 add index pattern GET route

* docs: ✏️ add index pattern GET mention to docs

* feat: 🎸 add higher order route handler to check for context

* feat: 🎸 add index pattern deletion endpoint

* docs: ✏️ add delete endpoint docs entry

* feat: 🎸 add index pattern update route

* feat: 🎸 add ability to update timeFieldName

* feat: 🎸 add ability to edit intervalName, sourceFilters, fields

* feat: 🎸 allow updating index pattern type and typeMeta

* feat: 🎸 add ability to update index_pattern fields

* docs: ✏️ add index pattern update endpoint docs

* docs: ✏️ fix typo

* feat: 🎸 disable XSRF and add Content-Type

* fix: 🐛 enable xsrf

* feat: 🎸 send 404 status code when index pattern is not found

* fix: 🐛 correctly report empty change set error

* feat: 🎸 fields API add route for adding field to IP

* docs: ✏️ add index pattern field create route

* fix: 🐛 throw on creating an existing index pattern field

* feat: 🎸 add field upsert route

* feat: 🎸 add field get api endpoint

* feat: 🎸 add field delete endpoint

* refactor: 💡 improve 404 error handling

* refactor: 💡 improve index pattern 404 error class

* feat: 🎸 add field update api endpoint

* docs: ✏️ typo

* refactor: 💡 rename ski_field_refresh to refresh_fields in creat

* refactor: 💡 rename to refresh_fields param in update call

* refactor: 💡 rename parameter to refresh_fields in fields api

* feat: 🎸 allow creating and deleting only scripted fields

* style: 💄 fix TypeScript/Prettier error

* test: 💍 add index pattern creation negative tests

* test: 💍 add index pattern create method tests

* feat: 🎸 remove make_default flag

* docs: ✏️ update docs

* test: 💍 add index patter api get tests

* test: 💍 add delete index pattern tests

* fix: 🐛 fix TypeScript error after refactor

* docs: ✏️ update autogenerated docs

* docs: ✏️ update autogenerated docs

* refactor: 💡 change Fields API to Scripted Fields API

* feat: 🎸 allow only scripted fields in Scripted Fields API

* test: 💍 add index patter api update tests

* test: 💍 add scripted field create api tests

* test: 💍 add scripted field delete api tests

* test: 💍 add scripted fields fetch api tests

* test: 💍 add scripted field field put api tests

* test: 💍 add scripted field update api test

* feat: 🎸 add index pattern field update endpoint

* feat: 🎸 improve index patterns fields api

* test: 💍 fix test

* docs: ✏️ update docs README

* test: 💍 add field metadata deletion teests

* docs: ✏️ improve index pattern api readme

* fix: 🐛 fix TypeScript errors

* test: 💍 update jest tests

* docs: ✏️ update auto-generated docs

* feat: 🎸 remove intervalName from index pattern create API

* test: 💍 fix integration tests

* fix: 🐛 make refresh_fields default to false

* chore: 🤖 remove searchable and aggregatable from public API

* chore: 🤖 remove various field properties

* chore: 🤖 remove "index" attribute from public field schema

* docs: ✏️ update docs to match API

* chore: 🤖 fix TypeScript errors

* test: 💍 try fixing functional tests

* docs: ✏️ update auto-generated docs

* chore: 🤖 check if this fixes security tests

* fix: 🐛 create index patterns context only if user is authc

* fix: 🐛 assert on index patterns service

* test: 💍 try fixing integration tests

* fix: 🐛 try fixing integration tests

* chore: 🤖 update auto-generated docs

* refactor: 💡 directly inject index pattern provider into create

* refactor: 💡 create index pattern service directly in each route

* refactor: 💡 remove index pattern route context provider

* chore: 🤖 remove unused code

* chore: 🤖 remove refresh_fields from scripted fields

* style: 💄 change template param names

* refactor: 💡 make field.count always be an integer

* docs: ✏️ update auto-generated docs

* refactor: 💡 inject index patterns using getStartServices

* docs: ✏️ update autogenerated docs

* docs: ✏️ update docs
2020-12-08 10:33:18 +01:00
Spencer a7c5b49343
[esArchiver] support kibana and es ssl from cli (#85073)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-07 13:20:15 -07:00
Tiago Costa f961e90ea7
chore(NA): remove scripts on plugins to find circular deps (#84852)
* chore(NA): remove extra scripts on plugins to find circular deps

* chore(NA): remove madge as dependency

* Move cyclic dep jobs

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

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-07 19:41:38 +00:00
Ahmad Bamieh aa9a353205
[Telemetry] Introduce UI Counters (#84224)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-04 17:47:04 +02:00
Tiago Costa 9c3ca2023e
chore(NA): removes auto install of pre-commit hook (#83566)
* chore(NA): remove kibana pre-commit hook installation from bootstrap

* chore(NA): add support for git ref flag on run precommit hook script

* chore(NA): integrate quick commit checks within the CI

* chore(NA): introduce logging trap to warn about quick commit checks failure and how to reproduce it

* chore(NA): update quick commit checks message

* fix(NA): quick commit checks function def

* chore(NA): fix quick commit checks message quotes

* chore(NA): fix functional call

* chore(NA): fix script to run

* chore(NA): add unexpected debugger statement to test quick commit checks

* chore(NA): update message to log before quick commit checks

* chore(NA): remove extra debugger statement

* chore(NA): add echo message inline with script execution

* chore(NA): add unexpected debugger statement to test quick commit checks

* chore(NA): remove extra usage of debug statement

* chore(NA): wrapping quick commit checks in a func

* chore(NA): export function to use later

* chore(NA): export function to use later

* chore(NA): use child bash script on github checks reporter

* chore(NA): define dir context for commit_check_runner.sh

* fix(NA): permissions for commit_check_runner.sh

* fix(NA): permissions for commit.sh

* chore(NA): format message to log

* chore(NA): add unexpected debugger statement to test quick commit checks

* chore(NA): remove extra usage of debug statement

* chore(NA): format runner message

* chore(NA): replace log.info by log.warning

* docs(NA): include docs for removing the pre-commit hook auto installation

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-04 14:43:33 +00:00
Matthias Wilhelm 95f8d9d1dd
[Discover] New responsive layout using EUI components (#83633)
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
2020-12-03 15:42:45 +01:00
Matthias Wilhelm 155d150a08
[Discover] Unskip date histogram test (#84727) 2020-12-03 09:23:14 +01:00
Tyler Smalley b593781009
Jest multi-project configuration (#77894)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-02 11:42:23 -08:00
Alejandro Fernández Haro 717a66fc6c
TelemetryCollectionManager: Use X-Pack strategy as an OSS overwrite (#84477) 2020-12-02 08:26:45 +00:00
Joe Portner a65c12ffa2
Fix flaky test suite (#84602) 2020-12-01 11:01:06 -05:00
Matthias Wilhelm 7a779007bf
[Discover] Unskip doc table tests (#84564) 2020-12-01 15:16:02 +01:00
Tiago Costa 6e8895403a
chore(NA): tool to find plugins circular dependencies between plugins (#82867)
* chore(NA): update gitignore to include first changes from moving into a single package.json

* chore(NA): update gitignore

* chore(NA): move all the dependencies into the single package.json and apply changes to bootstrap

* chore(NA): fix types problems after the single package json

* chore(NA): include code to find the dependencies used across the code

* chore(NA): introduce pure lockfile for install dependencies on build

* chore(NA): update clean task to not delete anything from xpack node_modules

* chore(NA): update gitignore to remove development temporary rules

* chore(NA): update notice file

* chore(NA): update jest snapshots

* chore(NA): fix whitelisted licenses to include a new specify form of an already included one

* chore(NA): remove check lockfile symlinks from child projects

* chore(NA): fix eslint and add missing declared deps on single pkg json

* chore(NA): correctly update notice

* chore(NA): fix failing jest test for storyshots.test.tsx

* chore(NA): fix cypress multi reporter path

* chore(NA): fix Project tests check

* chore(NA): fix problem with logic to detect used dependes on oss build

* chore(NA): include correct x-pack plugins dep discovery

* chore(NA): discover entries under dynamic requires on vis_type_timelion

* chore(NA): remove canvas

* chore(NA): add initial code to find circular deps

* chore(NA): ground work to integrate the circular deps scripts

* chore(NA): add correct filtering to find circular dependenices feature

* chore(NA): add ci mode flag into circular deps script

* chore(NA): feature complete circular dependencies detect script

* chore(NA): merge and solve conflicts with master

* chore(NA): remove unwanted changes

* chore(NA): remove unwanted changes on kbn storybook

* chore(NA): hook find circular deps tool into ci

* chore(NA): remove previous find plugin circular deps script

* chore(NA): add type for circular dep list

* chore(NA): add type for circular dep list for allowed list

* chore(NA): allow CI to fail check

* chore(NA): update deps allowed list

* chore(NA): run search circular deps script over examples too

* docs(NA): adds cli description

* chore(NA): use plugin search paths to build entries to find circular deps

* chore(NA): update allowed list

* chore(NA): snapshot update for kbn optimizer test

* chore(NA): update dpdm version

* chore(NA): remove thirdParty flag

* chore(NA): update docs to include info about the new tool

* docs(NA): update to link PR instead of the issue

* chore(NA): update debug logs to always output allowedList

* fix(NA): correctly list found differences number

* chore(NA): remove quiet flag

* fix(NA): correctly fail the CI if circular deps are found

* chore(NA): complete list of found circular deps

* chore(NA): used named capturing group into the regex

* docs(NA): update typescript best practices docs and styleguide

* chore(NA): introduce quick filter option flag

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 22:19:32 +00:00
Mikhail Shustov 1ec2f1d078
Cleanup tsconfig files (#84396)
* remove unused "paths" from tsconfig

* remove unused test utils, import get-url from kbn/test

* dont pollute globals with jest when importing getUrl

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 19:12:00 +01:00
Matthias Wilhelm 0017c2df1c
[Discover] Unskip date_nanos and shard links functional tests (#82878) 2020-11-30 16:56:50 +01:00
Matthias Wilhelm 923a525923
[Discover] Unskip main functional tests (#84300) 2020-11-30 14:13:53 +01:00
Tiago Costa 31c1ca0026
skip flaky suite (#84445) 2020-11-27 15:14:42 +00:00
Matthias Wilhelm f0192c1c03
[Discover] Fix navigating back when changing index pattern (#84061) 2020-11-26 15:45:21 +01:00
Tiago Costa 9ee1ec7f30
chore(NA): rebalance x-pack cigroups (#84099)
* chore(NA): rebalance cigroup1 into cigroup5

* chore(NA): get list api integration into cigropup1 again

* chore(NA): get apm integration basic into cigropup1 again

* chore(NA): move back apm_api_integration trial tests into ciGroup1

* chore(NA): move exception operators data types into ciGroup1 again

* chore(NA): move detection engine api security and spaces back into ciGroup1

* chore(NA): add a new xpack cigroup11

* chore(NA): correctly create 11 xpack ci groups

* chore(NA): try to balance ciGroup2 and 8

* chore(NA): reset number of xpack parallel worker builds to 10

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-24 21:33:47 +00:00
Dmitry 2634009a5b
[code coverage] collect for oss integration tests (#83907)
* [code coverage] collect for oss integration tests

* do not run snapshot test modified with coverage

* skip failures

* remove debug msg

* update file names

* Update packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts

Co-authored-by: Spencer <email@spalger.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Spencer <email@spalger.com>
2020-11-24 20:32:35 +01:00
Mikhail Shustov 5ec6fe315f
[DX] Bump TS version to v4.1 (#83397)
* bump version to 4.1.1-rc

* fix code to run kbn bootstrap

* fix errors

* DO NOT MERGE. mute errors and ping teams to fix them

* Address EuiSelectableProps configuration in discover sidebar

* use explicit type for EuiSelectable

* update to ts v4.1.2

* fix ts error in EuiSelectable

* update docs

* update prettier with ts version support

* Revert "update prettier with ts version support"

This reverts commit 3de48db3ec.

* address another new problem

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2020-11-24 16:04:33 +01:00
Robert Oskamp a31445f940
Fix advanced settings API integration tests on cloud (#84110)
This PR fixes the advanced settings feature controls API integration tests for cloud and moves some deployment helper methods to a separate service.
2020-11-24 13:46:51 +01:00
Joe Reuter 7d8ca10fbc
[Lens] Do not reset filter state on incoming app navigation (#83786) 2020-11-24 13:26:54 +01:00
Matthias Wilhelm 7156a575d4
[Discover] Unskip and improve functional doc_table tests (#82430) 2020-11-24 12:16:13 +01:00
Stratoula Kalafateli cac95a3bf6
[Visualizations] Update the texts on the wizard (#82926)
* [Visualizations] Update the texts on the wizard

* Fix functional test

* Final texts

* Fix heatmap description

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-24 08:54:40 +02:00
Daniil bb023c5c1c
[TSVB] Custom renderer (#83554)
* Implement custom renderer

* Remove legacy code

* Use custom expression

* Convert to typescript

* Remove savedObjectId extra param

* Other updates

* Fix types

* Cleanup

* Fix functional tests

* Bind uiSettings

* Update snapshot

* Update types

* Remove extra params

* Move common types

* Return back validation error message

* Use panel types enum

* Fix types

* Lazy load visualizations
2020-11-23 19:41:26 +03:00
Matthew Kime fd9f504e3b
[Index patterns] Remove field cache (#82223) 2020-11-23 09:52:25 -06:00
Alejandro Fernández Haro df4f4758fa
Remove the parameter timestamp in /api/telemetry/v2/clusters/_stats (#83791)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-23 12:09:16 +00:00
Aleh Zasypkin e3ca8a928d
Implement AnonymousAuthenticationProvider. (#79985) 2020-11-23 11:41:08 +01:00
Matthew Kime 48ac9f706e
[index patterns] Field custom name => custom label (#83717)
* custom name => custom label
2020-11-19 16:03:05 -06:00
Dario Gieselaar 3a8ea2993f
Make expectSnapshot available in all functional test runs (#82932)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-11-19 08:38:51 +01:00
Mikhail Shustov 938b7624f7
disable incremenetal build for legacy tsconfig.json (#82986) 2020-11-18 20:52:52 +01:00
Pierre Gayvallet b3eefb97da
SO Tagging: fix flaky test and re-enable it (#82930)
* fix flaky test and re-enable it

* wait for table to load before to perform operations

* move everything out of ciGroup2 for flaky test runner

* add debug block for flaky runner

* use correct vis name

* remove test sync

* Revert "move everything out of ciGroup2 for flaky test runner"

This reverts commit db86c3b5
2020-11-18 16:43:12 +01:00
Dmitry 27125bce30
[code coverage] adding plugin to flush coverage data (#83447)
* [test/common] adding code coverage plugin

* start plugin only when CODE_COVERAGE flag is set

* build coverage plugin

* replace casting with custom Window interface
2020-11-18 10:24:13 +01:00
Matthias Wilhelm 0a7f462939
[Discover] Allow custom name for fields via index pattern field management (#70039)
Co-authored-by: Matt Kime <matt@mattki.me>
2020-11-17 13:18:07 +01:00
Mikhail Shustov 48231c8400
remove headers timeout hack, rely on nodejs timeouts (#83419) 2020-11-17 12:28:41 +01:00
Nathan Reese a2c91f18c6
[Maps] saved object tagging (#83197)
* add tag selector to save modal

* save tag references onSave

* populate tags when unwrapping attributes

* tslint

* update listing page to show tags

* fix data-test-subj id in functional tests

* i18n cleanup

* tslint

* remove unused import

* use listingTable service for functional tests

* tslint and fix mvt grid layer functional test

* review feedback

* add tags to all privileges and add test user to find, delete, get, get_all, and update tests

* move functions to module scope

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-16 19:52:15 -07:00
Pierre Gayvallet d1abc866d4
Migrate /translations route to core (#83280)
* move i18n route to core

* add FTR test for endpoint
2020-11-16 12:15:35 +01:00
Thomas Watson 4c49d5d1be
Upgrade Node.js to version 12 (#61587) 2020-11-12 22:00:57 +01:00
Matthias Wilhelm b44a0e5b02
[Discover] Unskip flaky tests based on discover fixture index pattern (#82991) 2020-11-12 05:45:17 +01:00
Wylie Conlon ac150da49d
[Lens] Functional tests for drag and drop (#82796) 2020-11-11 12:36:04 +01:00
Lee Drengenberg 5dde31a7fe
Fix test/functional/apps/management/_index_patterns_empty.ts for Cloud & X-Pack (#82736)
Co-authored-by: Rashmi Kulkarni <rashmi.kulkarni@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-10 15:43:42 -06:00
Matthew Kime 7a67cffe37
Index patterns api - load field list on server (#82629)
The server side index patterns api can now load the field list. Previously it would error if a field list refresh was required.

The regular and rollup index pattern field list loading methods were merged. Rollup index patterns require additional functionality over regular index patterns when it comes to loading the field list, but this won't be necessary once rollups v2 is released.
2020-11-09 17:11:21 -06:00
Lee Drengenberg ae6f5afe8d
load empty_kibana in test to have clean starting point (#82772)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-09 15:58:16 -06:00
Lee Drengenberg 83e51f5688
add alternate path for x-pack/Cloud test for Lens (#82634)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-09 11:46:36 -06:00
Lee Drengenberg 1885dda6e6
Fix test import objects (#82767)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-09 11:01:33 -06:00
Larry Gregory bc9dd3ade0
Allow the repository to search across all namespaces (#82863) 2020-11-09 11:29:31 -05:00
Pierre Gayvallet fdc18392ad
SavedObjects search_dsl: add match_phrase_prefix clauses when using prefix search (#82693)
* add match_phrase_prefix clauses when using prefix search

* add FTR tests
2020-11-09 11:51:14 +01:00
Brian Seeders c77de1561b skip flaky suite (#82915) 2020-11-08 15:54:22 -05:00
Stratoula Kalafateli 5710f6763b
[Visualize] New visualization wizard (#79627)
* [Visualizations] New vis wizard

* Update functional tests

* Create oss plugins for maps and lens and unregister alias function

* Add new plugins to .i18nrc.json

* Add readme and codeowners to the new plugins

* update docs

* fix tests

* fix types

* fixes

* Update development docs

* fix oss functional tests

* Fix jest and x-pack functional tests

* Fix functional test

* changes on the layout

* Cleanup and responsiveness

* cleanup unecessary code

* add common folder to the new OSS plugins

* remove unecessary translations

* Update limits.yml file

* Fix basic label

* Add experimental badge on controls vis

* Nice improvements

* fixes

* Improving styles

* Making modal go full height on smaller screens

* Fixing sass lint warning

* fix lint error

* fix internationalization error

* PR fixes

* PR changes

* Use useCallback where possible

* Remove translations that need to be translated again

* Lazy Load wizard modal

* Remove legacyMapVisualizationWarning

* Import the OSS plugins constants from the plugins

* Export constant from lensOss

* Change the new oss plugins from OSS to Oss

* Add a new line to the kibana.json files of the new plugins

* New nit fix

* Fix spaces

* Change the texts for the first step of the modal

* Fix test

* Fixes some of the PR comments

* Add onClick funtionality to the entire aggregation based card

* Cards description changes, introduce a copyFromRoot method to solve the problem of when disabling the x-pack plugic, to also disable the oss

* Create new FTR for testing the functionality of the wizard when both maps and lens apps are disabled

* fix eslint error

* Change groupTitles and descriptions

* Change input vis description

* Remove the copyFromRoot from the signature of the ConfigDeprecationFactory and export it from the main entrypoint

* Make the disabled cards badge clickable

* Changes from code review

* Fix functional tests failures

* Rename groupTitle to titleInWizard to be more specific

* Change vega vis note

* minor design changes

* fix problem with plugins list docs

* Retrieve maps and lens landing page from docs service and add tracking url param

* Fix funtional test for the new dashboard flow

* Fix logic in alias registry for removing the discardOnRegister alias

* no need to remove the alias entry from the discardOnRegister array

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: miukimiu <elizabet.oliveira@elastic.co>
2020-11-06 18:03:44 +02:00
Alexey Antonov 0faf8c24ee
Use monacco editor in the inspector request panel (#82272)
* Use monacco editor in the inspector request panel

Closes: #81921

* insRequestCodeViewer -> insRequestCodeViewer

* remove uiSettings from props

* fix functional tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-06 11:34:57 +03:00
Lee Drengenberg 2cd846befa
Master backport #81233 (#82642)
* fixes https://github.com/elastic/kibana/issues/74449

* :wqfixes https://github.com/elastic/kibana/issues/74449

Co-authored-by: Rashmi Kulkarni <rashmi.kulkarni@elastic.co>
2020-11-04 12:31:50 -08:00
Dmitry b999989204
oss tests: replace grunt task with node script (#82371) 2020-11-04 17:57:32 +01:00
spalger af73961646 Revert "Index patterns api - load field list on server (#81218)"
This reverts commit e683ece777.
2020-11-04 09:52:15 -07:00
Matthew Kime e683ece777
Index patterns api - load field list on server (#81218)
Index patterns api - load field list on server
2020-11-04 09:18:56 -06:00
Pierre Gayvallet e2cbde3439
SavedObjects management: display explicit import error in case of failure and avoid invalid file to crash the server (#82406)
* display error cause in case of import failure

* avoid server crash when importing invalid file

* remove unused translations

* fix unit tests

* change savedObjects.maxImportPayloadBytes default to 25mb

* fix types and logic
2020-11-04 16:01:45 +01:00
Dmitry ae3f4f5142
[test/new_visualize_flow] fix config (#82441)
* [test/new_visualize_flow] fix config

* fix file extension
2020-11-04 13:05:00 +01:00
Anton Dosov 2c61de1483
[Search][Dashboard] Restore searchSessionId from URL (#81489) 2020-11-04 09:01:21 +01:00
Spencer 0fec6cbc00
[ci] run server integration tests (#81698)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-03 15:50:01 -07:00
Tyler Smalley 9f776a2342 skip flaky suite (#75127) 2020-11-03 13:52:30 -08:00
Robert Austin f2aad1201f
[Resolver] Screenshot the nodes of the test plugin. (#81405)
This PR adds screenshot comparison tests for the nodes in the graph on the test plugin.
Run the tests using this command:
`yarn test:ftr --config x-pack/test/plugin_functional/config.ts --grep Resolver`
2020-11-03 14:49:37 -05:00
Tyler Smalley ca53f774ba skip flaky suite (#82445) 2020-11-03 11:00:46 -08:00
Matthias Wilhelm 82ee8ae6c4
[Discover] Unskip functional sidebar test (#81188) 2020-11-03 17:24:55 +01:00
Tyler Smalley 19ab542c4f skip flaky suite (#82035) 2020-11-03 06:57:06 -08:00
Pierre Gayvallet d4b2a5145a
SavedObjects tagging MVP (#79096)
* create xpack plugin skeleton, start to implement management section

* add tag creation modal

* first implementation of the tags table

* use InMemoryTable

* add edit modal and delete action

* update plugin list

* add tag list, fix types

* add capabilities check on client-side

* add tag combo box component

* add missing i18n keys

* fix privilege FTR tests

* add base structure for FTR tests

* fix feature ftr test

* use string literals for i18n

* create savedObjectsTaggingOss plugin, move API types to oss plugin, start to wire to SO management page.

* update plugin list

* fix types

* allow to use `_find` with multiple references

* add FTR test for _find API on references fields

* add _find integration tests

* update generated doc

* start to implement tag filtering on SO management section

* update generated docs

* wire tagging API to dashboard listing page

* fix i18n namespace

* fix type & tests

* update dashboard listing snapshots

* adapt FTR listingTable service to search for parsable queries

* wite tagging API to visualize listing

* update tagging plugin limits

* add server-side and client-side validation for tag create/edit

* rename title field to name

* fix types

* fix types bis

* add removeReferencesTo API to SOR/SOC

* update generated doc

* add server-side unit test for `savedObjectsTagging` plugin

* move tagging API types to its own file

* add savedObjectsTaggingOss mock

* add tags_cache tests

* add tests for client-side tag client

* extract uiApi to distinct files

* various API improvements

* add more tests

* add link between tag and so management sections + add connection counts

* add base functional test suite for tagging

* add more FTR tests

* improve feature control func test

* update codeowners

* update generated doc

* fix access to proxy modal

* adapt SO save modal to allow to add tag field

* add SO decorator registry and tag implementation

* add unit tests for SO tag decorator

* add functional tests for visualize integration

* add tag SO read permission for vis/dash feature

* add RBAC api integ tests

* add API integration tests

* add test for getTagConnectionsUrl

* add SOM test suite

* add dashboard integration suite

* remove test line

* add missing unit tests

* improve API types doc

* fix create modal save button label

* remove console.log

* improve doc

* self review

* add refresh interval for tag cache

* improve page object doc

* minor cleanup

* address review comments

* small layout fixes

* add initial focus

* use lazy accessor for tag request handler context

* adapt SOM export and export route to handle references

* remove icon from feature config due to master changes

* fix SO table tests

* update generated docs

* sort tags by name in filter dropdown and listing component

* wire SO tagging to dashboard save modal

* fix types

* - add 'create tag' action in tag selector
- add notifications on update/create/delete from management
- delete modal wording

* add description max length validation

* remove real-time validation

* fix i18n bundle id

* update expected size of savedObjectsTagging plugin

* use own useIfMounted

* update limit again, contract components cannot be lazy loaded atm.

* math is hard

* remove single usage of lodash for bundle size

* add async imports for create/edit modal

* add FTR test for 'create tag' action from tag selector

* allow 'create new' option to prepopulate name field

* extract savedObjectToTag

* add advancedSettings read user for security api_integ suite

* add audit login for security client wrapper

* use import type when possible

* wire SO tagging to lens visualization

* fix lens jest test

* Fix `create tag` option being selected when closing the selector dropdown

* add sorting to tag column from getTableColumnDef

* address some of restrry comments

* rename tag selector's setSelected option to onTagsSelected

* fix audit logging even type for saved_object_remove_references

* update plugin size limit to current size

* adapt maxlength validation wording

* remove selection column until we have batch action menu

* remove connections link when user lack read privilege to savedObjectManagement

* forbid registering multiple SO decorators with the same priority

* add so decorator test

* extract getTagFindReferences and create API mock

* update audit-logging ascidoc

* doc nit

* throw conflict error if update returns any failure

* use refresh=true as default

* wording nits

* export: rename `references` to `hasReference`

* update generated doc

* set description max length to 100

* do not initialize tag cache on anonymous pages

* split fetchObjectsToExport into two distinct functions

* change tag client `delete` call order

* tsdoc nits

* more nits

* add README for oss plugin

* add oss plugin start tests

* SavedObject.find: rename `references` to `hasReference`

* change section description label

* remove url prefix constants

* last nits and comments

* update generated doc
2020-11-03 10:33:18 +01:00
Tiago Costa 0eeaafa722
chore(NA): move into single pkg json (#80015)
* chore(NA): update gitignore to include first changes from moving into a single package.json

* chore(NA): update gitignore

* chore(NA): move all the dependencies into the single package.json and apply changes to bootstrap

* chore(NA): fix types problems after the single package json

* chore(NA): include code to find the dependencies used across the code

* chore(NA): introduce pure lockfile for install dependencies on build

* chore(NA): update clean task to not delete anything from xpack node_modules

* chore(NA): update gitignore to remove development temporary rules

* chore(NA): update notice file

* chore(NA): update jest snapshots

* chore(NA): fix whitelisted licenses to include a new specify form of an already included one

* chore(NA): remove check lockfile symlinks from child projects

* chore(NA): fix eslint and add missing declared deps on single pkg json

* chore(NA): correctly update notice

* chore(NA): fix failing jest test for storyshots.test.tsx

* chore(NA): fix cypress multi reporter path

* chore(NA): fix Project tests check

* chore(NA): fix problem with logic to detect used dependes on oss build

* chore(NA): include correct x-pack plugins dep discovery

* chore(NA): discover entries under dynamic requires on vis_type_timelion

* chore(NA): remove canvas

* test(NA): fix jest unit tests

* chore(NA): remove double react declaration from storyshot test file

* chore(NA): try removing isOSS check

* chore(NA): support for plugin development

* chore(NA): update logic to fix unit tests and typechecking

* chore(NA): support to run npm scripts in child kbn projects across all envs

* chore(NA): support github checks reporter on x-pack and remove cpy types as the package correctly provides them

* chore(NA): update cpy version

* chore(NA): include last kbn pm changes

* chore(NA): update style on build_production_projects.ts

* chore(NA): remove any cast fom telemetry opt in stats

* chore(NA): remove del and re-use rm -rf again

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-02 21:18:52 +00:00
Thomas Watson 700225061a
Upgrade to hapi version 18 (#80468) 2020-11-02 13:18:00 +01:00
Ahmad Bamieh 1af551bae1
[Telemetry] Remove from and to timestamps from usage stats APIs (#81579)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-02 13:51:18 +02:00
Greg Thompson 6fdc7eb1fa
Upgrade EUI to v30.1.1 (#81499)
* eui to v30.0.0

* removed unused RecentLinks component

* update compressed -> display prop

* euiformrow compressed -> display

* euipopover remove withtitle

* euibuttongroup prop updates

* remove euibuttontoggle

* src snapshot updates

* tutorial euibuttongroup update

* x-pack snapshot updates

* euibuttongroup test updates

* TODO

* misc. js file updates

* remove euinavdrawer scss references

* translation removals

* more x-pack snapshot updates

* update data-test-subj lookup

* icons logoAMP -> logoObservability

* cypress selector updates

* update euibuttontoggle onchange, test interaction

* Fix auto-update toggle in Visualize

* some more change -> click test updates

* idtoselectedmap change

* Fix feature table button group

* Remove empty SASS file

* Fix feature table button group II

* Using `compressed` to also dictate dual range row

* Fix a few security labels

* An ML fix

* Apply suggestions from code review

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

* remove unused translation

* update view_type_toggle snapshot

* more snapshot updates

* eui to 30.1.0

* undo temp ts-ignore

* more x-pack snapshot updates

* eui to 30.1.1

* update feature privilege text

* Update x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/feature_table/sub_feature_form.tsx

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* reuse i18n token

* Adapt log entry action button to new `minWidth` prop

* clean up label

* Combine auto apply strings into one

* ternary fix

* cases status useCallback

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
2020-10-30 16:18:27 -06:00
Brian Seeders bb2e4c6ab5 Skip ES snapshot failing suite (#82206) 2020-10-30 17:49:58 -04:00
Pierre Gayvallet 21615c16ef
SO management: fix legacy import index pattern selection being reset when switching page (#81621)
* fix legacy import index pattern selection being reset when switching pages

* update snapshots
2020-10-30 12:59:28 +01:00
Michael Marcialis 2a38461817
[Lens] Adjust Lens Visualization Padding in Dashboards (#81911)
* reduce padding on lens visualizations in dashboard

* tweak padding and axes title colors to match lens

* remove faux padding (border) to match lens padding

* update snapshots

* Revert "update snapshots"

This reverts commit c63cf2bf1c.

* update functional test baseline screenshot
2020-10-29 16:52:02 -04:00
Nick Partridge e0b6b0ba5c
Vislib visualization renderer (#80744) 2020-10-29 13:34:41 -05:00
Joe Reuter afd5fe3b8a
Date column utilities (#81007) 2020-10-29 16:47:34 +01:00
Tiago Costa 275c30a926
skip flaky suite (#81632) 2020-10-29 12:44:51 +00:00
Nathan L Smith 2c1bc50ec0
Add TS project references for inspector (#81792) 2020-10-28 09:01:40 -05:00
Mikhail Shustov 82cf8fd1b3
Support export for SO with circular refs (#81582)
* support export for SO with circular refs

* add a test for export to space

* update test case names

* add test with complex deps tree
2020-10-28 11:43:07 +01:00
Spencer 441890ccb3
[ftr/menuToggle] provide helper for enhanced menu toggle handling (#81709)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-27 09:09:41 -07:00
Tiago Costa 378a4cbab2
skip flaky suite (#81576) 2020-10-26 13:18:00 +00:00
Tiago Costa 54e3893d57
skip flaky suite (#78373) 2020-10-26 13:15:08 +00:00
Peter Pisljar 48adb07411
cleaning up expression service types (#80643) 2020-10-26 12:28:19 +01:00
Nathan Reese 95516432ec
[Maps] fix refreshing the page causes loss of unsaved change (#81226)
* [Maps] fix refreshing the page causes loss of unsaved change

* fix functional tests

* remove unneeded check for app leave modal

* check for appLeaveConfirmModal for clicking confirmModalConfirmButton

* see failures without closing appLeaveModal

* start clearing unsaved changes warning in maps

* clean up more unsaved state in functional tests

* more cleaning up of unsaved state in functional tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-22 15:00:55 -06:00
Mikhail Shustov 38a8063901
[KP] Fix Headers timeout issue (#81140)
* temp fix request headers bug. issue 73849

* add a focused test

* move test to FTR

* adjust types

* some minors

* small adjustments
2020-10-22 11:09:58 +02:00
spalger f4eb447db4 skip flaky suite (#78689) 2020-10-21 16:40:34 -07:00
Christiane (Tina) Heiligers f42f767bf0
Kibana usage collection to ts project refs (#81265) 2020-10-21 10:33:51 -07:00
Christiane (Tina) Heiligers 0395d686bf
Extracts newsfeed plugin to ts project refs (#81254) 2020-10-21 08:22:25 -07:00
Christiane (Tina) Heiligers e7f3044b31
Usage collection plugins to ts project refs (#81090) 2020-10-20 09:32:40 -07:00
Chandler Prall 42a1744af6
Upgrade EUI to v29.5.0 (#80753)
* Upgraded eui to v29.5.0; snapshot updates

* Cleaned up some types

* addresses feedback on types change

* Update EuiIcon snapshots in jest integration tests

* Updated snapshot from rebasing on master
2020-10-19 14:48:33 -06:00
Pierre Gayvallet 668a4d4366
SOM: fix inspect action when having a basePath (#80950)
* SOM: fix inspect action when having a basePath

* remove explicit login

* remvoe useless object from dump

* review comments
2020-10-19 17:34:10 +02:00
spalger 7e47e3935e skip flaky suite (#80914) 2020-10-16 13:53:58 -07:00
Peter Pisljar c90dabaeba
removing kibana_datatable in favor of datatable (#80548) 2020-10-16 18:46:51 +02:00
Anton Dosov a23b42301b
[Discover] fix auto-refresh (#80635)
* fix refresh interval in discover
* Also implicitly fixes a subtle bug with excessive re-fetch after deleting already disabled filter

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-16 18:06:50 +02:00
Matthias Wilhelm 898e21f347
[Discover] Unskip flaky test (#80670) 2020-10-16 17:43:49 +02:00
Tiago Costa 177f434563
skip flaky suite (#79463) 2020-10-16 14:00:19 +01:00
Liza Katz a1831a6d9d
[Search] Client side session service (#76889)
* Add a session service and use it in discover and dashboard

* check unefined

* Start session in visualize

* Fix tests

* docs

* OSS error alignemnt

* Adjust error messages in xpack

* Add getErrorMessage

* Use showError in vizualize
Add original error to expression exception

* Cleanup

* ts, doc and i18n fixes

* Fix jest tests

* Fix functional test

* functional test

* ts

* Update functional tests

* Add unit tests to interceptor and timeout error

* expose toasts test function

* doc

* typos

* lint

* Cleanup

* review 1

* Code review

* doc

* doc fix

* visualization type fix

* fix jest

* Fix xpack functional test

* fix xpack test

* code review

* Add tracking methods to session service

* remove chromium

* Fix ts and jest tests

* jest + docs

* ts fix

* siem test

* Use session service to show a timeout notification per session + more unit tests

* ts and docs

* Remove session service from search source (not needed)

* Code review

* ts

* Single active session in FE session service

* Cleanup

* Don't integrate with dashboard \ visualize
Add functional tests for session toast plugin

* Typescript

* ts

* Improve functional tests

* es

* simplify filter test

* wait until loadedw

* filter test

* delete crypto for now

* Select the correct index 🤦

* timerange

* Adjust functional test logic

* improved test format @dosant

* Handle exceptions

* Don't close sessions automatically, warn instead

* jest

* Adjust functional test

* Remove unused code

* delete export

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-16 12:30:46 +03:00
Larry Gregory 5dc91229f2
Fix role mappings test for ESS (#80604)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2020-10-15 14:20:54 -04:00
spalger 233ee1c28d skip flaky suite (#80104) 2020-10-14 08:00:02 -07:00
Liza Katz c547d62830
Speed up filter creation in functional tests (#80037)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-14 16:08:35 +03:00
Stratoula Kalafateli 5d8cf62f24
[Discover] Skip the Discover to Visualize functional tests for cloud (#80469) 2020-10-14 14:49:37 +03:00
Catherine Liu 240fddc4ff
[Core UI] A11y tests for Kibana overview page (#80285)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-13 13:07:46 -07:00
spalger 6eeab00944 Revert "removing kibana_datatable in favor of datatable` (#75184)"
This reverts commit 255b865be8.
2020-10-13 08:53:14 -07:00
Peter Pisljar 255b865be8
removing kibana_datatable in favor of datatable` (#75184) 2020-10-13 17:00:38 +02:00
Matthias Wilhelm 3f3589d74b
[Discover] Loading spinner cleanup (#79819) 2020-10-12 20:11:20 +02:00
Matthew Kime f532e9dca6
index pattern server api simpler dependency (#80114)
* index pattern server api simpler dependency
2020-10-12 09:49:21 -05:00
Brian Seeders 4602d65bb5
[CI] Move kibana build dir outside of repo for functional tests (#80018) 2020-10-08 14:47:39 -04:00
Bhavya RM ab375e4bb2
A11y tests for roles page (#79900) 2020-10-08 12:28:43 -04:00
Anton Dosov fff3060ad7
Fix dashboard "snapshot share" is not sharing panel state in view mode (#79837) 2020-10-08 10:52:34 +02:00
Spencer fd066f7b63
[kbn/optimizer] report limits with ci metrics (#78205)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-07 15:43:14 -07:00
spalger 1062957648 skip flaky suite (#78689) 2020-10-07 14:11:55 -07:00
Lukas Olson 25b1db12fd
[Search] Functional tests for async search (#78703)
* [Search] [WIP] Add shard delay aggregation

* Add expression functions

* Register function

* Fix test

* Add comment

* [Search] Add async search functional tests

* Add import

* Add additional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-07 10:07:12 -07:00
Josh Dover a8c080be28
Delay client-side feature usage registration until start (#79365)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-07 09:18:43 -06:00
IgorG 567100d3b8
Resolver Tree Events tests (#79344)
* commiting change for the dismiss Banner

* Change comments

* Change timeout and gziped data file

* Fixed banner list fail

* Moved dismiss Banner code to the common_page.ts

* Remove find from host_page

* Remove comments from host_page

* Added Expected data to the related Evens
Renamed tests from Child events to Related Events

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-07 07:56:09 -07:00
Tyler Smalley 019e2ad9a5 skips test failing promotion (#79813)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-06 23:12:01 -07:00
Thomas Watson e31ec7eb54
Give user the option to log out if they encounter a 403 (#75538) 2020-10-06 20:40:28 +02:00
Maja Grubic 0e89431825
[Visualize Editor] Add cancel button when navigating from Dashboard (#77608)
* Add cancel button in the visualize editor

* Fixing i18n namespace

* Always show cancel button

* Always show cancel button

* Adding a fucntional test

* Show confirm dialog only if there are unsaved changes

* Show confirm modal only if there are changes

* Add onAppLeave handler and ditch confirmModal

* Fix functional test

* Only use onAppLeave if coming from dashboard/canvas

* Add actions.default to onSave and onSaveAndReturn

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-06 19:20:53 +01:00
Andrew Kroh 1c729e896f
Add new "Add Data" tutorials (#77237)
This creates new Add Data tutorials for Filebeat modules.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 09:52:04 -04:00
Larry Gregory 49c669ca61
Warn users when security is not configured (#78545)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-05 19:47:17 -04:00
Chandler Prall 3bad1fc328
Upgraded EUI to v29.3.0 (#78870)
* Upgraded EUI to v29.2.0

* Remove hacks on top of EuiHeaderLink(s)

* Actual update to eui@29.2.0

* Resolve typescript issue when omitting a key over a union

* Resolve nav menu test's expectations

* Fix lint issue

* Update to 29.3.0

* Revert vega snapshot update

I don’t think this was intended to change when I ran the updater

* [ui-shared-deps] strip proptypes from ui-shared-deps production build

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-05 12:44:29 -06:00
Robert Oskamp 819ccf1247
Adjust extend_es_archiver to handle additional cases (#79308)
This PR enables the extend_es_archiver to recognize additional indices like .kibana_1 as well as a list of indices.
2020-10-02 20:14:42 +02:00
Stratoula Kalafateli 1b61cc6b5d
[Functional] Add retry on custom formatter test (#78729)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 09:03:08 +03:00
Tiago Costa e5d8d49164
chore(NA): assures a single version for the same dependency across the entire project (#78825)
* chore(NA): script to check for multiple version of same dependency

* chore(NA): remove multiple versions for the same dependency

* chore(NA): hook single_version_dependencies script into the CI

* chore(NA): remove grunt from the CI hook integration

* chore(NA): update kbn pm dist

* chore(NA): fix typechecking

* chore(NA): update code to run under last extract-zip version

* fix(NA): multiple versions of the same type dependency

* move validation to bootstrap (#13)

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

* chore(NA): todo to remove logic to validate single version deps once we move into a single package.json

* chore(NA): remove verify dependency versions jenkins task

* chore(NA): update kbn pm dist file

* chore(NA): remove last mention to verify_dependency_versions.sh fom tasks.groovy

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 00:46:00 +01:00
Lee Drengenberg 0a7462dc4a
move apps lower in tree, add metricbeat dashboard screenshot test (#79001) 2020-10-01 15:35:36 -05:00
Devon Thomson e08f6a38f6
Always Show Embeddable Panel Header in Edit Mode (#79152)
* Always show header in edit mode
2020-10-01 14:52:28 -04:00
Stratoula Kalafateli 36814aa1ef
Change implementation on TSVB functional when testing the indexPattern switch (#78754)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 13:30:10 +03:00
Matthias Wilhelm ec9d220b3c
[Discover] Unskip doc link functional test (#78600)
* Flaky test runner confirmed it's not flaky
2020-10-01 08:23:07 +02:00
Lukas Olson 28e1382813
Fix KQL autocomplete value suggestions (#78676) 2020-09-30 12:32:09 -07:00
Matthias Wilhelm 9c3d2646b2
[Discover] Fix functional time picker test permissions (#78564) 2020-09-30 19:50:45 +02:00
Bhavya RM 8e963fdf1a
A11y tests for filter panel (#78776)
a11y tests for filter panel and some test data un mounting
2020-09-30 09:34:24 -04:00
Mikhail Shustov ae8f8e1d10
Add TS projects for src/plugins & x-pack/plugins (#78440)
* bump query-string version to remove manual type definitions

* remove manual type declaration

* add kibana_utils tsconfig

* add refs to kibana_utils tsconfig

* add kibana_utils to the project list

* add kibana_react project

* add support for x-pack/tsconfig.refs.json

* add ts project for x-pack licensing plugins

* add glob for ts projects in src/plugins & x-pack/plugins

* add refs to projects in examples

* fix ref paths in x-pack/test

* address mistic comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-30 15:02:41 +02:00
Stratoula Kalafateli 108a2302cd
[Functional] Wait for the page to load and then click the new vis button (#78725) 2020-09-30 10:02:16 +03:00
Devon Thomson bf93974edc
[Time to Visualize] Panel Title Fixes (#78365)
* [Dashboard][Embeddable] Add placeholder title to embeddable panel, stored 'show panel title' prop in embeddable input.
Co-authored-by: Maja Grubic <maja.grubic@elastic.co>
2020-09-29 15:07:17 -04:00
Luke Elmers ccb789dbdf
[data.search] Expose SearchSource on the server. (#78383) 2020-09-29 12:38:05 -06:00
Devon Thomson 33f8ebd335
[Dashboard] Store Expanded Panel Id in URL (#78684)
* Added expandedPanelId to dashboard app state
2020-09-29 13:50:13 -04:00
Michail Yasonik 7b07fa53ef
Use more specific rule skipping for a11y tests (#77647) 2020-09-29 10:56:25 -05:00
Spencer f5ca7d82d5
[kbn/optimizer] only build xpack examples when building xpack plugins (#78656)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-28 13:25:15 -07:00
Bhavya RM 9c959947a8
Fixing a11y test failure on discover app (https://github.com/elastic/kibana/issues/59975) (#77614) 2020-09-28 14:21:54 -04:00
Liza Katz 689e1e32f1
[Search] Error notification alignment (#77788)
* OSS error alignemnt

* Adjust error messages in xpack

* Add getErrorMessage

* Use showError in vizualize
Add original error to expression exception

* Cleanup

* ts, doc and i18n fixes

* Fix jest tests

* Fix functional test

* functional test

* ts

* Update functional tests

* Add unit tests to interceptor and timeout error

* expose toasts test function

* doc

* typos

* review 1

* Code review

* doc

* doc fix

* visualization type fix

* fix jest

* Fix xpack functional test

* fix xpack test

* code review

* delete debubg flag

* Update texts by @gchaps

* docs and ts

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 18:33:48 +03:00
Daniil Suleiman 53d49381c8
Implement tagcloud renderer (#77910)
* Implement toExpressionAst for tagcloud

* Implement tagcloud vis renderer

* Use resize observer

* Use common no data message

* Update build_pipeline.test

* Update tag cloud tests

* Revert "Use common no data message"

This reverts commit fddf019575.

* Update interpreter functional tests

* Add tests for toExpressionAst fn

* Use throttled chart update

* Update renderer

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 16:14:30 +03:00
Patryk Kopyciński 012fa42ee1
[Security Solution] Fix app layout (#76668) 2020-09-25 14:15:41 +02:00