Commit graph

43320 commits

Author SHA1 Message Date
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
Spencer 090d0abd11
[ts] migrate root test dir to project refs (#99148)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-04 13:17:00 -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
CJ Cenizal 7b4b713237
Update CODEOWNERS to ping Stack Management team. (#101350) 2021-06-04 09:22:40 -07: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
Tiago Costa 690e81aa60
chore(NA): include missing dependency on @kbn/legacy-logging (#101331) 2021-06-04 15:52:25 +01: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
Pierre Gayvallet aa8aa7f23d
Saved object export: apply export hooks to referenced / nested objects (#100769)
* execute export transform for nested references

* fix sort

* fix duplicate references

* add FTR test
2021-06-04 14:46:05 +02: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
Stratoula Kalafateli 6927d6cf1c
[Visualize] Adds a unit test to compare the by value and by ref migrations (#101247)
* [Visualize] Add unti test to compare the by value and by ref migrations

* Fix file name

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 11:42:51 +03: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
Spencer be9fcad655
[fix] import from the root of @kbn/expect (#101321)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-03 18:13:11 -04:00
gchaps b1f2b1f9f5
[DOCS] Updates video in Intor & Maps take 2 (#101330) 2021-06-03 13:36:45 -07:00
Tiago Costa 78d8272afe
chore(NA): moving @kbn/rule-data-utils into bazel (#101290)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 21:26:17 +01:00
Kaarina Tungseth 4fae338604
[DOCS] Adds the updated Lens video (#101327) 2021-06-03 15:15:15 -05:00
gchaps 21f08e4e22
[DOCS] Updates videos in Maps and Discover (#101312) 2021-06-03 13:05:03 -07: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
Christiane (Tina) Heiligers 843a81ea51
Splits migrationsv2 actions and unit tests into separate files (#101200)
* Splits migrationsv2 actions and unit tests into separate files

* Moves actions integration tests
2021-06-03 12:54:37 -04:00
Tiago Costa f69d63e8be
fix(NA): windows ts_project outside sandbox compilation (#100947)
* fix(NA): windows ts_project outside sandbox compilation adding tsconfig paths for packages

* chore(NA): missing @kbn paths for node_modules so types can work

* chore(NA): missing @kbn paths for node_modules so types can work

* chore(NA): organizing deps on non ts_project packages

* chore(NA): change order to find @kbn packages on node_modules first

* chore(NA): add @kbn/expect typings setting on package.json

* chore(NA): fix typechecking

* chore(NA): add missing change on tsconfig file

* chore(NA): unblock windows build by not depending on the pkg_npm rule symlink in the package.json

* chore(NA): add missing depedencies on BUILD.bazel file for io-ts-list-types

* chore(NA): remove rootDirs configs

* chore(NA): change kbn/monaco targets order

* chore(NA): update kbn-monaco build

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 17:53:39 +01:00
Thom Heymann 07ce6374ef
Bump packages (#101167)
* Bump mini-css-extract-plugin

* Removed unused dependency

* Remove unecessary types

* Don't match _meta field
2021-06-03 19:29:57 +03: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
Devon Thomson a0c20ac7aa
[Dashboard] Fix Copy To Permission & Unskip RBAC tests (#100616)
* slightly better typing for dashboard permissions. Fixed typo, unskipped functional tests
2021-06-03 11:58:25 -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
Jean-Louis Leysens c260407640
added screenshot_mode to app services ownership (#101257) 2021-06-03 17:16:42 +02: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
Ahmad Bamieh de85036fc7
[Usage] Fix flaky UI Counters test (#100979)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 17:47:54 +03: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
spalger f5df40a5a1 skip flaky suite (#99581) 2021-06-03 06:33:27 -07: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
Liza Katz c30dc1e08f
use fake timers to avoid flakiness (#101254) 2021-06-03 15:15:29 +03: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
Alexey Antonov 83b47c1bc8
[TSVB] Math params._interval is incorrect when using entire timerange mode (#100775)
* [TSVB] Math params._interval is incorrect when using entire timerange mode

Closes: #100615

* fix jest

* rename get -> overwrite

* apply fix for "bucket script"

* Update date_histogram.js

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 12:37:45 +03:00
Liza Katz 8097f36465
attempt at tree shaking (#101147)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 12:28:09 +03:00
Uladzislau Lasitsa 6f106e4687
Gauge/goal: Tooltip always includes "_all" (#101064)
* Don't show _all for goal and gauge in tooltip

* add unit test
2021-06-03 11:49:00 +03:00
Vadim Dalecky 2354f07802
Link and formatting fix (#101243)
* docs: ✏️ make "Risk Matrix" link absolute

The page can be rendered in different environments, so we should have
this link absolute so that it always works, for example, it would not
work in PRs themselves.

* docs: ✏️ remove formatting breaks

In PRs Markdown formatting breaks are rendered incorrectly, so we remove
them.
2021-06-03 10:03:08 +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