Commit graph

16498 commits

Author SHA1 Message Date
Tiago Costa 7c429f725e
chore(NA): moving @kbn/storybook into bazel (#102731)
* chore(NA): moving @kbn/storybook into bazel

* chore(NA): add some typing changes

* chore(NA): rename typings file

* chore(NA): fix typescript configs to build storybooks

* chore(NA): fix eslint and typechecking
2021-06-21 20:17:54 +01:00
Bhavya RM 1d89744697
Test for role specific access to non-default space (#101653) 2021-06-21 15:04:03 -04:00
Constance 1f2de03941
[App Search] Convert Engine subnav and Engine Overview pages to new page template (#102679)
* Update routers

- To facilitate this being broken up into multiple PRs, non-migrated views still get a wrapping layout

* Set up Engine subnav in EuiSideNav format

+ tweak CSS for new label - heads up that this will break the old nav, but will disappear as the pages get converted

* Convert Engine Overview pages to new page template

* [PR feedback] Code comment explaining side nav icon reorder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 11:59:52 -07:00
Wylie Conlon 3b0be1bbf5
[Lens] Error on array values in math (#102371)
* [Lens] Error on array values in math

* Update error messages

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 14:45:35 -04:00
Marius Dragomir 3662cf4092
[QA] Changes the telemetry banner dismiss location (#102721)
* change telemetry banner dismiss location

* use dismissBanner method instead

* Update _metricbeat_dashboard.js

* Update _maps.ts

* Update _maps.ts

* Update _metricbeat_dashboard.js
2021-06-21 14:33:12 -04:00
ymao1 6c699a562c
[Alerting] Updating audit event terminology (#102263)
* Updating audit terminology

* Fixing unit tests

* Updating audit docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 14:17:44 -04:00
Bryan Clement 4c700aba8a
Osquery telemetry usage bug (#102762)
* guard for null metrics query

* added some tests for the beat usage metric extraction function
2021-06-21 13:47:15 -04:00
Constance ceaf9f6242
Convert EuiCards to non-shadowed defaults to avoid nested panel/shadows (#102680)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 10:33:22 -07:00
Marco Liberati 6f2a97b0e8
[Lens] Fix formula functional test (#102749) 2021-06-21 19:17:48 +02:00
Scotty Bollinger 49271f30d0
[Workplace Search] Replace library interface with EUI (#102758)
One of the Workplace Search components was using the 'react-beautiful-dnd' typing for it’s component. This PR relpaces it with the EUI equivalent.
2021-06-21 13:14:42 -04:00
Steph Milovic 491b0d1d0b
[Observability] [Cases] Fix Cases navigation (#102429) 2021-06-21 10:54:46 -06:00
Constance 79b0949d34
[App Search] Convert Engines overview & engine creation to new page template (#102677)
* Convert Engine Creation page to new page template

+ simplify EuiForm/form to 1 level of nesting

* Convert Meta Engine Creation page to new page template

* Initial conversion of Engines overview to new page template

* Engines Overview: simplify loading & empty state to use new page template props

* Engines Overview: simplify header

- now that the header/actions, chrome/telemetry, & empty state etc. are all DRY'd out by the template, there's no need for a separate header component
- we can simply dry out the header action, which will shortly be removed with the 7.14 launch

- note: for empty state changes: mostly indenting, the new template automatically creates a subdued panel for us in empty state so no need to include one manually

* Fix broken test mocks

I definitely should not have been importing the index file I'm mocking, but why did this only break now?? :psyduck:

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 12:36:16 -04:00
Jonathan Buttner 3589ade859
Adding refresh to ensure status is updated (#102742) 2021-06-21 12:29:37 -04:00
Kyle Pollich 773647e4f5
[Integrations UI] Add updated integrations subtitle (#102738)
* Add updated integrations subtitle

* Fix header image declarations

* Use theme hook for dark mode setting
2021-06-21 12:13:23 -04:00
Corey Robertson d82d1ebef7
Fixes issue with undo/redo (#101954)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 12:11:36 -04:00
Alison Goryachev 863e7091dd
[Ingest Node Pipelines] Remove default value for error_distance param (#102222) 2021-06-21 12:09:57 -04:00
Casper Hübertz 17e496c6b2
[APM] Errors: Fix panels styles (#102734) 2021-06-21 16:44:06 +02:00
Christos Nasikas 13671c45f2
[Cases] Add owner and description properties to kibana.json (#102707) 2021-06-21 17:38:26 +03:00
Robert Oskamp e97cfad385
[ML] Functional tests - stabilize module tests (#102708)
This PR stabilizes the `setupModule` API tests by increasing the timeout for the jobs to finish.
2021-06-21 16:11:28 +02:00
Mikhail Shustov f3ec948bee
Cleanup outdated @elastic/elasticsearch client type errors (#101741)
* fix errors and update comments in Core

* fix errors or update comments in Security plugin

* update spaces test

* update task_manager files

* update comments in monitoring plugin

* fix errors in update comments in security_solutions

* fix errors and update comments in data_enhanced

* update fleet code

* update infra code

* update comment in trigger_actions_ui

* update comment in lens

* update comments in ES-UI code

* update typings for search

* update monitoring

* remove outdated export
2021-06-21 10:03:00 -04:00
Nicolas Chaulet 307a5b2e93
[Fleet] Use docLinks service to link to the doc (#102660) 2021-06-21 09:46:56 -04:00
Tiago Costa fa8ab2a020
skip flaky suite (#102722) 2021-06-21 12:25:12 +01:00
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 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
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
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
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
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
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
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
Nicolas Chaulet b8153946c7
[Fleet] Sync hash history with Kibana scoped history (#102523) 2021-06-17 13:57:35 -04: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
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
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
Sandra Gonzales ae411dd1e9
fix node id comparison (#101941)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 11:52:51 -04:00
Dan Panzarella 9be0d4d5ad
[Security Solution] Endpoint Pending Action full count (#102502) 2021-06-17 11:47:26 -04:00
Jonathan Budzenski c79519a90f skip flaky suite. #102332 2021-06-17 10:34:00 -05:00
Josh Dover 97feae3d1b
Add xpack.cloud.full_story configuration (#102363) 2021-06-17 10:25:32 -04:00
Josh Dover 02971177cc
Display Kibana overall status in the logs and have FTR wait for green status before running tests (#102108) 2021-06-17 10:19:07 -04:00
Robert Oskamp a9d7431b45
[ML] Functional tests - fix and re-enable module API tests (#102477)
This PR fixes and re-enables the temporarily skipped API test suite for ML modules.
2021-06-17 16:13:10 +02:00
Søren Louv-Jansen ca523479d1
[APM] Remove omitEsFieldValue and update parseEnvironmentUrlParam (#101876) 2021-06-17 15:54:05 +02:00
Marco Liberati 421493c57a
[Lens] More memoization work on the editor_frame (#102186)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 15:47:08 +02:00
Jean-Louis Leysens 7a08bd8b69
[Fleet] Add packages to global search results (#102227)
* 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>
2021-06-17 15:45:28 +02:00
Aaron Caldwell 246e7be3e5
[Maps] Add layer edit controls (#99812)
Co-authored-by: miukimiu <elizabet.oliveira@elastic.co>
2021-06-17 09:21:45 -04:00
Søren Louv-Jansen d57ffce8ec
[APM] Show JVM tab for Java Otel agent (#102346) 2021-06-17 08:56:04 -04:00
Tiago Costa 9569fe0561
skip flaky suite (#101454) 2021-06-17 13:00:22 +01:00
Søren Louv-Jansen 17e264e55e
[APM] Fix SVG rendered agent icon in Service Map, and improve storybook for icons (#102182) 2021-06-17 06:24:39 -04:00
Joe Reuter 84e86763f4
[Lens] Formula time shift (#101718) 2021-06-17 12:17:45 +02:00
Ashokaditya 1445aaa964
Do not show activity log error popups (#102450)
we show an empty state on the actions log tab anyway

refs 2dd22ed92b

fixes elastic/kibana/issues/102335
2021-06-17 12:13:03 +02:00
Marco Liberati 7f625530fb
[Lens] Add some more documentation for dynamic coloring (#101369)
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 10:27:25 +02:00
Sergi Massaneda d92ddf4b70
hide not searchable results when no term (#102401) 2021-06-17 10:17:17 +02:00
Marco Liberati 4447ca2a16
[Lens] Fix Formula functional test with multiple suggestions (#102378) 2021-06-17 10:14:29 +02:00
Esteban Beltran a83d0e7f9a
Fix trusted apps modified by field displayed as a date field (#102377)
Fixes https://github.com/elastic/kibana/issues/102308
2021-06-17 09:40:16 +02:00
mgiota fd5883b465
update readme of logs-metrics-ui (#101968) 2021-06-17 08:28:34 +02:00
Nathan L Smith 6113520470
Refactor observability plugin breadcrumbs (#102290)
Previously the observability plugin set the page title and breadcrumbs in the main app rendering component based on the `breadcrumb` property of the current route.

In addition, there's a `useBreadcrumb` hook used by the UX app, exploratory view, and cases.

The conflict between these was creating situations where neither would work and the breadcrumbs would just show "Kibana".

Remove the breadcrumb properties from the routes and the main app breadcrumb handling and just use `useBreadcrumb` on all pages.

Fixes #102131.
2021-06-17 00:27:23 -05:00
Matthew Kime bfca0c3197
[Index Patterns] Move rollup config to index pattern management v2 (#102285)
* move rollup config to index pattern management
2021-06-16 20:14:28 -05:00
Paul Tavares 2507d37e37
[Security Solution][Endpoint] Isolate Action should only be available to Platinum+ licenses (#102374)
* Isolate action should only be available for platinum license
* Moved `useLicense` hook mock into `__mocks__`
2021-06-16 18:45:40 -04:00
Constance 66c9d801d5
[Enterprise Search] Set up initial KibanaPageTemplate (#102170)
* Set up shared EnterpriseSearchPageTemplate component

* Set up product-specific page templates + setPageChrome

+ misc tech debt - create AS components/layout/index.ts for imports

* Set up navigation helpers for EuiSideNav usage

- Update react_router_helpers to pass back props as a plain JS obj instead of only working with React components (+ update react components to use new simpler helper)

- Convert SideNavLink active logic to a plain JS helper

* Set up top-level product navigations

NYI: sub navigations (future separate PRs)

* Set up test_helpers for inspecting pageHeaders

- primarily useful for rightSideItems, which often contain conditional logic

* Initial example: Convert RoleMappings views to new page template

Minor refactors:
+ remove unnecessary type union
+ fix un-i18n'ed product names
+ add full stop to documentation sentence
+ add semantic HTML tags around various page landmarks (header, section)

* EUI feedback: add empty root parent section

* Revert Role Mappings union type removal

- but shenanigans it a bit to take our i18n'd shared product names (requires as const assertion)

- done to reduce merge conflicts for Scotty / make his life (hopefully) a bit easier between ent-search and Kibana

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 18:23:13 -04:00
Dominique Clarke 1cf82cbc36
[Uptime] refactor Synthetics Integration package UI (#102080)
* refactor contexts

* add http, tcp, and icmp folders

* adjust types

* adjust useUpdatePolicy hook

* adjust synthetics policy create and edit wrappers

* adjust validation

* fix typo and types

* remove typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 15:29:28 -04:00
Chris Roberson ab2a80f4b0
[Task Manager] Log at different levels based on the state (#101751)
* Log at different levels based on the state

* Fix types and add tests

* Remove unnecessary code

* Add more descriptive message

* Partially fix failing tests

* Move into separate function

* Get rid of customStatus in favor of moving the logging logic to a separate, mockable function

* Remove debug logging

* Do not log as an error if the stats are empty

* PR feedback

* Add docker whitelist

* alpha order

* English is hard

* Removing extra newline

* PR feedback around ignoring capacity estimation

* Move json utils
2021-06-16 15:20:28 -04:00
Cauê Marcondes adc95c1023
[APM] Fixing time comparison types (#101423)
* fixing time comparison types

* fixing ts issues

* addressing PR comments

* addressing PR comments

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 14:32:22 -04:00
Dario Gieselaar 8eea491412
[RAC] Update alert documents in lifecycle rule type helper (#101598)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 14:15:59 -04:00
Robert Oskamp 154150732d
[ML] Functional tests - fix and re-activate alerting flyout test (#102368)
This PR fixes the ML alerting flyout tests and re-activates it.
2021-06-16 13:42:44 -04:00
Tim Sullivan c26d178937
[Reporting] remove unused reference to path.data config (#102267) 2021-06-16 10:32:48 -07:00
Kyle Pollich 4a94156550
[Fleet + Integrations UI] Migrate Fleet UI to new tabbed layout (#101828)
* WIP: Migrate fleet to new page layout system

* Add 'Add Agent' button to agents table

* Fix flyout import in search and filter bar

* Place settings/feedback in header

* Move actions to top nav

* Fix i18n + types + unit test failures

* Remove unused props in DefaultLayout

* Fix background height in Fleet layout

This is fixed through a hack for now, because Kibana's layout doesn't
allow apps to flex the top-level wrapper via `flex: 1`. The same
behavior reported in the original issue (#101781) is present in all
other Kibana apps.

Fixes #101781

* Use euiHeaderHeightCompensation for min-height calc

* Move settings portal to app component

* Fix agent details URL in failing unit test

* Remove unreferenced overview files + update functional tests

* Remove unneeded fragment

* Remove beta badges in Fleet + Integrations

Fixes #100731

* Fix i18n

* Fix page path reference

* Fix failing tests

* Re-fix i18n post merge

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 10:29:38 -07:00
spalger 3e723045a0 remove nested skip (#100296) 2021-06-16 10:14:15 -07:00
spalger f4e0895b17 skip flaky suite (#100296) 2021-06-16 10:10:38 -07:00
spalger c8256d57bd skip flaky suite (#101984) 2021-06-16 10:07:21 -07:00
John Dorlus d2e81ee785
CIT for circle processor (renewed PR) (#102277)
* Added CITs for Circle processor.

* Fixed issue with form function using int instead of string.

* Added changed per nits.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 12:07:50 -04:00
Madison Caldwell c5e74d8241
[RAC][Security Solution] Pull Gap Remediation out of search_after_bulk_create (#102104)
* Modify threshold rules to receive a single date range tuple

* Modify threat match rules to receive a single date range tuple

* Modify custom query rules to receive a single date range tuple

* Fix up tests (partially)

* Change log message to indicate single tuple instead of array

* Bad test?

* Prevent max_signals from being exceeded on threat match rule executions

* Revert "Prevent max_signals from being exceeded on threat match rule executions"

This reverts commit ba3b2f7a382ef7c369f02c7939e1495f72d92bfe.

* Modify EQL rules to use date range tuple

* Modify ML rules to use date range tuple

* Fix ML/EQL tests

* Use dateMath to parse moments in ML/Threshold tests

* Add mocks for threshold test

* Use dateMath for eql tests
2021-06-16 11:35:07 -04:00
Liza Katz 8abb656d7f
[Kuery] Move json utils (#102058)
* Move JSON utils to utils package

* Imports from tests

* delete

* split package

* docs

* test

* test

* imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 18:15:47 +03:00
Alison Goryachev 447728ff20
[Watcher] Migrate to use new page layout (#101956) 2021-06-16 11:02:55 -04:00
Wylie Conlon bdc87409ba
[Lens] Create mathColumn function to improve performance (#101908)
* [Lens] Create mathColumn function to improve performance

* Fix empty formula case

* Fix tinymath memoization

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 10:35:55 -04:00
Pete Hampton c4af30845e
Add additional collection item to security allow list filter. (#102192) 2021-06-16 15:33:27 +01:00
Kyle Pollich a84293b743
[Fleet + Integrations UI] Address UI Regressions in Fleet/Integrations (#102250)
* Fix active tabs in integrations UI

Fixes #101771

* Remove duplicate base breadcrumb

Fixes #101785

* Fix i18n
2021-06-16 10:26:19 -04:00
Joe Reuter 036c157f10
[Lens] Unload canvas test properly (#102101) 2021-06-16 16:00:43 +02:00
Paul Tavares 1b7a5a99cb
[Security Solution][Endpoint] Show Endpoint Host Isolation status on endpoint list (#101961)
* Add endpoint isolation status for when multiple actions of different types are pending
* Refactored List to break out Agent status code to separate component
* Generator improvements for how actions are generated for Endpoints
* Add HTTP mock for fleet EPM packages (to silence console errors)
* new `.updateCommonInfo()` method to generator (to regenerate stateful data)
2021-06-16 09:59:51 -04:00
David Sánchez 6b99e662cf
Updates app_id to use integrations one instead of fleet for back button link (#102312) 2021-06-16 15:32:26 +02:00
Tyler Smalley 3236f3fafa skip flaky suite (#102283) 2021-06-16 06:30:31 -07:00
Stacey Gammon a7b0391702
Use export type instead of export to reduce bundle size (#101796)
* Use export type instead of export to reduce bundle size

* Update legacy docs

* update docs again

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 09:28:50 -04:00
Alexey Antonov 78b803be2b
Add telemetry for editor clicks events (#100664)
* Track editor clicks events

Closes: #98949

* add create and open telemetries

* add telemetry for dashboard

* remove hardcoded originatingApp for lens

* DashboardConstants.DASHBOARDS_ID ->  DashboardConstants.DASHBOARD_ID

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 16:16:56 +03:00
David Sánchez 3c1b7e2f66
[Security solutions][Endpoint] Break long names on remove trusted apps/event filters dialog (#102307)
* Break long names on remove trusted apps/event filters dialog.

* Removes wrong class
2021-06-16 15:15:46 +02:00
Casper Hübertz d3c1f7c54d
[Observability] Updating header menu links across Observability apps (#101472)
* [Observability] POC aligning menu links across apps

* [APM] Changed guttersize

* [APM] Replace placeholder button

* [Uptime] Remove icon from Settings header link

* [APM] Reordered anomaly detection and alerts

* [Logs] Remove icon from settings and change guttersize

* [Metrics] Remove icon from settings and change guttersize

* [Logs] Change button style of `isStreaming` state

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 14:38:04 +02:00
Pete Harverson 35e10ba770
[ML] Adds optimizations for Logs UI anomaly detection jobs (#102191)
* [ML] Adds optimizations for Logs UI anomaly detection jobs

* [ML] Increment version for log-entry-categories-count job

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 11:31:10 +01:00
Pablo Machado 037d7aeb8f
Enhance cases bulk deletion action dialog message (#101403)
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-16 06:23:10 -04:00
Joe Reuter a946f9bd3d
add description and owner to kibana.json (#102238) 2021-06-16 10:23:31 +02:00
Joe Reuter 4180a026b7
[Lens] Formula overall functions (#99461) 2021-06-16 10:22:26 +02:00
Pablo Machado fbbbcf8b9b
[Security Solution][Timeline] Fix User not able to scroll down and access Alert table on adding long content in Timeline's Description (#101486)
* Add LineClamp component to timeline description

* Truncate timeline description on timeline table

* Fix StyledLineClamp styled component performance issue

Read more: https://styled-components.com/docs/faqs#why-should-i-avoid-declaring-styled-components-in-the-render-method
2021-06-16 10:00:05 +02:00
Casper Hübertz b96914235e
[Observability] Add border to section container panels (#102259) 2021-06-16 09:43:58 +02:00
Casper Hübertz c9678f29e2
[UX] Update panels to use border not shadow (#102262) 2021-06-16 09:43:35 +02:00
Casper Hübertz f39bf9c985
[APM] More styles fixes related to the new page template (#102253)
* [APM] Service map: Add border to panel

* [APM] Metrics: Add border to panel

* [APM] Service overview: Add border to panel

* [APM] Transactions and charts: Add border to panel
2021-06-16 09:35:08 +02:00
István Zoltán Szabó f4d22b36fb
[ML] Adds popover help for ROC curve (#101893)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-06-16 09:13:37 +02:00
Pete Hampton 4cd073f651
Bug: ES query returning no records for d-rule alerts. (#102160) 2021-06-16 08:11:32 +01:00
Tyler Smalley 752609dc47 skip flaky suite (#102282) 2021-06-15 21:34:01 -07:00
Matthew Kime 4cf6bca01e
Revert "[Index Patterns] Move rollup config to index pattern management (#102145)" (#102276)
This reverts commit f1b6fe04ed.
2021-06-15 20:35:19 -05:00
Ryland Herrick 4d921ffb7e
[Security Solution][CTI] Event enrichment search strategy (#101553)
* Adding boilerplate for new CTI search strategy type

This is going to be a subtype of the general SecSol search strategy;
the main functionality is going to be:

* transformation of the incoming parameters into named equivalents
* transformation of responses to include enrichment context fields
  (matched.*)

* More boilerplate, including tests

A few type errors because our functions don't actually do anything yet,
nor are our request/response types fleshed out.

* Starting to flesh out the request parsing

* Defines a basic request, along with a mock
* Defines helper function to generate should clauses from field values
* Adds placeholder tests throughout

* Fleshing out unit tests around our enrichment query

* Fleshing out response parsing of eventEnrichment strategy

* Fix types from elasticsearch

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 16:59:50 -05:00
Bhavya RM 3decc35668
updating the saved objects import file to include by value panels and drilldowns (#102114) 2021-06-15 17:16:55 -04:00
Nathan L Smith c151426ef9
Flyouts for APM alert annotations (#101632) 2021-06-15 13:53:42 -05:00
Shahzad 264339e156
[Lens] Export lens save modal (#100381)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 20:06:06 +02:00
Patryk Kopyciński 35cc59b571
[Osquery] Add support for platform and version fields (#101835) 2021-06-15 19:52:20 +02:00
Vadim Yakhin 7683d9ef17
[Workplace Search] Fix sidebar copy for Account Settings page (#102110)
* Rename PrivateSourcesLayout to PersonalDashboardLayout

The renaming was required because this layout is also used for Account Settings.

* Rename imports

* Rename files

* More personal_dashboard_layout from sources folder to layout folder

* Extract PrivateSourcesSidebar from PersonalDashboardLayout

This is needed to add the ability to pass AccountSettingsSidebar in the
next commit.

* Add and use AccountSettingsSidebar

* Move related styles to personal_dashboard_layout folder

* Move tests from personal_dashboard_layout to private_sources_sidebar

* Add tests for account_settings_sidebar

* Remove redundant import

* Move source-related sidebar text constants to top-level constants file

Now all personal dashboard sidebar copy is in one place
2021-06-15 13:50:43 -03:00
Marius Dragomir ff5ecc3420
[QA]Skip of metricbeat dashboard test (#97174)
* fix flakyness of metricbeat dashboard test

* skip test for now

* Update _metricbeat_dashboard.js

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 18:17:19 +02:00
Tyler Smalley 035f617b58 skip flaky suite (#102012) 2021-06-15 09:00:30 -07:00
Alison Goryachev 6173c04c20
[Snapshot + Restore] Migrate to new page layout structure (#101811) 2021-06-15 11:39:32 -04:00
Scotty Bollinger 42aa7f569a
[Enterprise Search] Refactor Role mappings to use single endpoint (#102096)
* Add tooltip back to table row

This was missed when refactoring the table to an EUI component. Built-in mappings have tooltips and don’t have IDs and need to show tooltips instead of actions.

* Fix roleType display

Also missed in the refactor. Made a mistake when copying/pasting

* Refactor logic files to use single endpoint for UI props

As a part of this feature, we are now passing all props needed for the UI in the list endpoint. Previously, whether creating a new mapping, or updating an existing mapping, an endpoint had to be called to fetch the data needed for display. Now all this data comes from the initial fetching of mappings and the other endpoints are no longer needed.

* Refactor WS test to match AS

There was an issue where 100% test coverage was not achieved in Workplace Search. This had already been fixed in App Search by refactoring. This changes the code and test in Workplace Search to match

* Remove server routes
2021-06-15 10:12:47 -05:00
Anton Dosov c409985090
Convert AppServices management pages to KibanaPageTemplate (#101779) 2021-06-15 16:33:41 +02:00
Byron Hulcher 8ca7b55c15
App Search: Domains Table for Crawler Overview (#101515)
* Add delete route for crawler domains

* Added deleteDomain action to CrawlerOverviewLogic

* New DomainsTable component

* Replace EuiCode with DomainsTable in CrawlerOverview

* Fixing mock imports

* Fix spleling

* Fix i18n tag

* Clean up DomainsTable

* Clean up DomainsTable tests

* Clean up CrawlerOverview tests

* Clean up i18n tag in CrawlerOverviewLogic

* Utilize Kibana i18n and React for timestamp display

* Use elastic.co domain in tests

* Remove unneeded type casting

* Adjusting isDateToday check

* Apply suggestions from code review

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_overview_logic.ts

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-15 10:08:07 -04:00
Joey F. Poon 4b3adfda5f
[Security Solution] restyle endpoint details flyout (#102092) 2021-06-15 08:57:12 -05:00
Ignacio Rivas 2cecca3992
[Remote Clusters] Migrate to new page layout (#102042)
* change page templates

* Small copy tweaks

* Update docs

* small CR changes

* exit function call if fails

* update i18n strings

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 15:28:40 +02:00
Ignacio Rivas a7709b48b5
[Ingest Node Pipelines] Migrate to new page layout (#101894)
* migrate pages to new layout

* fix linter errors

* update translation files

* Nicer try-again cta

* Fix lang and prettier

* small CR changes

* small linter fixes

* fix test copy

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 15:27:48 +02:00
Larry Gregory 68d24080e0
Optimize privilege response validation (#102135) 2021-06-15 09:25:47 -04:00
David Sánchez 341f965452
Fixes empty page when removing last element. Fixes wrong event filters count number. Also adds unit tests (#102173) 2021-06-15 15:12:31 +02:00
James Gowdy ede8432ac7
[ML] Improvements to job saved object sync (#101899)
* [ML] Improvements to job saved object sync

* refactor

* adding testsadding testsadding testsadding testsadding testsadding testsadding testsadding tests

* updating test label

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 14:10:24 +01:00
SoNice! fb138cf165
[Fleet] Remove release messaging (#101450)
Co-authored-by: kobarei <koba.reiji@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 14:50:01 +02:00
Marco Liberati b40732507e
[Lens] Keep filters when transitioning from calculation to regular operation (#101872)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 14:47:25 +02:00
Nathan Reese 35714526c0
[Maps] Handle indices without geoip schema defined in mapping (#100487)
* ensure sourceGeoField and destGeoField for docs included in pew pew source

* tslint
2021-06-15 06:04:07 -06:00
Ashokaditya bcb941acea
[Security Solution][Endpoint] Actions log entries display relative time only up to 1 hr from now (#102162)
* show relative time only upto an hr from now

fixes elastic/security-team/issues/1313

* Update formatted_date_time.tsx

undo changes done in e38e202e81
2021-06-15 13:26:24 +02:00
Shahzad 7390d6a45c
[User Experience App] Update to make sure env filter is being used (#102063) 2021-06-15 12:41:56 +02:00
Alejandro Fernández Gómez 0d6ce5da27
[Uptime] Skip flaky test (#102163) 2021-06-15 06:38:52 -04:00
Matthew Kime f1b6fe04ed
[Index Patterns] Move rollup config to index pattern management (#102145)
* move rollup config to index pattern management
2021-06-15 05:12:43 -05:00
Joe Reuter 2ef66c139a
[Lens] Add reset and hide actions to columns on dashboard (#102025) 2021-06-15 11:48:08 +02:00
Thomas Neirynck 6456c49e2c
[Maps] Remove jitter from bounds-coordinates (#100717) 2021-06-15 11:13:27 +02:00
Casper Hübertz d9905893b9
[Observability] Change sortkey navigation in APM and Uptime (#102134)
* [APM] Change navigation registry sortkey

* [Uptime] Change navigation registry sortkey
2021-06-15 10:40:10 +02:00
Marco Liberati 37728f526d
[Lens] Table headers are aligned the same as cells (#101875)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 10:34:57 +02:00
Marco Liberati 65fec6bd8e
[Lens]Show dynamic coloring only for metrics (#101777)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 10:34:04 +02:00
Casper Hübertz 92b6535df2
[Observability] Fixes border shadow and other enhancements (#102072)
* [Observability] Fixes border shadow and other enhancements

* Update x-pack/plugins/observability/public/components/app/section/index.tsx

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>

* [Observability] Remove unused import and formatting

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 10:12:45 +02:00