Commit graph

4349 commits

Author SHA1 Message Date
Alejandro Fernández Haro f62a3153cd
Define schema for monitoring-sourced telemetry (#94434)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-17 10:54:12 -04:00
Anton Dosov 4ed09420ce
[QueryBar] a11y improvements, focus glitches fixes, unskip tests (#94148) 2021-03-17 15:02:37 +01:00
Diana Derevyankina bdcd2ec859
Replace EuiCodeBlock with JsonCodeEditor in DiscoverGrid (#92442)
* Replace EuiCodeBlock with JsonCodeEditor in DiscoverGrid

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

* Update json_code_editor snapshot

* Add functional test for cell expanded content popover

* Remove unused code

* Fix geo point case and refactor some code

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

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

* Fix functional test to work with the eui palette

* Order eui colors by group

* Add unit test for use color picker

* Add useMemo to getColorPicker

* Remove the grey background from the first focused circle

* Fix bug caused by comparing lowercase with uppercase characters

* Fix bug on complimentary palette

* Fix CI

* fix linter

* Use uppercase for hex color

* Use eui variable instead

* Changes on charts.json

* Make the color picker accessible

* Fix ci and tests

* Allow keyboard navigation

* Close the popover on mouse click event

* Fix ci

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-16 19:36:48 +02:00
Mikhail Shustov ee84e0b0b7
Merge tsconfig and x-pack/tsconfig files (#94519)
* merge all the typings at root level

* merge x-pack/tsconfig into tsconfig.json

* fix tsconfig after changes in master

* remove unnecessary typings

* update paths to the global typings

* update paths to the global elaticsearch typings

* fix import

* fix path to typings/elasticsearch in fleet plugin

* remove file deleted from master

* fix lint errors
2021-03-16 15:13:49 +01:00
Anton Dosov bd9170f7dc
[Search Sessions] Search session example app functional test (#92133) 2021-03-15 14:47:14 +01:00
Anton Dosov df98465982
Fix importing dashboards created before ~6.1.0 (#94332) 2021-03-15 13:57:44 +01:00
Matthew Kime 44d8093ddf
[Field formats] Fix switching away from duration formatter (#93818)
* simplify field format editor rendering, fixes switching away from duration formatter
2021-03-10 12:15:51 -06:00
Rashmi Kulkarni ff2b3beaa8
Unskipping Dashboard listing functional test (#93843)
* fixes https://github.com/elastic/kibana/issues/74449

* unskipping to check the flakiness
2021-03-09 13:31:32 -08:00
Matthew Kime 2d109df886
Add runtime field functional test (#93710)
Add runtime fields editor functional test
2021-03-08 15:54:59 -06:00
Wylie Conlon c33987d929
Support for number, date and IP range data types (#76971)
* Support for number, date and IP ranges

* Update tests

* Ranges don't work with range agg

* Fix test case

* Allow Discover to create range filters

* Supports ranges in Visualize, KQL, remove Lens support

* Fix test mappings

* Bring back field cache to work around bug

* Fix some tests

* Fix test expectation

* Respond to review comments

* Fix type error

* Remove added sample data

* Fix api_docs

* Fix test
2021-03-08 15:50:36 -05:00
Lukas Olson 2b3bac95c1
[KQL] Use cache and other performance improvements (#93319)
* [KQL] Use cache and other performance improvements

* Fix test

* Fix jest tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 10:21:15 -07:00
Nathan L Smith 749a22989b
Enable APM storybook publishing (#93353)
Changes to fix APM's Storybook setup were made in #93087 and #93294. This re-enables it and fixes a couple places where we weren't using a theme provider.
2021-03-08 10:39:25 -06:00
Lee Drengenberg ad5a7a528a
wait for index pattern button to be enabled (#93677)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-05 15:30:36 -06:00
Alejandro Fernández Haro c86f6a2306
[Telemetry] Fix flaky "after" delete (#93636) 2021-03-05 12:07:35 +02:00
Nick Partridge 667cb14f5a
[XY Charts] fix partial histogram endzones annotations (#93091) 2021-03-04 11:06:33 -06:00
Wylie Conlon 799c05e0b8
[Discover] Fix link from dashboard saved search to Discover (#92937)
* [Discover] Fix link from dashboard saved search to Discover

* Fix tests that weren't fully testing the navigation

* Fix snapshot

* Fix test navigation to context app by reverting to previous

* Unskip functional test and fix issue in data grid

* Respond to review comments
2021-03-03 14:47:53 -05:00
Wylie Conlon eec777b7ef
[Index patterns] Guarantee order of fields in flattenHits (#93344)
* [Discover] Guarantee order of fields in table preview

* Remove comments

* Fix test that relied on discover ordering

* Fix ordering of test
2021-03-03 13:12:36 -05:00
Rashmi Kulkarni a0881f90e2
Test huge fields functional test (#93334)
* fixes https://github.com/elastic/kibana/issues/74449

* fix for unskipping test huge fields functional test

* fix eslint
2021-03-03 09:01:54 -08:00
Spencer bf8417ed1a
[ci] separate checks done in bootstrap as individual tasks (#93329)
(cherry picked from commit b790f4ca1761bc1fab7818318213833a9c7d092f)

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-03 08:45:55 -07:00
Maja Grubic eece6d4cbd
[Search Embeddable] Add highlighting when searching (#93178)
* [Search Embeddable] Add highlighting when searching

* Adding a functional test
2021-03-03 07:45:59 +00:00
Bhavya RM 4218813464
removing the linked issue in comments from PR (#93303) 2021-03-02 17:21:28 -05:00
Devon Thomson 41b81a1011
[Time to Visualize] Disable Visualize URL Tracker When Linked to OriginatingApp (#92917)
* changed url tracker for visualize to not save when linked to originating app
2021-03-02 11:03:27 -05:00
Matthias Wilhelm 5afe844001
Fix expanding document when using saved search data grid (#92999) 2021-03-02 08:31:56 +01:00
Alejandro Fernández Haro f44916b6aa
[Telemetry] Full schema definition (#90273)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 18:30:51 +00:00
Uladzislau Lasitsa ccf1fcc00e
Control round and decimal places in Gauge Visualization when using aggregate functions like average (#91293)
* Add field for providing format in percentage mode

* Fix CI

* Add tests

* Fix ci

* Fix some remarks

* Fix ci

* Fix some remarks

* Fix ci

* Fix width

* Fix some remarks

* Fix text

* Fix i18n

* Remove unneeded import

* Remove unneeded code

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 14:58:16 +03:00
Spencer 0aabc317ec
[kbn/test] add import/export support to KbnClient (#92526)
Co-authored-by: Tre' Seymour <wayne.seymour@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-25 16:13:27 -07:00
Rashmi Kulkarni 9c527347ef
Test fix management scripted field filter functional test and unskip it (#92756)
* fixes https://github.com/elastic/kibana/issues/74449

* unskipping the functional test, removing the unload and adding an empty kibana in the after method
2021-02-25 14:11:11 -08:00
Wylie Conlon 272bf97e31
[Discover] Fix persistence of "hide/show chart" in saved search (#92731) 2021-02-25 14:17:47 -05:00
Anton Dosov e3eaa97c6b
Fix navigating from discover single document view back to discover (#92463) 2021-02-24 16:09:14 +01:00
Marius Dragomir d0b39b10a7
Add metricbeat steps to jenkins_build_load_testing.sh (#90290)
* Update jenkins_build_load_testing.sh

* Change variables name

* Change to tar.gz package

* change install location

* Rename folder

* Debug and new folder name

* fix debug

* Fix path not changed

* more logging

* add cat logs

* more logging and skipping tests for debug

* Update jenkins_build_load_testing.sh

* Update jenkins_build_load_testing.sh

* Fix kibana_dir var

* Change log file path

* Update jenkins_build_load_testing.sh

* Update jenkins_build_load_testing.sh

* Fix metricbeat start

* Remove extra ls logging

* Changing to MB 7.11.0

* Fix package name

* Fix wrong copy

* Add vault credentials for stats

* Adding system data and removing log

* Update jenkins_build_load_testing.sh

Update script

* Update jenkins_build_load_testing.sh

Remove `ls` commands

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dmitry <dzmitry.lemechko@elastic.co>
2021-02-24 16:08:26 +03:00
Devon Thomson cb932075fa
[Dashboard] Remove Multiple History Entries & Stay in Edit Mode on Save As (#92105)
* made save as stay in edit mode when not navigating to another dashboard. Removed extra history entires from save
2021-02-23 11:01:21 -05:00
Wylie Conlon 62a0a4beac
[TSVB] Stop inserting zeroes for null series (#90861)
* [TSVB] Stop inserting zeroes for null series

* Replace empty default value with hyphen

* Stop treating 0 as false

* Fix test cases

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 10:32:46 -05:00
Rudolf Meijering 3b1ca526a7
v1 migrations: drop fleet-agent-events during a migration (#92188)
* v1 migrations: drop fleet-agent-events during a migration

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

* Fix test
2021-02-23 11:44:43 +01:00
Wylie Conlon 4614202297
[Discover] Show correct data for top level object columns (#91954)
* [Discover] Show correct data for top level object columns

* Fix bug with missing fields

* Fix bug in data grid

* Fix remaining bug in datagrid

* Change use of API to work with any type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 14:24:10 -05:00
Daniil d9cdb99c07
[Data Table] Fix visualization layout in split mode (#91799)
* Fix table vis layout in split mode

* Stick pagination at the bottom

* Fix functional tests

* Fix jest test

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

* fixes failing tests

* fixes issues

* fixes exceptions table failing test

* updates readme

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 17:48:43 +01:00
Daniil d0a7ca2eb4
Use EuiResizableContainer in visualize (#86934)
* Use EuiResizableContainer

* Code cleanup

* Memoize the sidebar for performance boost

* Prevent mouseLeave event

* Downgrade eui to 30.6.0

* Revert eui downgrade

* Update styles

* Render embeddable after a timeout

* Fix printing

* Fix resizer functional test

* Create an explicit layout breakpoint

* Remove extra code

* Update layout styles

* Add a note of using height: 1px

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 17:19:58 +03:00
Pierre Gayvallet eed5f72b1a
Implement ScopedHistory.block (#91099)
* implements ScopedHistory.block

* add FTR tests

* fix test plugin id

* update generated doc

* deprecates AppMountParameters.onAppLeave

* typo fix

* add new FTR test

* fix added test
2021-02-22 12:27:07 +01:00
Michail Yasonik d23c01b4be
Enabling Uptime and Dashboard a11y test (#91017) 2021-02-19 19:21:20 -05:00
Devon Thomson 85bc8b0b42
[Time to Visualize] Stay in Edit Mode After Dashboard Quicksave (#91729)
* Make quicksave function stay in edit mode
2021-02-19 12:34:01 -05:00
Maja Grubic c8fab9f8cb
[Discover] Always show unmapped fields (#91735)
* [Discover] Always show unmapped fields

* Updating the functional test

* Remove unmapped switch toggle

* Some more code cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-19 16:41:00 +00:00
Jonathan Budzenski 539f33e53b Revert "[SOM] fix flaky suites (#91809)"
This reverts commit 386afdca8f.
2021-02-18 18:43:43 -06:00
Brian Seeders 03206b688a
[CI] Build and publish storybooks (#87701) 2021-02-18 14:13:23 -05:00
Devon Thomson 0a685dbb63
[Time to Visualize] Dashboard Save As New by Default (#91761)
* changed dashboard save as to have save as new switch on by default
2021-02-18 13:49:26 -05:00
Sébastien Loix eddf1c94b1
Index pattern field editor (#88995)
Index pattern field editor
2021-02-18 12:00:43 -06:00
Alejandro Fernández Haro 5342877a32
[HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-18 17:31:18 +00:00
Ahmad Bamieh 386afdca8f
[SOM] fix flaky suites (#91809)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-18 18:34:44 +02:00
Joe Reuter 543bf1bf1d
Discover: Add handling for source column (#91815) 2021-02-18 16:39:17 +01:00
Bhavya RM 2aaeea7ce8
Unskip import saved objects test 2021-02-18 07:56:18 -05:00
Dmitry 119199ef41
[coverage] change worker, save json files in original path (#91683)
* [coverage] write data to original path

* [coverage] change worker size
2021-02-17 19:45:06 +01:00
Rashmi Kulkarni f398244425
unskip navigation test (#91306)
* fixes https://github.com/elastic/kibana/issues/74449

* unskip navigation test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 14:52:38 -08:00
Devon Thomson dc4e94e0ba
[Time to Visualize] Unsaved Changes Badge (#91073)
* Added unsaved changes badge to dashboards. Removed (unsaved) from the dashboard title
2021-02-16 13:47:25 -05:00
Spencer 9d8376d890
ship @kbn/ui-shared-deps metrics in separate step (#91504)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-16 11:42:26 -07:00
Devon Thomson 6f857dd7f3
[Time to Visualize] Combine Discard & Cancel (#91267)
* recombined discard and cancel button functionality
2021-02-16 13:03:56 -05:00
Dmitry 2fe0d05375
[coverage] fix jest merging (#90915)
* [coverage] fix jest merging

* fix path to functional results

* revert wrong change

* fix ingest script

* fix ingest script

* [coverage plugin] change id to camelCase

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 18:02:56 +01:00
Maja Grubic 7fc56131c0
[Discover] Making source filters test run with fields API (#91404) 2021-02-16 13:27:25 +00:00
Ahmad Bamieh 643794eb9f
fix ui counters flaky test (#91372)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 19:06:40 +02:00
Tiago Costa 4de5a7d5ee
skip flaky suite (#86948) 2021-02-15 13:40:03 +00:00
Tiago Costa 5ffb48d15a
skip flaky suite (#91191) 2021-02-15 13:36:26 +00:00
Ahmad Bamieh c1d1b2b453
[Saved Objects] Allow exporting and importing hidden types (#90178)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-14 19:05:36 +02:00
Joe Portner 5c3c3efdd8
Sharing saved objects, phase 2.5 (#89344) 2021-02-13 04:28:35 -05:00
Devon Thomson 6e8622fadb
[Time to Visualize] Copy Panel to Dashboard (#90856)
* Added copy to dashboard action
2021-02-11 17:15:30 -05:00
Catherine Liu 30e86ac065
[Dashboard] Adds Save as button to top menu (#90320)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 12:17:09 -08:00
Catherine Liu befb7c62a5
[Time to Visualize] Adds functional tests for editing by value visualize embeddables (#90241)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 12:16:40 -08:00
Luke Elmers 7fc3d125bf
Support pit and search_after in server savedObjects.find (#89915) 2021-02-11 14:58:08 -05:00
Devon Thomson 89327bf9de
[Time to Visualize] Rename Visualize to Visualize Library (#91015)
* Renamed Visualize to Visualize Library
2021-02-11 13:46:35 -05:00
Alejandro Fernández Haro 6bd0a7fcc5
[Plugins Discovery] Enforce camelCase plugin IDs (#90752)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 14:36:17 +00:00
renovate[bot] 57d9dd1419
Update dependency @elastic/charts to v24.5.1 (#89822)
Updates @elastic/charts to 24.5.1 with some Kibana related fixes:
- align tooltip z-index to EUI tooltip z-index
- external tooltip legend extra value sync
- legend: hierarchical legend order should follow the tree paths


fix #84307

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 09:18:48 +01:00
Spencer 591bcc1c71
[jest/ci] remove max-old-space-size override to use 4gb default (#91020)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-10 17:13:49 -05:00
Uladzislau Lasitsa 4c878be613
Bump "monaco-editor" and "react-monaco-editor" to latest versions (#90158)
* Update version of react-monaco-editor and monaco-editor libraries

* Fix yarn lock file

* Fix CI

* Fix unit tests

* Fix CI

* Fix comment

* move monaco instance in window.MonacoEnvironment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-10 23:05:46 +03:00
Poff Poffenberger 4ee5f094ce
[Time to Visualize] Add functional tests for adding visualizations from Visualize, Lens, and Maps and adjust capabilities for new modal (#89245)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-10 12:48:32 -06:00
Matthias Wilhelm 40f44a91c8
[Discover] Add "Hide chart" / "Show chart" persistence (#88603) 2021-02-10 16:08:20 +01:00
Tyler Smalley 08c08e88d9
[CI] Combines Jest unit tests (#89948)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-02-09 10:08:46 -08:00
Robert Oskamp 523110d4bd
Functional tests - Add esSupertest support for SSL (#90425)
This PR allows the functional test service esSupertest to work correctly in environments that have ES SSL enabled in the Kibana server configuration.
2021-02-09 12:45:19 +01:00
Catherine Liu 3cf00d2bb4
[Time to Visualize] Adds functional tests for linking/unlinking panel from embeddable library (#89612) 2021-02-08 15:21:06 -08:00
Tyler Smalley b39ad86b5d
Use default ES distribution for functional tests (#88737)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-08 14:23:10 -08:00
Spencer a0ce7b5aa8
[kbn/optimizer][ci-stats] ship metrics separate from build (#90482)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-08 10:47:55 -07:00
Pierre Gayvallet 3b3327dbc3
Migrate most plugins to synchronous lifecycle (#89562)
* first pass

* migrate more plugins

* migrate yet more plugins

* more oss plugins

* fix test file

* change Plugin signature on the client-side too

* fix test types

* migrate OSS client-side plugins

* migrate OSS client-side test plugins

* migrate xpack client-side plugins

* revert fix attempt on fleet plugin

* fix presentation start signature

* fix yet another signature

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

* remove unused import

* fix isPromise

* Add client-side deprecations

* update migration examples

* update generated doc

* fix xpack unit tests

* nit

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

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

This reverts commit fdf73feb

* restore await on on promise contracts

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

This reverts commit fdf73feb

* Revert "restore await on on promise contracts"

This reverts commit c5f2fe51

* add delay before starting tests in FTR

* update deprecation ts doc

* add explicit contract for monitoring setup

* migrate monitoring plugin to sync

* change plugin timeout to 10sec

* use delay instead of silence
2021-02-08 10:19:54 +01:00
Rudolf Meijering fd1d965039
Unrevert "Migrations v2: don't auto-create indices + FTR/esArchiver support (#85778)" (#89992)
* Revert "Revert "Migrations v2: don't auto-create indices + FTR/esArchiver support (#85778)""

This reverts commit f97958043f.

* Fix flaky saved objects management test #89953

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

* Fix test after master merge

* Fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-06 18:45:20 +01:00
Tyler Smalley be725cabc2
[test] Await retry.waitFor (#90456)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-02-05 17:10:49 -08:00
Steph Milovic fc516bacbd
[index patterns] Add pattern validation method to index patterns fetcher (#90170) 2021-02-05 14:13:51 -07:00
Devon Thomson 095233d727
Fix Visualize Link Redirecting to Dashboard Linked Visualization (#90243) 2021-02-05 13:48:25 -05:00
Chandler Prall db899a9274
Upgrade EUI to v31.4.0 (#89648)
* Bump EUI to v31.4.0

* fix datagrid functional tests

* fix Lens unit tests

* fix table cell filter test

* Fix discover grid doc view test

* stabilize data table tests

* fix dashboard embeddable datagrid test

* Fix x-pack functional tests

* fix ml accessibility tests

* Fix discover grid context test

* Adapt expected nr of documents being displayed

* stabilize Lens a11y tests and skip data table

* Fix 2 ml functional tests

* enable lens datatable test; disable axe rule for datatable

* fix ml test

* fix Lens table test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
2021-02-05 10:14:58 -07:00
Tiago Costa 0f45439a5f skip flaky suite (#85086)
(cherry picked from commit e564439348)
2021-02-04 10:15:11 -07:00
Maja Grubic c37b0e1474
[Discover] Minor cleanup (#90260) 2021-02-04 15:00:22 +00:00
Anton Dosov e82bbcff89
[Search Session] Revamp search session indicator UI and tour (#89703) 2021-02-04 14:36:19 +01:00
Brandon Kobel 4584a8b570
Elastic License 2.0 (#90099)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:12:39 -08:00
Devon Thomson 9232a5a26a
[Time to Visualize] Remove Panels from URL (#86939)
Removed panels from dashboard URLs

Co-authored-by: Ryan Keairns <contactryank@gmail.com>
2021-02-03 17:23:01 -05:00
Spencer d07ae11da6
[es] disable wildcards in destructive actions (#88986)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-03 09:29:37 -07:00
Peter Pisljar 2145768c0d
Examples/expressions2 (#90140) 2021-02-03 16:06:26 +01:00
Maja Grubic c6be748a97
[Discover] Add support for unmapped fields using the fields API (#89074)
* Add search source to example plugin.

* Add uiSetting for fields API.

* Update SearchSource to support fields API.

* [PoC] reading from the fields API in Discover

* Add N fields as a default column

* Make fields column non-removeable

* Do not add 'fields' to state

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

* Remove fields column if a new column is added

* Add search source to example plugin.

* Add uiSetting for fields API.

* Update SearchSource to support fields API.

* Improve error handling in search examples plugin.

* Add unit tests for legacy behavior.

* Remove uiSettings feature flag; add fieldsFromSource config.

* Rewrite flatten() based on final API design.

* Update example app based on final API design.

* Update maps app to use legacy fieldsFromSource.

* Update Discover to use legacy fieldsFromSource.

* Rename source filters to field filters.

* Address feedback.

* Update generated docs.

* Update maps functional test.

* Formatting fields column similar to _source

* Moving logic for using search API to updating search source

* Fix small merge error

* Move useSource switch to Discover section of advanced settings

* Do not use fields and source at the same time

* Remove unmapped fields switch

* Add basic support for grouping multifields

* Remove output.txt

* Fix some merge leftovers

* Fix some merge leftovers

* Fix merge errors

* Fix typescript errors and update nested fields logic

* Add a unit test

* Fixing field formats

* Fix multifield selection logic

* Request all fields from source

* Fix eslint

* Fix default columns when switching between _source and fields

* More unit tests

* Update API changes

* Add unit test for discover field details footer

* Remove unused file

* Remove fields formatting from index pattern

* Remove unnecessary check

* Addressing design comments

* Fixing fields column display and renaming it to Document

* Adding more unit tests

* Adding a missing check for useNewFieldsAPI; minor fixes

* Fixing typescript error

* Remove unnecessary console statement

* Add missing prop

* Fixing import order

* Adding functional test to test fields API

* [Functional test] Clean up in after

* Fixing context app

* Addressing PR comments

* Add support for unmapped fields

* Add data migration

* Add toggle unmapped fields logic

* Adding more unit tests

* Some cleanup

* More unit tests

* Fixing failing snapshot

* Add tooltip next to unmapped switch

* Add functional test for the feature

* Fixing a typo in a functional test

* Refetch data when unmapped fields value changes

* Updating mapping

* Support for fields API in search embeddable

* Addressing PR comments

* Fix failing unit test

* Updating the text

Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 15:04:55 +00:00
Dario Gieselaar f9de593a6d
decorate_snapshot_ui: make sure snapshots are saved (#89694) 2021-02-03 12:19:07 +01:00
Stratoula Kalafateli d8f7997c83
Remove navigation from Discover to Visualize (#89132)
* Remove navigation from Discover to Visualize

* Remove unused translation

* Remove oss check from functional test

* Fix functional test

* Skip test for OSS

* Fix

* Should not remove the uiSettings getter and setter

* Move the isOss flag inside the test

* Cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 10:15:53 +02:00
Matthias Wilhelm ebf93e2027
[Discover] Unskip brushing histogram functional test (#89400) 2021-02-03 08:42:41 +01:00
Matthias Wilhelm 06bc99d825
[Discover] Fix 'auto' collapsing of documents (#89712) 2021-02-03 06:56:09 +01:00
Spencer 9246f398ea
[esArchiver] upgrade to new ES client (#89874)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 16:55:41 -07:00
Matthias Wilhelm 047dd29747
[Discover] Adapt default column behavior (#89826) 2021-02-02 17:32:37 +01:00
Pierre Gayvallet 762abea14e
migrate more core-owned plugins to tsproject ref (#89975)
* migrate more plugins to tsproject ref

* revert changes for xpack_legacy

* fix IT
2021-02-02 16:16:25 +01:00
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