Commit graph

11449 commits

Author SHA1 Message Date
John Schulz 137778d124
[Fleet] Show callout & CTA in add agent flyout if no enrollment keys (#100599)
## Summary
Fixes https://github.com/elastic/kibana/issues/91454

### If there are no enrollment tokens for a policy, show help text & button to create one.

https://user-images.githubusercontent.com/57655/119555390-ce95b480-bd6b-11eb-8333-ce7b50c9fccd.mov


### Clicking "Create enrollment token" button in Agents list view now opens a modal instead of a flyout

https://user-images.githubusercontent.com/57655/119556503-1e28b000-bd6d-11eb-8952-1da8e80e976e.mov



### Checklist

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [ ] [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-04 15:21:54 -04:00
Jason Stoltzfus 77533da2be
[App Search] 100% code coverage plus fix console error (#101407) 2021-06-04 14:32:17 -04:00
Byron Hulcher 9a275de0f9
[App Search] Initial logic for Crawler Overview (#101176)
* New CrawlerOverview component

* CrawlerRouter should use CrawlerOverview in dev mode

* New CrawlerOverviewLogic

* New crawler route

* Display domains data for CrawlerOverview in EuiCode

* Update types

* Clean up tests for Crawler utils

* Better todo commenting for CrawlerOverview tests

* Remove unused div from CrawlerOverview

* Rename CrawlerOverviewLogic.actios.setCrawlerData to onFetchCrawlerData

* Cleaning up CrawlerOverviewLogic

* Cleaning up CrawlerOverviewLogic tests

* Fix CrawlerPolicies capitalization

* Add Loading UX

* Cleaning up afterEachs across Crawler tests
2021-06-04 14:28:11 -04:00
Felix Stürmer 081cf98f61
[Logs UI] Fix the LogStream story to work with KIPs (#100862)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 19:13:35 +02:00
Shahzad 76105cc4d0
[User Experience] Move ux app to new nav (#101005) 2021-06-04 18:04:40 +02:00
igoristic bc363181cf
Allow . system indices in regex (#100831)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 11:52:27 -04:00
Alison Goryachev 03bc6bfe31
[Upgrade Assistant] Use config for readonly mode (#101296) 2021-06-04 11:45:06 -04:00
Marta Bondyra b130edfdb4
[Lens] fix suggestions for filters and filter by (#101372)
* [Lens] fix suggestions for filters and filter by

* Update advanced_options.tsx

revert another PR changes
2021-06-04 17:29:45 +02:00
Paul Tavares 36996634c3
[Security Solution][Endpoint] Add ability to isolate the Host from the Endpoint Details flyout (#100482)
* Add un-isolate form to the endpoint flyout
* Add Endpoint details flyout footer and action button
* Refactor hooks into a directory
* Refactor endpoint list actions into reusable list + add it to Take action on details
* Refactor Endpoint list row actions to use new common hook for items
* generate different values for isolation in endpoint generator
* move `isEndpointHostIsolated()` utility to a common folder
* refactor detections to also use common `isEndpointHostIsolated()`
* httpHandlerMockFactory can now handle API paths with params (`{id}`)
* Initial set of re-usable http mocks for endpoint hosts set of pages
* fix bug in `composeHttpHandlerMocks()`
* small improvements to test utilities
* Show API errors for isolate in Form standard place
2021-06-04 10:59:53 -04:00
Dima Arnautov 9810a72720
[Transform] Support for the top_metrics aggregation (#101152)
* [ML] init top_metrics agg

* [ML] support sort

* [ML] support _score sorting

* [ML] support sort mode

* [ML] support numeric type sorting

* [ML] update field label, hide additional sorting controls

* [ML] preserve advanced config

* [ML] update agg fields after runtime fields edit

* [ML] fix TS issue with EuiButtonGroup

* [ML] fix Field label

* [ML] refactor setUiConfig

* [ML] update unit tests

* [ML] wrap advanced sorting settings with accordion

* [ML] config validation with tests

* [ML] fix preserving of the unsupported config

* [ML] update translation message

* [ML] fix level of the custom config

* [ML] preserve unsupported config for sorting
2021-06-04 16:04:53 +02:00
Nathan Reese 93df9a32a4
[Maps] embeddable migrations (#101070)
* [Maps] embeddable migrations

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 08:00:41 -06:00
Justin Kambic 8f83090d74
[Uptime] Show URL and metrics on sidebar and waterfall item tooltips (#99985)
* Add URL to metrics tooltip.

* Add screenreader label for URL container.

* Add metrics to URL sidebar tooltip.

* Rename vars.

* Delete unnecessary code.

* Undo rename.

* Extract component to dedicated file, add tests.

* Fix error in test.

* Add offset index to heading of waterfall chart tooltip.

* Format the waterfall tool tip header.

* Add horizontal rule and bold text for waterfall tooltip.

* Extract inline helper function to module-level for reuse.

* Reuse waterfall tooltip style.

* Style reusable tooltip content.

* Adapt existing chart tooltip to use tooltip content component for better consistency.

* Delete test code.

* Style EUI tooltip arrow.

* Revert whitespace change.

* Delete obsolete test.

* Implement and use common tooltip heading formatter function.

* Add tests for new formatter function.

* Fix a typo.

* Add a comment explaining a style hack.

* Add optional chaining to avoid breaking a test.

* Revert previous change, use RTL wrapper, rename describe block.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 08:48:35 -04:00
Joe Reuter d62bb452dd
make sure migrations stay in sync (#101362) 2021-06-04 13:16:31 +02:00
Søren Louv-Jansen 71adda0366
[APM] Update ESLint and tsc commands in APM readme (#101207)
* [APM] Change typescript command in readme

* Update eslint command
2021-06-04 05:27:11 -04:00
Marco Liberati e3198bcb57
[Lens] rewrite warning messages with i18n (#101314) 2021-06-04 10:19:04 +02:00
Ignacio Rivas d6164aeecc
[Ingest pipelines] add media_type to set processor (#101035)
* start working on conditionally showing the field

* add tests and document regex matcher

* add tests for set processor

* fix broken tests

* move path below componentProps

* Add little comment about whitespaces handling

* template snippets can also contain strings other

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 10:12:04 +02:00
Søren Louv-Jansen caa4bd111d
[APM] Add Obs side nav and refactor APM templates (#101044)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 20:59:30 -04:00
Dan Panzarella 747b80b58f
[Security Solution] [OLM] Endpoint pending actions API (#101269) 2021-06-03 14:51:45 -04:00
Nicolas Chaulet e4f74471ec
[Fleet] Rename config value agents.elasticsearch.host => agents.elasticsearch.hosts (#101162) 2021-06-03 12:57:21 -04:00
Nicolas Chaulet 3b1e8b03f1
[Fleet] Install final pipeline (#100973) 2021-06-03 12:27:29 -04:00
Candace Park 0312839e34
[Security Solution][Endpoint][Host Isolation] Unisolate host minor refactors (#100889) 2021-06-03 12:27:06 -04:00
Stratoula Kalafateli a9a9013120
[Pie] New implementation of the vislib pie chart with es-charts (#83929)
* es lint fix

* Add formatter on the buckets labels

* Config the new plugin, toggle tooltip

* Aff filtering on slice click

* minor fixes

* fix eslint error

* use legacy palette for now

* Add color picker to legend colors

* Fix ts error

* Add legend actions

* Fix bug on Color Picker and remove local state as it is unecessary

* Fix some bugs on colorPicker

* Add setting for the user to select between the legacy palette or the eui ones

* small enhancements, treat empty labels with (empty)

* Fix color picker bugs with multiple layers

* fixes on internationalization

* Create migration script for pie chart and legacy palette

* Add unit tests (wip) and a small refactoring

* Add unit tests and move some things to utils, useMemo and useCallback where it should

* Add jest config file

* Fix jest test

* fix api integration failure

* Fix to_ast_esaggs for new pie plugin

* Close legendColorPicker popover when user clicks outside

* Fix warning

* Remove getter/setters and refactor

* Remove kibanaUtils from pie plugin as it is not needed

* Add new values to the migration script

* Fix bug on not changing color for expty string

* remove from migration script as they don't need it

* Fix editor settings for old and new implementation

* fix uistate type

* Disable split chart for the new plugin for now

* Remove temp folder

* Move translations to the pie plugin

* Fix CI failures

* Add unit test for the editor config

* Types cleanup

* Fix types vol2

* Minor improvements

* Display data on the inspector

* Cleanup translations

* Add telemetry for new editor pie options

* Fix missing translation

* Use Eui component to detect click outside the color picker popover

* Retrieve color picker from editor and syncColors on dashboard

* Lazy load palette service

* Add the new plugin to ts references, fix tests, refactor

* Fix ci failure

* Move charts library switch to vislib plugin

* Remove cyclic dependencies

* Modify license headers

* Move charts library switch to visualizations plugin

* Fix i18n on the switch moved to visualizations plugin

* Update license

* Fix tests

* Fix bugs created by new charts version

* Fix the i18n switch problem

* Update the migration script

* Identify if colorIsOverwritten or not

* Small multiples, missing the click event

* Fixes the UX for small multiples part1

* Distinct colors per slice implementation

* Fix ts references problem

* Fix some small multiples bugs

* Add unit tests

* Fix ts ref problem

* Fix TS problems caused by es-charts new version

* Update the sample pie visualizations with the new eui palette

* Allows filtering by the small multiples value

* Apply sortPredicate on partition layers

* Fix vilib test

* Enable functional tests for new plugin

* Fix some functional tests

* Minor fix

* Fix functional tests

* Fix dashboard tests

* Fix all dashboard tests

* Apply some improvements

* Explicit params instead of visConfig Json

* Fix i18n failure

* Add top level setting

* Minor fix

* Fix jest tests

* Address PR comments

* Fix i18n error

* fix functional test

* Add an icon tip on the distinct colors per slice switch

* Fix some of the PR comments

* Address more PR comments

* Small fix

* Functional test

* address some PR comments

* Add padding to the pie container

* Add a max width to the container

* Improve dashboard functional test

* Move the labels expression function to the pie plugin

* Fix i18n

* Fix functional test

* Apply PR comments

* Do not forget to also add the migration to them embeddable too :D

* Fix distinct colors for IP range layer

* Remove console errors

* Fix small mulitples colors with multiple layers

* Fix lint problem

* Fix problems created from merging with master

* Address PR comments

* Change the config in order the pie chart to not appear so huge on the editor

* Address PR comments

* Change the max percentage digits to 4

* Change the max size to 1000

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 18:17:14 +03:00
Jason Stoltzfus 9618fd7dfe
[App Search] Added a persistent query tester flyout (#101071) 2021-06-03 11:00:12 -04:00
Oleksiy Kovyrin 58b1416f84
Enterpise Search SSL Settings Support (#100946)
Introduce a new set of SSL configuration settings for Enterprise Search plugin,
allowing users to configure a set of custom certificate authorities and to 
control TLS validation mode used for all requests to Enterprise Search.

Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
Co-authored-by: Constance Chen <constance.chen.3@gmail.com>
2021-06-03 10:58:11 -04:00
ymao1 b8c127c18f
Fixing pagerduty server side functionality (#101091)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 09:35:27 -04:00
Shahzad 2ea4d5713c
[Uptime] Move uptime to new solution nav (#100905)
* Expose options to customize the route matching

* Add more comments

* move uptime to new solution nav

* push

* update test

* add an extra breadcrumb

Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
2021-06-03 15:19:35 +02:00
Vadim Dalecky 1d39d36c3d
feat: 🎸 connect dasdhboard telemetry to persistable state (#99498)
* feat: 🎸 connect dasdhboard telemetry to persistable state

* fix: 🐛 do not mutate .telemetry() stats objects

* feat: 🎸 populate stats object with embeddable telemetry

* feat: 🎸 embeddable telemetry schema

* feat: 🎸 update telemetry schema

* feat: 🎸 add descriptions to dashboard collector

* chore: 🤖 update telemetry schema

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 14:06:57 +02:00
Marta Bondyra 4e5652d05a
[Lens] setFocusTrap after animation is ended and not with timeout (#101148) 2021-06-03 12:54:43 +02:00
Ashokaditya d4ecee6ba0
[Security Solution] [Endpoint] Add endpoint details activity log (#99795)
* WIP

add tabs for endpoint details

* fetch activity log for endpoint

this is work in progress with dummy data

* refactor to hold host details and activity log within endpointDetails

* api for fetching actions log

* add a selector for getting selected agent id

* use the new api to show actions log

* review changes

* move util function to common/utils

in order to use it in endpoint_hosts as well as in trusted _apps

review suggestion

* use util function to get API path

review suggestion

* sync url params with details active tab

review suggestion

* fix types due to merge commit

refs 3722552f73

* use AsyncResourseState type

review suggestions

* sort entries chronologically with recent at the top

* adjust icon sizes within entries to match mocks

* remove endpoint list paging stuff (not for now)

* fix import after sync with master

* make the search bar work (sort of)

this needs to be fleshed out in a later PR

* add tests to middleware for now

* use snake case for naming routes

review changes

* rename and use own relative time function

review change

* use euiTheme tokens

review change

* add a comment

review changes

* log errors to kibana log and unwind stack

review changes

* use FleetActionGenerator for mocking data

review changes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 09:22:49 +02:00
Shahzad f367deca48
[Exploratory View] Refactor series storage (#100571)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 08:59:22 +02:00
Yuliia Naumenko 45ae6cc39b
[Alerting UI] Reduced triggersActionsUi bundle size by making all action types UI validation messages translations asynchronous. (#100525)
* [Alerting UI] Reduced triggersActionsUi bundle size by making all connectors validation messages translations asyncronus.

* changed validation logic to be async

* fixed action form

* fixed tests

* fixed tests

* fixed validation usage in security

* fixed due to comments

* fixed due to comments

* added spinner for the validation awaiting

* fixed typechecks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 22:33:43 -07:00
Steph Milovic 71b4c38c4a
[Security Solution] [Bug Fix] Fix flakey cypress tests (#101231) 2021-06-02 19:37:11 -04:00
Jen Huang 6724a474de
Convert $json to json in package README code blocks (#101187) 2021-06-02 14:39:18 -04:00
Nicolas Chaulet 66553681c0
[Fleet] Fix host input with empty value (#101178) 2021-06-02 13:44:04 -04:00
Mike Côté e607b58590
Fix alerting health API to consider rules in all spaces (#100879)
* Initial commit

* Expand tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 13:08:09 -04:00
DeDe Morton d87e30e8c3
Edit text strings in Heartbeat setup prompt (#100753)
* Edit text strings in Heartbeat setup prompt

* Update snapshot to fix test failure

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 10:02:26 -07:00
Zacqary Adam Xeper b5b663e925
[Fleet] Add support for meta in fields.yml (#100931)
* [Fleet] Add support for meta in fields.yml

* Revert formatting changes to install.ts

* Add mapping tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 11:54:18 -05:00
Byron Hulcher 90f2d094ce
[App Search] Crawler Landing Page (#100822)
* New CrawlerLanding component

* New CrawlerRouter component

* Adding CrawlerRouter to EngineRouter

* Using internal route for Crawler link in EngineNav

* Rename crawler landing background

* Fix CrawlerLanding css

* Fix crawler documentation link

* Add Crawler title to breadcrumbs

* Reduce png filesize

* Improve CrawlerLanding copy

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_landing.scss

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-02 11:36:40 -04:00
Joe Reuter 65dbcdd27d
change label behavior (#100991) 2021-06-02 17:24:56 +02:00
James Gowdy ad09cdc509
[Home] Adding file upload to add data page (#100863)
* [Home] Adding file upload to add data page

* updating comment

* tiny refactor

* attempting to reduce bundle size

* reverting to original home register import

* lazy load tab contents

* changes based on review

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 15:33:49 +01:00
Joe Reuter 8cb3dbc4ab
[Lens] Time shift metrics (#98781) 2021-06-02 15:58:47 +02:00
Ahmad Bamieh dfd6ec9243
[Deprecations service] make correctiveActions.manualSteps required (#100997)
Co-authored-by: igoristic <igor.zaytsev.dev@gmail.com>
Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
2021-06-02 15:52:14 +03:00
Nathan Reese 14442b78de
[Maps] spatially filter by all geo fields (#100735)
* [Maps] spatial filter by all geo fields

* replace geoFields with geoFieldNames

* update mapSpatialFilter to be able to reconize multi field filters

* add check for geoFieldNames

* i18n fixes and fix GeometryFilterForm jest test

* tslint

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 06:17:23 -06:00
Kevin Logan 7f8f89ed99
[Security Solution] Add Ransomware canary advanced policy option (#101068)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 07:29:32 -04:00
Shahzad b8f6bf5747
[Exploratory view] Core web vitals (#100320)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 12:41:44 +02:00
David Sánchez bdd7f7e3bf
[Security solution][Endpoint] Add unit tests for fleet event filters/trusted apps cards (#101034)
* Adds new unit tests for fleet card components

* Fixes some warnings on ui

* Adds some syntax and readibility nits comming from pr comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 10:47:48 +02:00
Wylie Conlon 3bdd423d76
[Lens] Use a setter function for the dimension panel (#101123)
* [Lens] Use a setter function for the dimension panel

* Remove copy+paste issue
2021-06-02 09:36:44 +02:00
Nathan Reese 3efca35601
[Maps] fix line and polygon label regression (#101085) 2021-06-01 17:27:22 -06:00
CJ Cenizal ba4e0d259b
Migrate CCR to new ES JS client. (#100131)
* Update SectionError component to render error root causes correctly.
* Fix 404 error rendering.
* Add test for follower index update API route.
2021-06-01 16:26:01 -07:00
Corey Robertson b62848ce8a
[Canvas] Switch Canvas to use React Router (#100579)
* Switch Canvas to use React Router

* Fix typescript errors

* Remove @scant/router from package.json

* Fix tests

* Fix functional test

* Fix functional tests

* Fix bad merge in package.json

* Cleanup from code review comments

* Fix double basepath append

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 17:35:56 -04:00