Commit graph

1829 commits

Author SHA1 Message Date
Kibana Machine 824fd4f8eb
[test] Migrates visualize esArchive to kbnArchiver (#102850) (#103195)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-23 23:16:53 -04:00
Kibana Machine 0d508191a0
Lens on Dashboard 7.12.1 Smoke Tests (#102667) (#103128)
* added smoke tests for lens by value panels on dashboard

Co-authored-by: Devon Thomson <devon.thomson@hotmail.com>
2021-06-23 18:38:23 +00:00
Kibana Machine eea0addbb7
[Discover] Unskip and improve empty results query functional test (#102995) (#103110)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-06-23 16:59:02 +00:00
Kibana Machine 9abcf6e1e8
[Discover] Improve flaky test - doc navigation (#102859) (#103108)
* [Discover] test flakiness

* [Discover] wait for doc loaded

* [Discover] update related test

* [Discover] clean statement

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
2021-06-23 12:47:31 -04:00
Kibana Machine c73473ed92
[Discover] Unskip Discover large field number test (#100692) (#103050)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-06-23 06:03:36 -04:00
Maja Grubic 0e28661990
[Discover] Add source to doc viewer (#101392) (#102962)
* [Discover] Add source to doc viewer

* Updating a unit test

* Fix typescript errors

* Add unit test

* Add a functional test

* Fixing a typo

* Remove unnecessary import

* Always request fields and source

* Remove unused import

* Move initialization of SourceViewer back to setup

* Trying to get rid of null value

* Readding null

* Try to get rid of null value

* Addressing PR comments

* Return early if jsonValue is not set

* Fix loading spinner style

* Add refresh on error

* Fix error message

* Add loading indicator on an empty string

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 14:44:35 -04:00
Kibana Machine c735215051
unksip functional test (#102633) (#102860)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-22 06:01:54 -04:00
Pierre Gayvallet 9cf01f1da5
[7.x] add isExportable SO export API (#101860) (#102698)
* add `isExportable` SO export API (#101860)

* add `isExportable` SO export API

* add warning when export contains excluded objects

* add FTR test

* fix API integration assertions

* lint

* fix assertions again

* doc

* update generated doc

* fix esarchiver paths

* use maps instead of objects

* SavedObjectsExportablePredicate is no longer async

* more docs

* generated doc

* use info instead of warning when export contains excluded objects

* try/catch on isExportable call and add exclusion reason

* add FTR test for errored objects

* log error if isExportable throws

* fix dataset for 7.x
2021-06-21 06:15:45 -04:00
Tyler Smalley 6977be0140
Revert "Revert: [7.x] [FTR][CI] Use default distribution for all tests (#102019) (#102580)
* Revert "Revert: [7.x] [FTR][CI] Use default distribution for all tests (#102019)"

This reverts commit c272bdbc25.

* [FTR] Stabilize SSLP functional tests (#102553)

* Removes spaces check, since spaces should always be available
* Disables Monitoring, SecuritySolutions, and Reporting in SSPL tests
until #102552 is completed

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 03:28:12 -04:00
Caroline Horn b3a59f504c
[7.x] [K8] Added Inter font files for new theme (#102359) (#102579)
* [K8] Added `Inter` font files for new theme (#102359)

Updated the `Fonts` file to accept a `themeVersion` and only use the old Beta files if `v7`.
# Conflicts:
#	test/functional/screenshots/baseline/tsvb_dashboard.png
#	test/interpreter_functional/screenshots/baseline/metric_multi_metric_data.png

* Update baseline snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-20 19:12:00 -04:00
Kibana Machine b85a234d54
[TSVB] Replaces EuiCodeEditor 👉 Monaco editor (#100684) (#102665)
* Сhanged EuiCodeEditor to CodeEditor (monaco) at markdown_editor.js

* Added css lang support for monaco-editor.

* Added .d.ts for css lang import directly from monaco.

* Moved handlebars_url language to the code_editor.

Moved handlebars_url language registration to the code_editor.
Changed the way of registration of languages.

* Added merge for markdown_handlebars lang.

* Changed to simple markdown syntax.

Handlebars syntax breaks highlighting of special chars in markdown syntax.

* Removed useless mergeConfig function.

* Removed legacy import.

* Refactor export from monaco-editor.

* Fixed 'Could not find a declaration file for module'

* Fixed tests.

* Fixed typings errors.

* Added comment to typings.

* Fixed clearMarkdown for Monaco editor.

* Made changes based on suggestions.

* Fixed types errors.

* Fixed function tests types errors.

* Fixes, based on nits.

* Fixes based on nits.

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

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2021-06-18 16:33:05 -04:00
Kibana Machine 4115b2d8f4
Display Kibana overall status in the logs and have FTR wait for green status before running tests (#102108) (#102511)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-06-17 12:28:01 -04:00
Steph Milovic 3bba37ff68
[7.x] [Observability] [Cases] Cases in the observability app (#101487) (#101971)
* [Observability] [Cases] Cases in the observability app (#101487)

* Fix archive

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

* fix data

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-15 17:33:45 -04:00
Kibana Machine 6114d5415e
[Fleet] Adjust add integration flow (#101714) (#102152)
* Initial commit, very WIP

- added link to the integrations UI instead of add integration
  in fleet
- added a new piece of route state that gets passed to integration
  from fleet when browsing integrations for a policy
- when the integration is being added the page will send the user
  back to the policy overview instead of back to integrations UI

* remove unnecessary agent policy clear function

* added # to path so that navigation is correctly handled

* added logic to read the forward agent policy id

* remove inline select integration package from fleet add integration

* updated toast notification

* using query parameter to pass policy id back to create policy package page

* removed policyId from route path

* fix type issue

* updated the select agent field layout per the designs

* simpified item rendering in combobox and fixed combobox z-index issue

* added comment

* fix types and i18n

* updated icon and removed unused i18n

* refactor to using styled components for cusomt z-index styling

* attempt to fix integration test

* added scroll functionality for dealing with fixed footers that might be obstructing content

* fix scroll direction!

* attempting another scroll algorithm

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

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-06-15 09:33:09 +00:00
Kibana Machine 04d7498792
[Discover] Improve functional test wording for responsive tests(#101744) (#102151)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-06-15 05:20:23 -04:00
Stratoula Kalafateli 815c3cee6d
[Tagcloud] Replaces current implementation with elastic-charts (#100017) (#102150)
* WIP - Replace tagcloud with es-charts wordcloud

* Cleanup and add unit tests

* Fix interpreter test

* Update all tagcloud snapshots

* Partial fix tagcloud test

* Fix some other functional tests, add migration script, update sample data

* Replace getColor with getCategorixalColor

* Fix functional test

* Apply clickhandler event for filtering by clicking the word

* Fix weight calculation

* Add a unit test and fix functional

* Change the cursor to pointer

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 04:36:41 -04:00
Kibana Machine a134c9e278
[Discover] Unskip runtime field editor test (#101059) (#102111)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-06-14 16:33:43 -04:00
Kibana Machine a1705f0bc4
Fix delayed status API updates in alerting and task_manager (#101778) (#102084)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-06-14 13:23:02 -04:00
Anton Dosov 99e7c9058e
[Index Patterns] Cover field editor with a11y tests (#101888) (#102074) 2021-06-14 12:44:36 -04:00
Tyler Smalley c272bdbc25
Revert: [7.x] [FTR][CI] Use default distribution for all tests (#102019)
* Revert "[FTR] Use importExport for saved_object/basic archive (#100244) (#102016)"

This reverts commit 9851b7bcfa.

* Revert "[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#101118)"

This reverts commit 73225daa87.
2021-06-13 23:29:03 -07:00
Tyler Smalley 73225daa87
[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#101118)
* [FTR][CI] Use default distribution for all tests (#94968)
* [FTR] Use importExport for saved_object/basic archive (#100244)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-12 09:53:10 -07:00
Tyler Smalley 32b7329c62 skip flaky suite (#101449) 2021-06-11 12:18:26 -07:00
Tyler Smalley 5c18bedd49
[esArchives] Persist migrated Kibana archives (#101951)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-10 20:47:22 -07:00
Spencer 34c5979eeb
[kbnArchiver] convert archive names to root-relative paths (#101839) (#101936)
* [kbnArchiver] convert archive names to root-relative paths

* ensure that newly multiline hooks are explicitly async

* missed a newly multiline hook

* fix exists check

* avoid extra lines by wrapping arrow body in {}

* one block more

* fix errant `name` variable

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	test/api_integration/apis/kql_telemetry/kql_telemetry.ts
#	test/api_integration/apis/saved_objects/bulk_create.ts
#	test/api_integration/apis/saved_objects/bulk_get.ts
#	test/api_integration/apis/saved_objects/bulk_update.ts
#	test/api_integration/apis/saved_objects/create.ts
#	test/api_integration/apis/saved_objects/delete.ts
#	test/api_integration/apis/saved_objects/export.ts
#	test/api_integration/apis/saved_objects/find.ts
#	test/api_integration/apis/saved_objects/get.ts
#	test/api_integration/apis/saved_objects/import.ts
#	test/api_integration/apis/saved_objects/resolve.ts
#	test/api_integration/apis/saved_objects/resolve_import_errors.ts
#	test/api_integration/apis/saved_objects/update.ts
#	test/api_integration/apis/saved_objects_management/find.ts
#	test/api_integration/apis/saved_objects_management/get.ts
#	test/api_integration/apis/saved_objects_management/relationships.ts
#	test/api_integration/apis/shorten/index.js
#	test/api_integration/apis/stats/stats.js
#	test/api_integration/apis/suggestions/suggestions.js
#	test/functional/apps/discover/_discover.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-10 16:54:10 -04:00
Jonathan Budzenski 0e25a90b62 skip flaky runtime fields test. #100966 2021-06-10 12:01:48 -05:00
Dzmitry Lemechko bc6bc5af2c
remove non-valid code (#100144) (#101885)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/functional/page_objects/common_page.ts
2021-06-10 10:31:10 -04:00
Spencer bcdeccb39b
[7.x] [esArchiver] drop support for --dir, use repo-relative paths instead (#101345) (#101676)
* [esArchiver] drop support for --dir, use repo-relative paths instead (#101345)

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	test/api_integration/apis/suggestions/suggestions.js
#	test/functional/apps/discover/_large_string.ts
#	test/functional/apps/visualize/index.ts
#	x-pack/test/functional/apps/infra/feature_controls/logs_security.ts
#	x-pack/test/functional/apps/saved_objects_management/import_saved_objects_between_versions_6.x_7.x.ts
#	x-pack/test/functional/apps/upgrade_assistant/upgrade_assistant.ts

* convert references to `saved_objects/basic` archive

* adapt other `saved_objects/*` archives

* update management/saved_obejcts/relationships archives

* replace old monitoring setup() usage

* remove reference to `empty_kibana` archive

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-08 22:45:04 -04:00
Kibana Machine 1591f39070
[es-archiver] Use alias for Kibana mappings (#101537) (#101626)
In 7.x, when saved objects point to an index and not an alias it will
assume it's pre-6.8 and perform a legacy migration. This causes issues
with the removal of oss builds. This update prevents that from happening
by using an alias.

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

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-08 12:21:54 -07:00
Kibana Machine 6727afe9d1
Upgrade cheerio from v0.22.0 to v1.0.0-rc.9 (#101394) (#101622)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-06-08 13:46:59 -04:00
Caroline Horn b118e40753
[Stack Management] Converted to use KibanaPageTemplate (sort of) (#101335) (#101617)
* Just replace the old wrapper and uses the `solutionNav` prop
* Examples of: Empty Page, Error state, Page Header, and Split Panel
2021-06-08 13:28:27 -04:00
Matthias Wilhelm 8064639fd9
[Discover] Deangularize discover controller (#96766) (#101566)
Co-authored-by: Tim Roes <mail@timroes.de>

Co-authored-by: Tim Roes <mail@timroes.de>
2021-06-08 07:29:14 -04:00
Stratoula Kalafateli 91b91356ba
[Visualize] Fixes functional tests to run for vislib and es-charts (#101461) (#101523)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 04:04:09 -04:00
Devon Thomson f6f02aec8d
[Dashboard] Rebuild State Management (#97941) (#101524)
* Rebuilt dashboard state management system with RTK.
2021-06-07 17:14:44 -04:00
Spencer 4f4cf054de
[7.x] [ts] migrate root test dir to project refs (#99148) (#101416)
* [ts] migrate root test dir to project refs (#99148)

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

* include schema files in telemetry ts project

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-04 16:22:00 -04:00
Pierre Gayvallet 6093707cbb
[7.x] Saved object export: apply export hooks to referenced / nested objects (#100769) (#101381)
* Saved object export: apply export hooks to referenced / nested objects (#100769)

* execute export transform for nested references

* fix sort

* fix duplicate references

* add FTR test

* fix test data for 7.x
2021-06-04 11:18:54 -04:00
Stratoula Kalafateli 10dd00f6a9
[7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292)
* [Pie] New implementation of the vislib pie chart with es-charts (#83929)

* es lint fix

* Add formatter on the buckets labels

* Config the new plugin, toggle tooltip

* Aff filtering on slice click

* minor fixes

* fix eslint error

* use legacy palette for now

* Add color picker to legend colors

* Fix ts error

* Add legend actions

* Fix bug on Color Picker and remove local state as it is unecessary

* Fix some bugs on colorPicker

* Add setting for the user to select between the legacy palette or the eui ones

* small enhancements, treat empty labels with (empty)

* Fix color picker bugs with multiple layers

* fixes on internationalization

* Create migration script for pie chart and legacy palette

* Add unit tests (wip) and a small refactoring

* Add unit tests and move some things to utils, useMemo and useCallback where it should

* Add jest config file

* Fix jest test

* fix api integration failure

* Fix to_ast_esaggs for new pie plugin

* Close legendColorPicker popover when user clicks outside

* Fix warning

* Remove getter/setters and refactor

* Remove kibanaUtils from pie plugin as it is not needed

* Add new values to the migration script

* Fix bug on not changing color for expty string

* remove from migration script as they don't need it

* Fix editor settings for old and new implementation

* fix uistate type

* Disable split chart for the new plugin for now

* Remove temp folder

* Move translations to the pie plugin

* Fix CI failures

* Add unit test for the editor config

* Types cleanup

* Fix types vol2

* Minor improvements

* Display data on the inspector

* Cleanup translations

* Add telemetry for new editor pie options

* Fix missing translation

* Use Eui component to detect click outside the color picker popover

* Retrieve color picker from editor and syncColors on dashboard

* Lazy load palette service

* Add the new plugin to ts references, fix tests, refactor

* Fix ci failure

* Move charts library switch to vislib plugin

* Remove cyclic dependencies

* Modify license headers

* Move charts library switch to visualizations plugin

* Fix i18n on the switch moved to visualizations plugin

* Update license

* Fix tests

* Fix bugs created by new charts version

* Fix the i18n switch problem

* Update the migration script

* Identify if colorIsOverwritten or not

* Small multiples, missing the click event

* Fixes the UX for small multiples part1

* Distinct colors per slice implementation

* Fix ts references problem

* Fix some small multiples bugs

* Add unit tests

* Fix ts ref problem

* Fix TS problems caused by es-charts new version

* Update the sample pie visualizations with the new eui palette

* Allows filtering by the small multiples value

* Apply sortPredicate on partition layers

* Fix vilib test

* Enable functional tests for new plugin

* Fix some functional tests

* Minor fix

* Fix functional tests

* Fix dashboard tests

* Fix all dashboard tests

* Apply some improvements

* Explicit params instead of visConfig Json

* Fix i18n failure

* Add top level setting

* Minor fix

* Fix jest tests

* Address PR comments

* Fix i18n error

* fix functional test

* Add an icon tip on the distinct colors per slice switch

* Fix some of the PR comments

* Address more PR comments

* Small fix

* Functional test

* address some PR comments

* Add padding to the pie container

* Add a max width to the container

* Improve dashboard functional test

* Move the labels expression function to the pie plugin

* Fix i18n

* Fix functional test

* Apply PR comments

* Do not forget to also add the migration to them embeddable too :D

* Fix distinct colors for IP range layer

* Remove console errors

* Fix small mulitples colors with multiple layers

* Fix lint problem

* Fix problems created from merging with master

* Address PR comments

* Change the config in order the pie chart to not appear so huge on the editor

* Address PR comments

* Change the max percentage digits to 4

* Change the max size to 1000

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-optimizer/limits.yml
#	test/functional/apps/visualize/_pie_chart.ts

* Fix functional test

* Revert change - backport missing

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 11:15:27 -04:00
Stratoula Kalafateli ab06dc16b5
[QA] Switch tests to use importExport - visualize (#98063) (#101361)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/functional/apps/visualize/index.ts

Co-authored-by: Tre <wayne.seymour@elastic.co>
2021-06-04 16:21:34 +03:00
Dmitry Tomashevich b09aeb52f2
[7.x] [Discover] Add EUIDataGrid to surrounding documents (#99447) (#101063)
* [Discover] Add EUIDataGrid to surrounding documents (#99447)

* [Discover] migrate remaining context files from js to ts

* [Discover] get rid of any types

* [Discover] replace constants with enums, update imports

* [Discover] use unknown instead of any, correct types

* [Discover] skip any type for tests

* [Discover] add euiDataGrid view

* [Discover] add support dataGrid columns, provide ability to do not change sorting, highlight anchor doc, rename legacy variables

* [Discover] update context_legacy test and types

* [Discover] update unit tests, add context header

* [Discover] update unit and functional tests

* [Discover] remove docTable from context test which uses new data grid

* [Discover] update EsHitRecord type, use it for context app. add no pagination support

* [Discover] resolve type error in test

* [Discover] add disabling control columns option, change loading feedback

* [Discover] clean up, update functional tests

* [Discover] remove invalid translations

* [Discover] support both no results found and loading feedback

* [Discover] provide loading status for discover

* [Discover] fix functional test

* [Discover] add useDataGridColumns test, update by comments

* [Discover] fix types

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

* [Discover] fix data grid row header in firefox

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 11:02:14 +03:00
Kibana Machine 2e3b20060f
[fix] import from the root of @kbn/expect (#101321) (#101343)
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-06-03 20:05:17 -04:00
Tiago Costa 1972311f6f
fix(NA): windows ts_project outside sandbox compilation (#100947) (#101305)
* fix(NA): windows ts_project outside sandbox compilation adding tsconfig paths for packages

* chore(NA): missing @kbn paths for node_modules so types can work

* chore(NA): missing @kbn paths for node_modules so types can work

* chore(NA): organizing deps on non ts_project packages

* chore(NA): change order to find @kbn packages on node_modules first

* chore(NA): add @kbn/expect typings setting on package.json

* chore(NA): fix typechecking

* chore(NA): add missing change on tsconfig file

* chore(NA): unblock windows build by not depending on the pkg_npm rule symlink in the package.json

* chore(NA): add missing depedencies on BUILD.bazel file for io-ts-list-types

* chore(NA): remove rootDirs configs

* chore(NA): change kbn/monaco targets order

* chore(NA): update kbn-monaco build

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
2021-06-03 14:53:36 -04:00
Greg Thompson 0480fbc945
Upgrade EUI to v33.0.0 (#99382) (#101067)
* eui to 33.0.0

* resize observer type inclusion - revisit

* src snapshot updates

* x-pack snapshot updates

* table sort test updates

* code block language sh -> bash

* datagrid datetime sort inversion

* types

* kbn-crypto

* refractor yarn resolution

* refractor yarn resolution

* update cypress tests

* url state test

* trial

* Revert "trial"

This reverts commit adc3538145.

* trial anomaly timeout

* Revert "trial anomaly timeout"

This reverts commit 9a11711ba8.

* kbn-telemetry-tools

* Change a useMemo to useCallback so the code executes when intended

* Removed no-longer-used import

* exitOrFail already retries for longer than tryForTime

* Wait for loading indicator to disappear

* Intentionally adding `.only`

* Revert .only

* Increase wait time for the ML chart to load

* Remove unused var

* overflow

* chartWidth

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2021-06-01 13:56:37 -04:00
Matthias Wilhelm 70543ade3a
[Discover] Fix infinite scrolling using Classic table (#97634) (#101003)
* Fix infinite scrolling

* Add functional tests
2021-05-31 11:21:48 -04:00
Tyler Smalley 52dd72e0a2 Revert "[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#99980)"
This reverts commit be40e96806.
2021-05-28 17:21:51 -07:00
Tyler Smalley be40e96806
[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#99980)
* [FTR][CI] Use default distribution for all tests (#94968)

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

* Use default output

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

* [FTR] Use importExport for saved_object/basic archive

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

* Update suggestions tests

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

* Fix build

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

* More migrations to kbnArchiver

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-05-28 15:25:52 -04:00
Spencer 3ccadb4100
[ftr] migrate screenshots and snapshots services to FtrService class (#100514) (#100921)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	test/functional/services/index.ts
2021-05-28 14:24:04 -04:00
Spencer 2d9dd6aa08
[7.x] [ftr] migrate "browser" to FtrService class (#100507) (#100919)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-28 14:21:29 -04:00
Kibana Machine e8039e188b
[ftr] migrate "savedObjectManagementComponent" service to FtrService class (#100614) (#100849)
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-05-28 05:01:16 -04:00
Kibana Machine f1f56d0bd6
[ftr] migrate "queryBar" service to FtrService class (#100612) (#100848)
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-05-28 03:10:31 -04:00
Kibana Machine bc7adfa40b
[ftr] migrate "MenuToggle" service to FtrService class (#100608) (#100847)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-28 03:06:04 -04:00
Kibana Machine c95c60177c
[ftr] migrate "embedding" and "renderable" services to FtrService class (#100596) (#100846)
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-05-28 03:00:14 -04:00
Anton Dosov b9115a6122
[Index Patterns] Migrate tests to the new es client (#100760) (#100782) 2021-05-27 11:43:58 -04:00
Kibana Machine 4c6d3c9de9
[ftr] migrate "comboBox" service to FtrService class (#100592) (#100761)
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-05-27 13:13:03 +00:00
Kibana Machine df8ba923c4
[ftr] migrate AppsMenuService to FtrService class (#100588) (#100745)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-26 19:33:14 -04:00
Kibana Machine b6a231621c
[ftr] migrate "flyout" and "inspector" services to FtrService class (#100602) (#100739)
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-05-26 18:52:52 -04:00
Kibana Machine 9479eaa067
[ftr] migrate "toasts" service to FtrService class (#100613) (#100729)
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-05-26 17:35:35 -04:00
Kibana Machine 55651f9abe
[7.x] [ftr] migrate "testSubjects" to FtrService class (#100512) (#100656)
* [ftr] migrate "testSubjects" to FtrService class (#100512)

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

* fix clickAndValidate() fn

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-26 17:08:14 -04:00
Kibana Machine fb74e7204a
[ftr] migrate management services to FtrService class (#100521) (#100723)
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-05-26 17:03:51 -04:00
Kibana Machine 483f2b89a1
[ftr] migrate visualizations service to FtrService classes (#100522) (#100721)
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-05-26 16:54:31 -04:00
Spencer 9693644fdd
[ftr] migrate dashboard services to FtrService class (#100519) (#100720)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	test/functional/services/dashboard/add_panel.ts
#	test/functional/services/index.ts
2021-05-26 16:52:43 -04:00
Tre 35a193d8d6
[QA] Add saved objects info svc (#96364) (#100700)
Add svc and fn to return saved object types in a given index,
defaulted to ".kibana" index.
2021-05-26 14:00:21 -04:00
Kibana Machine 2fe74fe817
[ftr] migrate "globalNav" service to FtrService class (#100604) (#100665)
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-05-26 14:11:34 +00:00
Kibana Machine 2aa49fd513
[ftr] migrate "find" service to FtrService class (#100509) (#100644)
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-05-26 06:58:10 -04:00
Kibana Machine 94d1c48cd8
[ftr] migrate "docTable" service to FtrService class (#100595) (#100640)
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-05-26 06:37:39 -04:00
Kibana Machine f43da37f87
[ftr] migrate "listingTable" service to FtrService class (#100606) (#100637)
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-05-26 10:32:32 +00:00
Kibana Machine 9992e63e75
[ftr] migrate "dataGrid" service to FtrService class (#100593) (#100633)
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-05-26 05:58:14 -04:00
Kibana Machine 58f7eff1ce
[ftr] migrate "fieldEditor" to FtrService class (#100597) (#100627)
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-05-26 00:06:13 -04:00
Kibana Machine a6e01e0356
[ftr] migrate "filterBar" service to FtrService class (#100601) (#100626)
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-05-26 00:03:04 -04:00
Spencer b601c5c3b4
[ftr] implement FtrService classes and migrate common services (#99546) (#100585)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/common/services/deployment.ts
#	test/common/services/index.ts
#	test/common/services/saved_object_info.ts
#	test/functional/apps/visualize/index.ts
2021-05-25 16:31:02 -04:00
Kibana Machine b25c577ec1
[test/functional/context] include missing await (#100422) (#100529)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-25 04:56:01 -04:00
Kibana Machine e0e106516e
Remove PEG.js generator from the timelion runtime (#100327) (#100380)
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-05-20 07:39:22 -04:00
spalger 8fa93a225d skip flaky suite (#100372) (#96997)
(cherry picked from commit be97fae12e)
2021-05-19 15:51:47 -07:00
Kibana Machine 4b712fda4b
[kbn/test] move types/ftr into src (#99555) (#100228)
* [kbn/test] move types/ftr into src

* Apply eslint updates

* fix import of Lifecycle type

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

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-17 14:49:48 -04:00
Catherine Liu 3124344357
[Dashboard] Fixes dashboard_save functional test (#98830) (#100227)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-17 14:41:02 -04:00
Kibana Machine e1cc66b17b
[QA] fix dashboard lens by value test (#100196) (#100222)
* [functional test] remove redundant navigation, wait for lens to be loaded

* fix navigation to new viz

* update test title

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

Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
2021-05-17 13:13:21 -04:00
Kibana Machine 1d6e26b2b3
[Uptime] Fix overview flaky tests (#99781) (#100157)
* add retry logic and add describe.only to prepare for flaky test runner

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

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-05-14 16:28:18 -04:00
Stratoula Kalafateli 7571a10615
[TSVB] Filter by clicking on the timeseries chart (#97426) (#99927)
* WIP TSVB filter by click

* Disable filter click when showBar is set to false

* Exclude metric columns as they are not filtered

* Allow filters group by filter click event

* Fix CI and unit tests

* Add some comments

* Move to separate function for easier testing

* Add more unit tests

* Add a functional test

* Improve types

* Fix bug with group by filters and user applies custom labels

* fix time filter bug

* Address 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-05-12 11:52:07 -04:00
Kibana Machine 2c5e4b8292
[Bug] Fixes #9184 (#99099) (#99839)
* code review

* test

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-05-11 22:00:09 +00:00
Tiago Costa 7b00bba260
skip flaky suite (#98974) 2021-05-10 14:28:15 +01:00
Matthias Wilhelm 44f1f1728c
[7.x] [Discover] Fix horizontal scrolling of legacy table (#98770) (#99164)
* [Discover] Fix horizontal scrolling of legacy table (#98770)

* Add CSS class to fix scrolling of legacy table

* Add functional test

* Update _doc_table.ts
2021-05-05 12:35:01 -04:00
Kibana Machine ecd9fd401a
Enable custom time ranges for saved searches (#99180) (#99351)
* Enable custom time ranges for saved searches

* Add functional test

* Fix Typing

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

Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-05-05 12:34:03 -04:00
Diana Derevyankina 6cffcc9dd2
[TSVB] Timeseries Drop last bucket set default to false (#97257) (#98879)
* [TSVB] Timeseries Drop last bucket should default to false

* Rename isLastBucketDropped prop and move series domain calculation to a separate file

* Fix failing tests because of wrong default value

* update drop_last_bucket.js

* Refactor drop_last_bucket and some functional tests

* Change infra metrics test values because of last bucket value changed

* Refactor series_domain_calculation and related code

* Update series_domain_calculations.test

* Update series_domain_calculations.test

* Fix tooltip showing wrong time

* Refactor index

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-04-30 06:52:02 -04:00
Matthias Wilhelm e1843a49a7
[Discover] Revert default grid back to legacy (#98508) (#98876)
# Conflicts:
#	test/functional/apps/discover/_large_string.ts
#	test/functional/page_objects/discover_page.ts
#	x-pack/test/functional/apps/security/doc_level_security_roles.js
2021-04-30 06:34:55 -04:00
Pierre Gayvallet ab3fed7906
[7.x] SOM: hide actions for hidden types (#98290) (#98568)
* SOM: hide actions for hidden types (#98290)

* SOM: hide actions for hidden types

* fix FTR tests

* add and fix tests

* fix unit tests

* fix test types

* fix FTR test assertions

* add more FTR tests

* delete old file

* fix data set
2021-04-28 05:36:17 -04:00
Dave Snider 8aa25a6245
Fix widths/paddings of first two columns in dsc grid (#98251) (#98369)
* Fix widths of first columns

* clean up gutters

* Fix functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-04-27 09:33:20 -07:00
Maja Grubic df317f8024
[Discover] Cleanup in runtime fields editor functional test (#97820) (#98441)
* [Discover] Cleanup in runtime fields editor functional test

* Add uuid to field label

* Adding field after the update

* Unskip test

* Remove uuid from custom label

* Remove unused import
2021-04-27 05:00:06 -04:00
Uladzislau Lasitsa 7b834954af
[Visualization] Aggregation-based vis with date histogram - not progressing if current data is missing (#98012) (#98376)
* Fix computation of domainMax

* Fix test

* Fix tests

* Fix tests

* Fix test

* Fix 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-26 22:45:59 -07:00
Devon Thomson 6c59c95e31
Fixed copyTo by only copying explicit input (#98083) (#98367) 2021-04-26 17:40:12 -04:00
Mikhail Shustov fce1f7e14c
[7.x] Rewriting SO id during migration (#97222) (#98300)
* Rewriting SO id during migration (#97222)

* some typos

* implement an alternative client-side migration algorithm

required to enforce idempotent id generation for SO

* update tests

* lol

* remove unnecessary param from request generic

* remove unused parameter

* optimize search when quierying SO for migration

* fix wrong type in fixtures

* try shard_doc asc

* add an integration test

* cleanup

* track_total_hits: false to improve perf

* add happy path test for transformDocs action

* remove unused types

* fix wrong typing

* add cleanup phase

* add an integration test for cleanup phase

* add unit-tests for cleanup function

* address comments

* Fix functional test

* set defaultIndex before each test. otherwise it is deleted in the first test file during cleanup phase

* sourceIndex: Option.some<> for consistency

* Revert "set defaultIndex before each test. otherwise it is deleted in the first test file during cleanup phase"

This reverts commit a128d7b7c0.

* address comments from Pierre

* fix test

* Revert "fix test"

This reverts commit 97315b6dc2.

* revert min convert version back to 8.0

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>

* skip id rewriting test

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-04-26 12:11:34 -04:00
Tyler Smalley e5d6d127a0 skip flaky suite (#95376) 2021-04-22 11:38:23 -05:00
Uladzislau Lasitsa b0a7ee96d7
Advanced JSON input in visualize editor is always light scheme (#97232) (#97792)
* Use CodeEditor from react-utils which supports dark theme instead of deprecated EuiCodeEditor

* fix CI

* Fix CI

* Fix tests

* Update monaco_editor.ts

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 04:18:16 -04:00
Spencer f442052f56
[7.x] [npm] upgrade all jest related dependencies (#96367) (#97901)
* [npm] upgrade all jest related dependencies (#96367)

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

* remove package added by other PR

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-21 20:26:10 -04:00
Tre 9d67b3b143
[QA] Switch tests to use importExport - discover (#94006) (#97885)
Switch es archiver for kbn archiver everywhere possible

Partially closes #93797
2021-04-21 17:12:48 -04:00
spalger 939c68ce2d skip flaky suite (#97864)
(cherry picked from commit c60411ed4a)
2021-04-21 11:41:40 -07:00
Maja Grubic aa3f1a2c28
[Discover] Attempt at fixing a failing test (#97790) (#97814) 2021-04-21 11:12:16 -04:00
Matthias Wilhelm 79190d3d1a
[Discover] Fix wrong sort order with empty sort URL parameter (#97434) (#97706)
Co-authored-by: Tim Roes <mail@timroes.de>

Co-authored-by: Tim Roes <mail@timroes.de>
2021-04-20 16:34:37 -04:00
Matthias Wilhelm 46d8d001da
[Discover] Enable EuiDataGrid (#89264) (#97628)
* Now the new EuiDataGrid based document table is the default

* Columns can be sorted by drag and drop

* Column width can be changed by drag and drop

* There's a fullscreen mode

* There's document selection

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

* Sorting is much more user friendly, less confusing and sort order can be changed by drag and drop
2021-04-20 17:34:56 +02:00
Pierre Gayvallet 13388cf82f
Fix flaky SO import tests (#97586) (#97616)
* Fix flaky SO import tests

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

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

This reverts commit ede007ec

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

This reverts commit ede007ec
2021-04-20 09:58:10 -04:00
Matthias Wilhelm ceec53ce80
[7.x] [Discover] Display toast when adding columns and filters from document flyout (#97270) (#97583)
* [Discover] Display toast when adding columns and filters from document flyout (#97270)

* Update _data_grid_doc_table.ts

* Update _data_grid_doc_table.ts
2021-04-20 09:57:27 -04:00
Catherine Liu bdb052cddc
[7.x] [Dashboard] Makes lens default editor for creating new panels (#96181) (#97414)
* [Dashboard] Makes lens default editor for creating new panels (#96181)

* Makes lens default editor in dashboard

Added all editors menu to dashboard panel toolbar

Fixed toggle on editor menu

Removed unnecessary comments

Added data test subjects to editor menu buttons

Populated editor menu with vis types

Removed unused imports

Fixed imports

Adds showCreateNewMenu prop to AddPanelFlyout

Rearranged order of editor menu options

Fixed ts errors

Added groupnig to embeddable factory

Use embeddable state transfer service to redirect to editors

Added showGroups to TypeSelectionState

Fixed add panel flyout test

Fixed data test subjects

Fixed factory groupings

Removed unused import

Fixed page object

Added telemtry to dashboard toolbar

Added telemtry to editor menu

Fix ml embeddable functional tests

Fix lens dashboard test

Fix empty dashboard test

Fixed ts errors

Fixed time to visualize security test

Fixed empty dashboard test

Fixed clickAddNewEmbeddableLink in dashboardAddPanel service

Fixed agg based vis functional tests

Revert test changes

Fixed typo

Fix tests

Fix more tests

Fix ts errors

Fixed more tests

Fixed toolbar sizes and margins to align with lens

Fix tests

Fixed callbacks

Fixed button prop type

New vis modal copy updates

Added savedObjectMetaData to log stream embeddable factory

Addressed feedback

Fixed ts error

Fix more tests

Fixed ts errors

Updated dashboard empty prompt copy

Adds tooltip to log stream embeddable factory saved object meta data

Made icons monochrome in toolbar

Fixed icon colors in dark mode

Cleaned up css

Fixed ts errors

Updated snapshot

Fixed map icon color

* Added tooltips for ML embeddables

* Restored test

* Added empty dashboard panel test

* Fixed i18n id

* Fix dashboard_embedding test

* Removed unused service

* Fixed i18n error

* Added icon and description properties to embeddable factory definition

* Fixed ts errors

* Fixed expected value

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

* Updated snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-19 16:02:15 -04:00
Matthias Wilhelm b19c592d7d
[Discover] Unskip functional saved queries test (#97478) 2021-04-19 12:46:52 -04:00