Commit graph

5599 commits

Author SHA1 Message Date
Abdul Wahab Zahid
eab8ece3fb
[User Experience] Synthetics e2e tests. (#132896)
Co-authored-by: shahzad31 <shahzad.muhammad@elastic.co>
2022-05-31 18:03:25 +02:00
Shahzad
edbcf8f35b
[Synthetics] Re-enable synthetics e2e tests (#133100)
* Re-enable synthetics e2e tests

* more renaming
2022-05-30 17:44:23 +02:00
Matthew Kime
f6924439cf
[data views] Remove fields for time pattern functionality (#133075)
* remove fields for time pattern functionality
2022-05-30 09:45:36 -05:00
Alexey Antonov
0ac9a7c802
Fix Failing test: X-Pack CCS Tests.x-pack/test/functional/apps/lens/roup1/smokescreen·ts - lens app - group 1 lens smokescreen tests should allow to change index pattern (#133015)
* Fix Failing test: X-Pack CCS Tests.x-pack/test/functional/apps/lens/group1/smokescreen·ts - lens app - group 1 lens smokescreen tests should allow to change index pattern

* fix CI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-30 15:31:45 +03:00
Alejandro Fernández Haro
608ce66a0b
[EBT FTR Helpers] Rename getLastEvents to getEvents (#133094) 2022-05-30 02:48:44 -07:00
Alejandro Fernández Haro
85638ebb88
[FTR analytics] Unskip flaky tests (#132925) 2022-05-30 09:55:52 +02:00
Michael Dokolin
103a5ef5ac
[Data] Add updated essql expression function (#132332)
* Add `essql` expression function to the data plugin
* Fix `phraseFilter` function name
* Update SQL search strategy to close the cursor when the search is complete
* Update SQL search strategy to return the time it took to run a search
2022-05-26 21:29:09 +02:00
Hannah Mudge
f6086d90b4
[Dashboard] [Controls] Fix new controls causing unsaved changes bug (#132850)
* Prevent injection of undefined parent/field names

* Add unsaved check to existing functional tests
2022-05-25 13:32:23 -06:00
Kibana Machine
93b619714a skip failing test suite (#132953) 2022-05-25 11:41:14 -05:00
Kibana Machine
f268096982 skip failing test suite (#132931) 2022-05-25 09:25:09 -05:00
Kibana Machine
a7caee80e7 skip failing test suite (#132910) 2022-05-25 08:21:31 -05:00
Kibana Machine
18ae9db1c4 skip failing test suite (#132907) 2022-05-25 08:19:19 -05:00
Alejandro Fernández Haro
003474c5b4
[EBT] Call optIn(false) if the telemetry plugin is disabled (#132748) 2022-05-25 13:13:19 +02:00
Julia Rechkunova
06a98d7844
[Discover] Fix flaky test for "context encoded URL params" (#132808)
* [Discover] Fix flaky test for "context encoded URL params"

* [Discover] Update settings

* [Discover] Update previous tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-25 11:31:31 +02:00
Julia Rechkunova
419f210293
[Discover] Fix flaky test for "allows editing of a newly created field" (#132812)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-25 09:58:28 +02:00
Matthias Wilhelm
66c293fa5a
[Discover] Improve and unskip functional test of hiding the histogram (#132768) 2022-05-25 08:18:57 +02:00
Devon Thomson
556b49133b
[Dashboard] Add Analytics No Data Page (#132188)
Added no data and no data view states to dashboard app and dashboard listing page
Co-authored-by: Maja Grubic <maja.grubic@elastic.co>
2022-05-24 16:04:12 -04:00
Christiane (Tina) Heiligers
68a62969d2
Updates functional test to handle future server-side events (#132824) 2022-05-24 10:37:46 -07:00
Walter Rafelsberger
c968e508f6
[ML] Explain log rate spikes: Move API stream demos to Kibana examples. (#132590)
This creates a response_stream plugin in the Kibana /examples section. The plugin demonstrates API endpoints that can stream data chunks with a single request with gzip/compression support. gzip-streams get decompressed natively by browsers. The plugin demonstrates two use cases to get started: Streaming a raw string as well as a more complex example that streams Redux-like actions to the client which update React state via useReducer().
2022-05-24 16:59:31 +02:00
Mark Hopkin
d7017141e2
[Fleet] Refactoring + splash screen for new multi page add integration flow (#132182)
* pass isCloud to getInstallPkgRouteOptions

* allow enableExperimental config to be seen by UI

* WIP: spash screen navigation

* WIP

* fix tests

* do not include unenrolled agents in FTU check

* add isFirstTimeUSer query param

* Splash screen layout mostly done

* finish spash screen layout

* remove query param + handle special packages

* do not hide docs link in small windows

* restructure folder structure

* change useStepsLayout to useMultiPageLayout

* split multi and single page firther

* clean code

* further refactoring

* fix index.test.tsx

* fix epm\/screens\/detail\/index.test.tsx

* fix storybook

* add experimental features to config test

* add doc link

* tidy for PR

* add alts for arrows

* responsive layout

* remove hardcoded padding

* split ResponsiveStepGroup to its own component
2022-05-24 14:55:57 +01:00
Matthew Kime
606d9c2649
[data view mgmt] add saved object relationships to data view management (#132385)
* add saved object relationships to data view management
2022-05-24 05:01:39 -05:00
Alexey Antonov
c25b2bc9b1
Add method to re-link visualizations with missing index-pattern (#132336)
* Add method to re-link visualizations with missing index-pattern

* fix CI

* push some updates

* fix navigation to TSVB

* remove 'fallback' type from DataView

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-23 22:31:24 +03:00
Thomas Watson
dc9f2732a1
Add csp.disableUnsafeEval config option to remove the unsafe-eval CSP (#124484)
Adds a new experimental Kibana setting called `csp.disableUnsafeEval` which will default to `false`. When set to `true`, it will remove `unsafe-eval` from our CSP.

Also introduces a new module called `@kbn/handlebars` which is a replacement for the official `handlebars` module used in the frontend. This new module is necessary in order to avoid calling `eval`/`new Function` from within `handlebars` which is not allowed once `unsafe-eval` is removed from our CSP.

The `@kbn/handlebars` module is simply an extension of the main `handlebars` module which adds a new compile function called `compileAST` (as an alternative to the regular `compile` function). This new function will not use code-generation from strings to compile the template but will instead generate an AST and return a render function with the same API as the function returned by the regular `compile` function.

This is a little bit slower method, but since this is only meant to be used client-side, the slowdown should not be an issue.

The following limitations exists when using `@kbn/handlebars`:

The Inline partials handlebars template feature is not supported.

Only the following compile options will be supported:
- `knownHelpers`
- `knownHelpersOnly`
- `strict`
- `assumeObjects`
- `noEscape`
- `data`

Only the following runtime options will be supported:
- `helpers`
- `blockParams`
- `data`

Closes #36311
2022-05-23 11:01:56 -07:00
Vadim Kibana
e857b30f8a
remove human-readable automatic slug generation (#132593)
* remove human-readable automatic slug generation

* make change non-breaking

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* remove test

Co-authored-by: streamich <streamich@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-20 20:36:59 +02:00
Byron Hulcher
065ea3e772
[Workplace Search] Remove Custom API Source Integration tile (#132538) 2022-05-20 13:12:49 -04:00
Sébastien Loix
8c19c36b36
[Content management] Surface "Last updated" column in Saved object management (#132525) 2022-05-20 01:46:09 -07:00
Tre
42eec11a8d
Rebalance dashboard group 1 (#132193)
Split a group of the files to group 6.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-19 22:12:22 +01:00
Kibana Machine
9814c8515d skip failing test suite (#132553) 2022-05-19 15:41:38 -05:00
Kibana Machine
ee81580020 skip failing test suite (#132288) 2022-05-19 14:16:49 -05:00
Hannah Mudge
8de3401dff
[Controls] Field first control creation (#131461)
* Field first *creation*

* Field first *editing*

* Add support for custom control options

* Add i18n

* Make field picker accept predicate again + clean up imports

* Fix functional tests

* Attempt 1 at case sensitivity

* Works both ways

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Clean up code

* Use React useMemo to calculate field registry

* Fix functional tests

* Fix default state + control settings label

* Fix functional tests

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-19 09:12:00 -07:00
Muhammad Ibragimov
b7866ac7f0
[Console] Refactor retrieval of mappings, aliases, templates, data-streams for autocomplete (#130633)
* Create a specific route for fetching mappings, aliases, templates, etc...
* Encapsulate data streams

* Encapsulate the mappings data into a class
* Setup up autocompleteInfo service and provide its instance through context
* Migrate the logic from mappings.js to Kibana server
* Translate the logic to consume the appropriate ES client method
* Update related test cases

* Lint

* Address comments

* Fix server proxy/mock

* Add API integration tests for /api/console/autocomplete_entities

* Lint

* Add tests
* Add API integration tests for autocomplete_entities API
* Add deleted tests

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-19 14:30:59 +05:00
John Dorlus
b29c645bda
Fix for Console Test (#129276)
* Added some wait conditions to ensure that the comma is present before trying to make assertion.

* Added check to verify inner html.

* Switched wait to retry.

* Fixed duplicate declaration.

* Fixed PR per nits.
2022-05-18 19:29:30 -04:00
Catherine Liu
9b361b0a36
[Controls] Improved validation for Range Slider (#131421)
* Ignores validation in range slider UI

* Check if range filter results in no data before applying filter

* Ignores validation in range slider UI

* Check if range filter results in no data before applying filter

* Trigger range slider control update when ignoreValidation setting changes

* No longer disable range slider num fields when no data available

* Fix functional test

* Only add ticks and levels if popover is open

* Simplify query for validation check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-18 14:41:27 -07:00
Stratoula Kalafateli
465c419902
[Visualize] Renders no data component if there is no ES data or dataview (#132223)
* [Visualize] Renders no data component if there is no ES data or dataview

* Fix types

* Adds a functional test

* Fix FTs

* Fix

* Fix no data test

* Changes on the dashboard save test

* Add a loader before the data being fetched

* Add check for default dataview

* A small nit

* Address PR comments
2022-05-18 18:00:31 +03:00
John Dorlus
605020d79c
Migrating Dashboard TimePicker Tests To Use CCS (#130286)
* Migrated_Dashboard_TimePicker_Tests_To_Use_CCS

* Added dashboard to the config file.

* Flipped ccs switch conditional.

* Added CCS test to its own small describe block for readability.

* Added conditional for data.

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Fixed CCS dashboard test.

* Removed file that should have been removed via merge.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-18 00:11:52 -04:00
Catherine Liu
6375d90683
[Controls] Decouple control fixed width and auto size settings (#131769)
* Decouple control auto sizing and control width

* Add grow control setting to control group settings flyout

* Set min-width style for each control size

* Remove width settings from control group settings

* Add media query to remove min-widths in small viewport

* Fix grow state management

* Fix i18n errors

* Fix control group settings functional tests

* Updated control width label and move tooltip icon

* Use euiBreakpoints for media queries

* Removed tooltip

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-17 11:30:25 -07:00
Corey Robertson
25d4fdd6df
[Input Controls] Enable new input controls by default (#131341)
* Enable new input controls by default

* Fix snapshot tests

* Stop controls callout appearing on reports
2022-05-17 13:14:11 -04:00
Spencer
f3d69b8197
[@kbn/dev-utils] break out more pieces (#132292)
* [@kbn/dev-utils] break out more pieces

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-17 11:19:20 -05:00
Joe Reuter
7f6f777fd8
[Lens] Check whether metric is filterable (#132043) 2022-05-17 16:24:56 +02:00
Maja Grubic
9dd38c49d3
[Discover] Add Analytics No Data Page (#131965)
* [Discover] Add Analytics No Data Page

* Make showEmptyPrompt parameter optional

* Remove unused import

* Remove unnecessary test

* Fix test

* Update failing test?

* Update failing test

* Changing the order of functional tests

* Fix error handling

* Addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-17 15:50:57 +02:00
Jonathan Budzenski
4cfa1c8ac2
[artifacts] Enable Cloud smoke tests (#132158)
* [artifacts] Enable Cloud smoke tests

* login selection for cloud

* fix config path

* fix protocol

* fix url

* cleanup

* fix syntax

* logs

* fix username

* update

* -r

* revert unused
2022-05-16 15:00:07 -05:00
Bhavya RM
ee22d7ea94
Adding a11y tests for the new data grid in discover (#131854) 2022-05-16 13:02:16 -04:00
Hannah Mudge
595522b5c2
[Controls] [Dashboard] Allow existing controls to change type (#129385)
* Replace is half working

* Child embeddable listens for change in type

* Fix control order on replace

* Fix factory & remove duplicated onPanelAdded/Removed

* Comments + clean up code

* Set invalid editor state on type change

* Add functional tests and clean test code

* Comment out time slider tests

* Remove getReplacementPanelState

* Fix promise syntax

* Fix mutation

* Fix flaky test

* Fix conflicts
2022-05-12 11:36:40 -07:00
Devon Thomson
11ae98d812
[Dashboard][Controls] Make Text Field Based Options List Controls Case Insensitive (#131198)
* Adds case insensitive search and run past timeout option
2022-05-12 13:22:30 -04:00
Jonathan Budzenski
179cf309ec
[artifacts testing] Re-enable FTR smoke tests (#132076)
* [artifacts testing] Re-enable FTR smoke tests

* --quiet

* docker disable chromium sandbox

* newline
2022-05-12 08:03:39 -07:00
Stratoula Kalafateli
5603c94568
Controls fixes the flakiness (#132107) 2022-05-12 17:36:55 +03:00
Dzmitry Lemechko
80427ea1ba
[scalability testing] extend FTR config with optional scalability configuration (#132047)
* [scalability testing] extend FTR config

* update schema with defaults for testData
2022-05-11 20:29:30 +02:00
spalger
4e2989bf10 skip failing suite (#132049) 2022-05-11 12:04:46 -05:00
spalger
410f5cd369 prevent failure screenshot names from being over 100 characters in length 2022-05-11 12:03:16 -05:00
Spencer
67376ed53e
[eslint] add rule for auto-fixing unused imports (#131772)
* [eslint] add rule for auto-fixing unused imports

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Update index_table.test.js

* Update follower_indices_list.test.js

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-11 11:16:48 -05:00