Commit graph

41848 commits

Author SHA1 Message Date
Candace Park bd9feb921d
[Security Solution][Endpoint][Host Isolation] Isolation status badge from alert details (#102274) (#102686) 2021-06-21 00:19:31 -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
Tiago Costa 3cfbe71203
[7.x] chore(NA): moving @kbn/ui-shared-deps into bazel (#101669) (#102666)
* 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>
# Conflicts:
#	test/scripts/jenkins_build_kibana.sh

* chore(NA): last file containing old path for metrics.json file
2021-06-18 20:39:29 -04:00
Nik Richers 9e924a6da3
Add email connector info for Elastic Cloud (#91363) (#102673)
* Move content into new location to fix merge conflict

* Add whitelisting callout
2021-06-18 15:49:00 -07:00
Tiago Costa 116a4aa3da
skip flaky suite (#102366) 2021-06-18 23:36:02 +01:00
Kibana Machine d3a2168cb7
[Workplace Search] remove or replace xs props for text on source connect view (#102663) (#102670)
* remove xs props for text on source connect view

* change more text sizes

Co-authored-by: Kuldeep M <crudetoaster@gmail.com>
2021-06-18 18:20:41 -04:00
Vadim Dalecky 78cd3dd357
Do not double register dashboard url generator (#102599) (#102668)
Co-authored-by: Vadim Kibana <vadimkibana@gmail.com>

Co-authored-by: Vadim Kibana <vadimkibana@gmail.com>
2021-06-18 17:35:52 -04:00
Alexey Antonov 42cae32d41
[TSVB] Index pattern select field disappear in Annotation tab (#102314) (#102653)
* [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>

Co-authored-by: Diana Derevyankina <54894989+DziyanaDzeraviankina@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-18 16:46:46 -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 b4cd270e93
[Discover] Update kibana.json adding owner and description (#102292) (#102659)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-06-18 13:45:24 -04:00
Pablo Machado b724ea2667
Enhance cases bulk deletion action dialog message (#101403) (#102658)
Differentiate the dialog message on the deletion of one item from the deletion of multiple items.
Simplifies CasesTableUtilityBar by handling the selection of multiple and single cases in the same way.
2021-06-18 13:30:15 -04:00
Candace Park 381e6983ee
[Security Solution][Endpoint][Host Isolation] Fixes bug where host isolation/unisolation works from alert details (#102581) (#102649) 2021-06-18 12:34:10 -04:00
Alexey Antonov ecee04010e
TSVB visualizations with no timefield do not render after upgrading from 7.12.1 to 7.13.0 (#102494) (#102641)
* 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 11:03:04 -04:00
Kibana Machine c07f1f765a
[Logs UI] Add event.original fallback to message reconstruction rules (#102236) (#102639)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-06-18 10:58:09 -04:00
Kibana Machine 013e6b4623
[ML] Remove blank job definition as it is unused and out-of-sync with Elasticsearch (#102506) (#102620)
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.

Co-authored-by: David Roberts <dave.roberts@elastic.co>
2021-06-18 08:20:24 -04:00
Kibana Machine bb6463bd7b
[APM-UI][e2e] discard CI builds more often (#102217) (#102614)
Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
2021-06-18 07:22:04 -04:00
Kibana Machine 0e04be09f9
[Lens] Fix wrong error detection on transition to Top values operation (#102384) (#102611)
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-18 06:51:55 -04:00
Kibana Machine ef5da0fa6c
[ML] Anomaly detection job custom_settings improvements (#102099) (#102609)
* [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>

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-06-18 06:37:46 -04:00
Christos Nasikas d9f209cd0a
[Cases] Route: Get all alerts attach to a case (#101878) (#102604)
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
2021-06-18 06:12:00 -04:00
Kibana Machine e7f40c39f6
Fixes wrong list exception type when creating endpoint event filters list (#102522) (#102601)
Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-18 05:41:43 -04:00
Shahzad d08dafeb39
[7.x] [User Experience App] Use filters shared component (#101459) (#102545)
* [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>

* update files

Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-18 05:18:07 -04:00
Kibana Machine 8586be5ee9
remove search bar that's not working yet (#102550) (#102596)
fixes elastic/kibana/issues/102469

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
2021-06-18 04:38:04 -04:00
Kibana Machine 711da58afc
Migrated Ingest Node Pipeline Functional Tests to use test_user (#102409) (#102593)
* 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>

Co-authored-by: John Dorlus <silne.dorlus@elastic.co>
2021-06-18 01:26:17 -04:00
Kibana Machine 0ef60b4f19
[Maps] clean up feature editing name space to avoid conflicts with layer settings editing (#102516) (#102591)
* [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

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-06-17 23:58:06 -04:00
Kibana Machine 2ffcc767e1
[canvas] Refactor Storybook from bespoke to standard configuration (#101962) (#102589)
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
2021-06-17 21:05:55 -04:00
Kibana Machine c05cb5326a
[Workplace Search] Convert Groups pages to new page template (#102449) (#102566)
* 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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-17 18:11:37 -04:00
Chris Roberson 3f8093280a
[Alerting] Add event log entry when a rule starts executing (#102001) (#102558)
* 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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 18:03:18 -04:00
Kibana Machine 2f0b2954dd
[Security Solution][Endpoint] Suppress some of the jest console.error noise created by endpoint list middelware (#102535) (#102561)
* 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

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-06-17 17:18:09 -04:00
Kibana Machine cb18f07629
[Fleet] Improve performance of Fleet setup (#102219) (#102559)
* 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>

Co-authored-by: Alejandro Fernández Gómez <alejandro.fernandez@elastic.co>
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-06-17 21:07:15 +00:00
Kibana Machine 6af72cdf7c
[Fleet] Update docker image of registry used in integration tests (#101911) (#102560)
## 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

Co-authored-by: John Schulz <john.schulz@elastic.co>
2021-06-17 17:05:35 -04:00
Kibana Machine e496e8572b
[Asset Management] Osquery telemetry updates (#100754) (#102557)
* 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>

Co-authored-by: Bryan Clement <bclement01@gmail.com>
2021-06-17 16:59:48 -04:00
Kibana Machine 22762a8c1b
Converts saved object tagging to new management layout (#102284) (#102555)
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-06-17 16:52:31 -04:00
Kibana Machine 0cc2aad4ab
[Fleet] Sync hash history with Kibana scoped history (#102523) (#102546)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-17 16:06:38 -04:00
James Rodewig 5164455ddd
[DOC] Add experimental disclaimer to rollup jobs (#95624) (#102562)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: François-Clément Brossard <renshuki@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 13:00:50 -07:00
Kibana Machine 973817d9c9
Upgrade ws v7.4.2 to v7.4.6 (#102198) (#102543)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-06-17 16:00:20 -04:00
Maja Grubic c238029ddb
[Discover] Hide multi fields in Doc Viewer (#101929) (#102541)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 15:22:15 -04:00
Ryland Herrick 164ed8497d
[Security Solution] kbn package for generic hook utils (#101976) (#102539)
* 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>
# Conflicts:
#	package.json
2021-06-17 15:21:40 -04:00
Kibana Machine 90424933ed
Converts Saved Object Management to the new management layout (#102281) (#102536)
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-06-17 15:10:36 -04:00
Steph Milovic a78a84dd20
[Security Solution] [Cases] Various Cases cleanups (#102103) (#102534) 2021-06-17 15:01:42 -04:00
Kibana Machine a499e98bed
[Workplace Search] Convert Settings pages to new page template (#102445) (#102532)
* 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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-17 18:47:54 +00:00
Kibana Machine 8b6d1b4765
[Workplace Search] Convert Overview & Security pages to new page template (#102444) (#102530)
* 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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-17 18:37:56 +00:00
Lisa Cawley 5f35d37b7f
[DOCS] Updated Kibana alerting/rules language (#101977) (#102548) 2021-06-17 11:37:44 -07:00
Kibana Machine fb86308996
Fix logout link not working on local dev (#102451) (#102529)
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-17 14:13:32 -04:00
Sandra Gonzales 6a80ff65cc
fix node id comparison (#101941) (#102527)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 13:57:45 -04:00
Kibana Machine db905b69f9
[docker] Audit of missing settings (#102504) (#102526)
Discovered the banner settings were missing and took the time to audit
the settings to ensure everything in the docs is present.

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

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-17 17:56:55 +00:00
Kibana Machine 1e63e8b22b
[Security Solution] Endpoint Pending Action full count (#102502) (#102524)
Co-authored-by: Dan Panzarella <pzl@users.noreply.github.com>
2021-06-17 13:56:48 -04:00
Jean-Louis Leysens 1f2a199707
[Fleet] Add packages to global search results (#102227) (#102518)
* added public-side implementation for package search

* added a test for the new search results provider and updated behaviour

* added comment about open issue regarding hash router in fleet

* fixed jest tests

* refactor to reduce size of if statement

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	rfcs/text/0011_global_search.md
2021-06-17 13:04:47 -04:00
Kibana Machine 37a9d12a54
Add xpack.cloud.full_story configuration (#102363) (#102513)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-06-17 12:31:24 -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
Kibana Machine e27b86f7ba
[ML] Functional tests - fix and re-enable module API tests (#102477) (#102510)
This PR fixes and re-enables the temporarily skipped API test suite for ML modules.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-17 12:22:56 -04:00