Commit graph

43647 commits

Author SHA1 Message Date
Tiago Costa 29e90f5602
skip flaky suite (#102183) 2021-06-21 12:14:29 +01:00
Marius Dragomir c6f5f84975
fix flakiness and change screenshot size to remove scroll (#102521)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 06:52:16 -04:00
Robert Oskamp 7d4ca1af33
[ML] Functional tests - remove duplicate archive load (#102701)
This PR removes the duplicate load of the `event_rate_nanos` archive in the `data_nanos_job` test suite.
2021-06-21 12:50:56 +02:00
Dario Gieselaar 02033e2b4b
Move ES aggregation types to src/core (#102597) 2021-06-21 11:11:15 +01:00
Pierre Gayvallet 0561648156
improve migration transform failure message and stacktrace (#102478)
* improve migration failure message and stacktrace

* remove console.log

* fix unit tests

* fix integration tests

* fix more unit tests
2021-06-21 10:35:15 +02:00
Pierre Gayvallet 59d7f33115
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
2021-06-21 10:06:54 +02:00
Tiago Costa 693823f8c5
skip flaky suite (#102366) 2021-06-18 23:35:30 +01:00
Candace Park 55b35fdf14
[Security Solution][Endpoint][Host Isolation] Isolation status badge from alert details (#102274) 2021-06-18 17:25:29 -04:00
Nik Richers db312e540d
Add email connector info for Elastic Cloud (#91363)
* Move content into new location to fix merge conflict

* Add whitelisting callout
2021-06-18 13:45:36 -07:00
Kuldeep M 31aa1c8a59
[Workplace Search] remove or replace xs props for text on source connect view (#102663)
* remove xs props for text on source connect view

* change more text sizes
2021-06-18 21:11:25 +01:00
Vadim Dalecky 32f3d0fda7
Do not double register dashboard url generator (#102599)
Co-authored-by: Vadim Kibana <vadimkibana@gmail.com>
2021-06-18 21:31:04 +02:00
Yaroslav Kuznietsov a7444835dd
[TSVB] Replaces EuiCodeEditor 👉 Monaco editor (#100684)
* С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>
2021-06-18 21:25:11 +03:00
Matthias Wilhelm 61b6496476
[Discover] Update kibana.json adding owner and description (#102292) 2021-06-18 17:37:51 +02:00
Shahzad 303806de65
[Exploratory View] Mobile experience (#99565)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Bryce Buchanan <bryce.buchanan@elastic.co>
Co-authored-by: Alexander Wert <alexander.wert@elastic.co>
2021-06-18 17:30:53 +02:00
Tiago Costa cee33b004c
chore(NA): moving @kbn/ui-shared-deps into bazel (#101669)
* chore(NA): moving @kbn/io-ts-utils into bazel

* chore(NA): moving @kbn/ui-shared-deps into bazel

* chore(NA): compelte working build for @kbn/ui-shared-deps

* chore(NA): solve eslint problems

* chore(NA): solve typechecking

* chore(NA): debugger changes

* chore(NA): update optimizer basic integration tests

* chore(NA): ship kbn/ui-shared-deps metrics.json from new location at shared_built_assets

* chore(NA): use correct ui-shared-deps metrics file location

* chore(NA): remove webpack bazel config

* chore(NA): implement improvements on webpack config

* chore(NA): remove extra comment

* chore(NA): try esbuild-loader minimizer

* Revert "chore(NA): try esbuild-loader minimizer"

This reverts commit bffc49aaae.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-18 16:09:31 +01:00
Diana Derevyankina 853de830c2
[TSVB] Index pattern select field disappear in Annotation tab (#102314)
* [TSVB] Index pattern select field disappear in Annotation tab

* Refactor AnnotationsEditor and move renderRow logic into AnnotationRow

* Remove duplicated license, add useCallback to functions in AnnotationRow, remove cross refecrence and update types

* Refactor AnnotationEditor and AnnotationRow

* refactoring

* remove extra props

* fix nits

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-06-18 17:32:17 +03:00
Candace Park d65416c60c
[Security Solution][Endpoint][Host Isolation] Fixes bug where host isolation/unisolation works from alert details (#102581) 2021-06-18 10:26:10 -04:00
Alexey Antonov b9f64b7825
TSVB visualizations with no timefield do not render after upgrading from 7.12.1 to 7.13.0 (#102494)
* TSVB visualizations with no timefield do not render after upgrading from 7.12.1 to 7.13.0

Part of: #100778

* fix CI
2021-06-18 15:57:33 +03:00
Felix Stürmer ee1710cf39
[Logs UI] Add event.original fallback to message reconstruction rules (#102236)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-18 14:50:58 +02:00
David Roberts e518865225
[ML] Remove blank job definition as it is unused and out-of-sync with Elasticsearch (#102506)
This a companion to elastic/elasticsearch#74188.

This PR is functionally a no-op, as the removed method
was not called anywhere. But it is sensible to remove
it to prevent it being called in the future now that it
references fields that don't exist in Elasticsearch.
2021-06-18 10:49:28 +01:00
Marco Liberati ae99824880
[Lens] Fix wrong error detection on transition to Top values operation (#102384) 2021-06-18 10:45:23 +02:00
James Gowdy 0ef1c3d735
[ML] Anomaly detection job custom_settings improvements (#102099)
* [ML] Anomaly detection job custom_settings improvements

* filter improvements

* translations

* fixing types

* fixing tests

* one more test fix

* fixing bug with expanded row

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-18 09:31:29 +01:00
Christos Nasikas 7267f505a5
[Cases] Route: Get all alerts attach to a case (#101878)
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
2021-06-18 10:57:17 +03:00
David Sánchez a8020ddb89
Fixes wrong list exception type when creating endpoint event filters list (#102522) 2021-06-18 09:33:25 +02:00
Ashokaditya 6672baf9a2
remove search bar that's not working yet (#102550)
fixes elastic/kibana/issues/102469
2021-06-18 08:31:58 +02:00
John Dorlus 7e04e1795c
Migrated Ingest Node Pipeline Functional Tests to use test_user (#102409)
* Used test user and added appropriate kibana privileges for Ingest Node Pipeline functional tests.

* Updated ingest pipelines test config to have read permissions in advanced settings.

* Updated test to account for the fact that advanced settings will be visible due to kibana permissions.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 23:18:37 -04:00
Nathan Reese eea78b7737
[Maps] clean up feature editing name space to avoid conflicts with layer settings editing (#102516)
* [Maps] clean up feature editing name space to avoid conflicts with layer settings editing

* update vector_source

* mvt_single_layer_vector_source udpates

* review feedback
2021-06-17 19:52:31 -06:00
Clint Andrew Hall 08ba5b3f4b
[canvas] Refactor Storybook from bespoke to standard configuration (#101962) 2021-06-17 18:57:44 -04:00
Ece Özalp b5f0bc9faa
[Security Solution] adds wrapSequences method (RAC) (#102106)
adds wrapSequences method
2021-06-17 16:54:38 -04:00
Tyler Smalley 00c180787f
[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>
2021-06-17 16:47:00 -04:00
Caroline Horn e4833514e9
[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`.
2021-06-17 16:18:54 -04:00
Constance 02c1c61828
[Workplace Search] Convert Groups pages to new page template (#102449)
* Convert Groups page to new page template

* Convert Groups > Group overview to new page template

- Because dataLoading is no longer an early return, certain items need to be converted to conditional checks in order for the app to not crash

* Convert Groups > source prioritization to new page template

* Convert Group subnav to EuiSideNav format

* Update routers
2021-06-17 16:01:24 -04:00
François-Clément Brossard 8270959760
[DOC] Add experimental disclaimer to rollup jobs (#95624)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 15:51:01 -04:00
Paul Tavares a24d3a705f
[Security Solution][Endpoint] Suppress some of the jest console.error noise created by endpoint list middelware (#102535)
* Mock KibanaServices with services from app context renderer + fix error noise in endpoint host tests
* silence more error noise to the console
* Added options to the ApiHandlerMock function to be able to suppress errors to the console
* Endpoint list - Refactor Fleet mocks for reuse
* Add default http mocks to the app context render test utility
2021-06-17 15:11:38 -04:00
Alejandro Fernández Gómez cd5cd65fb2
[Fleet] Improve performance of Fleet setup (#102219)
* Remove endpoint from the default packages

* Change the default spinner for the initial load

* Export fleet endpoint package as a constant

* Use constants for special packages

* Simplify type signature of `isRequiredPackage`

* Remove unused types

* Simplify required and default package definitions

* Treat REQUIRED_PACKAGES as independent from DEFAULT_PACKAGES

We want to keep the assumption that the lists contain the same packages
only in `epm/constants.ts`

* Install all default packages, not only the required ones

* Document the purpose of each package list

* Handle auto-update for non-default packages

* Make `endpoint` non-removable

* Make endpoint package be installed by default in tests

* Rename requiredPackages to unremovablePackages

* Fix type check

* Add Endpoint to be installed by default on Fleet tests too

Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-06-17 11:58:41 -07:00
Chris Roberson 9bbb9e4128
[Alerting] Add event log entry when a rule starts executing (#102001)
* Add event log entry when a rule starts executing

* Add in alertId

* Add more logging and fix tests

* Use existing startTiming logic

* Add additional tests
2021-06-17 14:58:13 -04:00
John Schulz db34f0c6af
[Fleet] Update docker image of registry used in integration tests (#101911)
## Summary

 * Use a more recent Docker image for package registry used in integration/API tests. 
    * [New image](https://container-library.elastic.co/r/package-registry/distribution:fc104ac437370d80518e24da6d0b84370edf0c0c) is from Jun-14 [old image](https://container-library.elastic.co/r/package-registry/distribution:b6a53ac9300333a4a45f3f7d350c9aed72061a66) is from Apr-14
 * Add support for using a custom Docker registry using `FLEET_PACKAGE_REGISTRY_DOCKER_IMAGE` env var
    * e.g. `production` tag
    ```
    FLEET_PACKAGE_REGISTRY_DOCKER_IMAGE='docker.elastic.co/package-registry/distribution:production' FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner
    ```
    or a personal one
    ```
    FLEET_PACKAGE_REGISTRY_DOCKER_IMAGE='docker.elastic.co/employees/jfsiii/package-registry-distribution:kb90454' FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner

    ```

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-06-17 14:55:17 -04:00
Bryan Clement 62f3a55cd8
[Asset Management] Osquery telemetry updates (#100754)
* first pass of basic osquery usage stats collection

* updates, linting

* updated exported metrics

* clean up comments, add description fields to metric fields

* reworked types

* actually use the updated types

* added tests around the route usage recoder functions

* review comments

* update aggregate types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 14:53:27 -04:00
Christiane (Tina) Heiligers 557a658545
Converts saved object tagging to new management layout (#102284) 2021-06-17 14:46:30 -04:00
Lisa Cawley e3454ead84
[DOCS] Updated Kibana alerting/rules language (#101977) 2021-06-17 11:14:12 -07:00
Nicolas Chaulet b8153946c7
[Fleet] Sync hash history with Kibana scoped history (#102523) 2021-06-17 13:57:35 -04:00
Thomas Watson dc5972cc4a
Upgrade ws v7.4.2 to v7.4.6 (#102198) 2021-06-17 10:33:30 -07:00
Shahzad 4d474bfe4d
[User Experience App] Use filters shared component (#101459)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 19:19:16 +02:00
Maja Grubic 0cf0eab6e0
[Discover] Hide multi fields in Doc Viewer (#101929)
* Add multifields flag in the Advanced settings

* Implement hiding of multifields

* Update failing unit test

* Fix telemetry

* Show muti fields in a single doc view

* Mock getServices so that tests pass

* Readd fields to sidebar

* Removing showMultifields flag from angular

* Remove unnecessary import

* Applying text changes according to Gails suggestion

* Fix i18n error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 18:13:53 +01:00
Ryland Herrick ac07ebba87
[Security Solution] kbn package for generic hook utils (#101976)
* Adds boilerplate for new hook-utils package

* Move existing, identified utils into our hook-utils package

Updates references, and fixes a few missing config that were preventing
packages from building.

* Extracts a common type and adds a little more JSdoc for clarity

* Adds new useObservable hook

Similar to useAsync (a nearly identical interface), this is meant to
wrap a thunk returning an observable, allowing conditional invocation
and progressive updates as the observable continues to emit.

* Remove orphaned test

This function (and its tests) were moved to the hook-utils package; this
was simply missed.

* Remove optional chaining from kbn package

The build system does not currently support these typescript features.
While a valid fix would also have been to build separate browser and
node targets a la #99390, the use here was very minimal and so changing
to a supported syntax was the most pragmatic fix.

* Update old reference in test file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 12:09:17 -05:00
Christiane (Tina) Heiligers a0effa1ebd
Converts Saved Object Management to the new management layout (#102281) 2021-06-17 13:04:16 -04:00
Steph Milovic 06be699862
[Security Solution] [Cases] Various Cases cleanups (#102103) 2021-06-17 10:52:04 -06:00
Constance 0e14cef4cb
[Workplace Search] Convert Settings pages to new page template (#102445)
* Convert Settings > Customize to new page template

* Convert Settings > oAuth application to new page template

+ DRY form wrappers, update test

* Convert Settings > Connectors to new page template

* Convert source config view to new page template

* Convert Settings subnav to EuiSideNav format

+ update main WS nav

* Update routers
2021-06-17 09:36:17 -07:00
Constance 1627240ff8
[Workplace Search] Convert Overview & Security pages to new page template (#102444)
* Convert WS Overview page to new page template

* Misc Overview refactors

- Fix extra spacing caused by hidden onboarding steps

- Default page title to "Organization overview" instead of to onboarding title which flashes during loading

- Prefer shallow over mount (will matter later, when WorkplaceSearchPageTemplate nav includes more kea logic)

* Convert Security page to new page template

+ misc ux enhancement disabling header actions while data is still loading
2021-06-17 09:28:14 -07:00
Constance e8c16e310f
Fix logout link not working on local dev (#102451) 2021-06-17 09:08:51 -07:00