Commit graph

41474 commits

Author SHA1 Message Date
Stratoula Kalafateli
10dd00f6a9
[7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292)
* [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>
# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-optimizer/limits.yml
#	test/functional/apps/visualize/_pie_chart.ts

* Fix functional test

* Revert change - backport missing

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 11:15:27 -04:00
Kibana Machine
78731f4c35
[Uptime] Show URL and metrics on sidebar and waterfall item tooltips (#99985) (#101383)
* 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>

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2021-06-04 10:45:28 -04:00
Ignacio Rivas
f6ed916163
[Ingest pipelines] add media_type to set processor (#101035) (#101371)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 09:30:16 -04:00
Stratoula Kalafateli
ab06dc16b5
[QA] Switch tests to use importExport - visualize (#98063) (#101361)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/functional/apps/visualize/index.ts

Co-authored-by: Tre <wayne.seymour@elastic.co>
2021-06-04 16:21:34 +03:00
Kibana Machine
d1922c2da1
make sure migrations stay in sync (#101362) (#101370)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-04 09:11:20 -04:00
Stratoula Kalafateli
07706a339e
[Visualize] Adds a unit test to compare the by value and by ref migrations (#101247) (#101359)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 06:41:49 -04:00
Kibana Machine
c57942967e
[Lens] rewrite warning messages with i18n (#101314) (#101357)
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-04 06:13:28 -04:00
Dmitry Tomashevich
b09aeb52f2
[7.x] [Discover] Add EUIDataGrid to surrounding documents (#99447) (#101063)
* [Discover] Add EUIDataGrid to surrounding documents (#99447)

* [Discover] migrate remaining context files from js to ts

* [Discover] get rid of any types

* [Discover] replace constants with enums, update imports

* [Discover] use unknown instead of any, correct types

* [Discover] skip any type for tests

* [Discover] add euiDataGrid view

* [Discover] add support dataGrid columns, provide ability to do not change sorting, highlight anchor doc, rename legacy variables

* [Discover] update context_legacy test and types

* [Discover] update unit tests, add context header

* [Discover] update unit and functional tests

* [Discover] remove docTable from context test which uses new data grid

* [Discover] update EsHitRecord type, use it for context app. add no pagination support

* [Discover] resolve type error in test

* [Discover] add disabling control columns option, change loading feedback

* [Discover] clean up, update functional tests

* [Discover] remove invalid translations

* [Discover] support both no results found and loading feedback

* [Discover] provide loading status for discover

* [Discover] fix functional test

* [Discover] add useDataGridColumns test, update by comments

* [Discover] fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* [Discover] fix data grid row header in firefox

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 11:02:14 +03:00
Kibana Machine
2e3b20060f
[fix] import from the root of @kbn/expect (#101321) (#101343)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-03 20:05:17 -04:00
Kibana Machine
32595de21b
chore(NA): moving @kbn/rule-data-utils into bazel (#101290) (#101332)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-03 18:21:30 -04:00
gchaps
9bc7dac8d8
[DOCS] Updates video in Intor & Maps take 2 (#101330) (#101340) 2021-06-03 15:01:36 -07:00
gchaps
a734088802
[DOCS] Updates videos in Maps and Discover (#101312) (#101337) 2021-06-03 14:49:06 -07:00
Kibana Machine
b666a4bff1
[Security Solution] [OLM] Endpoint pending actions API (#101269) (#101318)
Co-authored-by: Dan Panzarella <pzl@users.noreply.github.com>
2021-06-03 16:47:29 -04:00
Kaarina Tungseth
9de0632c62
[DOCS] Adds the updated Lens video (#101327) (#101328) 2021-06-03 13:24:20 -07:00
Devon Thomson
87f3e635b9
[Dashboard] Fix Copy To Permission & Unskip RBAC tests (#100616) (#101311)
* slightly better typing for dashboard permissions. Fixed typo, unskipped functional tests
# Conflicts:
#	x-pack/test/functional/apps/dashboard/feature_controls/dashboard_security.ts
2021-06-03 15:40:39 -04:00
Nicolas Chaulet
819b2751a0
[Fleet] Rename config value agents.elasticsearch.host => agents.elasticsearch.hosts (#101162) (#101306) 2021-06-03 15:02:56 -04:00
Tiago Costa
1972311f6f
fix(NA): windows ts_project outside sandbox compilation (#100947) (#101305)
* 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>
# Conflicts:
#	package.json
2021-06-03 14:53:36 -04:00
Kibana Machine
279ce33361
Splits migrationsv2 actions and unit tests into separate files (#101200) (#101304)
* Splits migrationsv2 actions and unit tests into separate files

* Moves actions integration tests

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-06-03 14:48:28 -04:00
Kibana Machine
067f0258cf
Bump packages (#101167) (#101303)
* Bump mini-css-extract-plugin

* Removed unused dependency

* Remove unecessary types

* Don't match _meta field

Co-authored-by: Thom Heymann <190132+thomheymann@users.noreply.github.com>
2021-06-03 14:29:03 -04:00
Matthew Kime
725d413131
[7.x] [Index patterns] Deprecate scripted field API functions (#100907) (#101301)
* [Index patterns] Deprecate scripted field API functions (#100907)

* deprecate scripted field functions in index patterns api

* merge
2021-06-03 14:24:40 -04:00
Kibana Machine
1609e136a3
[Fleet] Install final pipeline (#100973) (#101299)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-03 14:24:31 -04:00
Candace Park
ac146a4e21
[Security Solution][Endpoint][Host Isolation] Unisolate host minor refactors (#100889) (#101298) 2021-06-03 14:19:29 -04:00
Kibana Machine
d434f36317
[App Search] Added a persistent query tester flyout (#101071) (#101287)
Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
2021-06-03 16:58:52 +00:00
Kibana Machine
fdbdddf6b2
Enterpise Search SSL Settings Support (#100946) (#101286)
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>

Co-authored-by: Oleksiy Kovyrin <oleksiy@kovyrin.net>
Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
Co-authored-by: Constance Chen <constance.chen.3@gmail.com>
2021-06-03 12:55:06 -04:00
Kibana Machine
4238ecfb25
[Usage] Fix flaky UI Counters test (#100979) (#101284)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
2021-06-03 12:47:08 -04:00
Brian Seeders
95eff5c7a8
[CI] Buildkite support with Baseline pipeline (#100492) (#101108) 2021-06-03 12:00:25 -04:00
Kibana Machine
356fe7bfc9
Fixing pagerduty server side functionality (#101091) (#101275)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-06-03 11:28:25 -04:00
Kibana Machine
a72f05d033
[Uptime] Move uptime to new solution nav (#100905) (#101271)
* 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>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
2021-06-03 15:15:32 +00:00
Kibana Machine
5f6cf01217
use fake timers to avoid flakiness (#101254) (#101263)
Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-06-03 10:11:21 -04:00
Vadim Dalecky
e8e4ce9d8b
feat: 🎸 connect dasdhboard telemetry to persistable state (#99498) (#101262)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 10:03:06 -04:00
spalger
f054e5daaf skip flaky suite (#99581)
(cherry picked from commit f5df40a5a1)
2021-06-03 06:34:00 -07:00
Kibana Machine
08ba260e7e
[Lens] setFocusTrap after animation is ended and not with timeout (#101148) (#101258)
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-06-03 08:51:35 -04:00
Kibana Machine
650ce6f033
[TSVB] Math params._interval is incorrect when using entire timerange mode (#100775) (#101252)
* [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>

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-06-03 07:32:31 -04:00
Kibana Machine
d23ef9696f
attempt at tree shaking (#101147) (#101251)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-06-03 07:29:25 -04:00
Peter Pisljar
d7a0703361
adding expressions dev_docs tutorial (#101004) (#101025)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 07:25:47 -04:00
Uladzislau Lasitsa
70bd851483
Gauge/goal: Tooltip always includes "_all" (#101064) (#101248)
* Don't show _all for goal and gauge in tooltip

* add unit test
2021-06-03 06:46:09 -04:00
Kibana Machine
c42fbf79d6
[Security Solution] [Endpoint] Add endpoint details activity log (#99795) (#101244)
* 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>

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
2021-06-03 05:23:45 -04:00
David Sánchez
b7070cbc76
[Security solution][Endpoint] Add unit tests for fleet event filters/trusted apps cards (#101034) (#101151)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 10:30:18 +02:00
Kibana Machine
efe64f264c
[ML] Functional tests - reenable categorization tests (#101137) (#101241)
This PR re-enables the categorization tests that have been temporarily skipped.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-03 03:46:43 -04:00
Yuliia Naumenko
35c39274d3
[Alerting UI] Reduced triggersActionsUi bundle size by making all action types UI validation messages translations asynchronous. (#100525) (#101240)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-03 03:30:38 -04:00
Kibana Machine
88615e49f6
[Security Solution] Add Ransomware canary advanced policy option (#101068) (#101149)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
2021-06-03 02:56:52 +00:00
Steph Milovic
6ac1ee2135
[Security Solution] [Bug Fix] Fix flakey cypress tests (#101231) (#101237) 2021-06-02 22:24:46 -04:00
Tre
e8e702f892
[QA] Bind the retry to fixup error in it repo tests (#100948) (#101220)
Verfiied via: https://internal-ci.elastic.co/view/All/job/elastic+integration-test+master/487/
2021-06-02 19:19:13 -04:00
Bhavya RM
ae22aa341e
Unskip advanced settings a11y test (#100558) (#101217) 2021-06-02 18:56:27 -04:00
spalger
0c04ee4c7d skip suite failing es promotion (#101219)
(cherry picked from commit 98527ad232)
2021-06-02 14:15:31 -07:00
Kaarina Tungseth
81a7423a28
[DOCS] Removes 100778 from 7.13.1 release notes 2021-06-02 15:48:34 -05:00
gchaps
a0d31e76ed
[DOCS] Updates homebrew content to use latest version (#101199) (#101211) 2021-06-02 13:45:14 -07:00
Kibana Machine
2d9368821b
Convert $json to json in package README code blocks (#101187) (#101202)
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-06-02 16:35:00 -04:00
Kibana Machine
d387e5c658
[Fleet] Fix host input with empty value (#101178) (#101195)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-02 15:36:23 -04:00
Kibana Machine
2cf349a777
docs(NA): update developer getting started guide to build on windows within Bazel (#101181) (#101205)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-02 12:30:08 -07:00