Commit graph

48030 commits

Author SHA1 Message Date
Kate Farrar 44ab603c83 Merge branch 'issue-104094-update-legend-position' of github.com:simianhacker/kibana into issue-104094-update-legend-position 2021-11-09 12:11:30 -07:00
Kate Farrar 51f84e9175 updating button colors and moving history button back to the left 2021-11-09 12:07:45 -07:00
Kate Farrar dddaf7a038
Merge branch 'main' into issue-104094-update-legend-position 2021-11-08 19:13:19 -07:00
Nathan Reese 7d90bad960
[Maps] convert TileLayer and VectorTileLayer to TS (#117745)
* [Maps] convert TileLayer and VectorTileLayer to TS

* commit using @elastic.co

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 18:39:14 -07:00
ymao1 7e4ae48efa
[Alerting] Renaming alert instance summary to alert summary (#117023)
* Renaming alert instance summary to alert summary

* api docs

* fixing types

* updating functional test

* Updating i18n and data test sub

* fixing functional tests

* Cleanup

* Fixing unit tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 19:15:46 -05:00
Spencer 62f7c9da0f
Better support M1 users (#117766)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 22:47:52 +00:00
Patryk Kopyciński d366cffb24
[Osquery] Fix 7.16.0 BC4 issues (#117682) 2021-11-08 21:19:01 +00:00
Nathan Reese f68d5ad752
[maps] fix layer flashes when query is updated in query bar for mvt layers (#117590)
* [maps] fix layer flashes when query is updated in query bar for mvt layers

* remove unused services

* eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 14:17:16 -07:00
Quynh Nguyen 6e18f3ff09
[ML] Fix data visualizer grid failing if one of the fields failed and not updating when refreshed (#115644)
* [ML] Initial embed

* [ML] Initial embed props

* [ML] Add top nav link to data viz

* Add visible fields

* Add add data service to register links

* Renames, refactor, use constants

* Renames, refactor, use constants

* Update tests and mocks

* Embeddable

* Update hook to update upon time udpate

* Add filter support to query

* Refactor filter utilities

* Add filter support for embeddable

* Fix saved search data undefined

* Prototype aggregated view/document view switcher

* Prototype flyout

* Prototype save document view option in storage

* Fix filter and query conflict with saved search

* Minor styling edits

* [ML] Initial embed

* [ML] Initial embed props

* Add embeddable 1

* Add visible fields

* Embeddable 2

* Add filter support to query

* Refactor filter utilities

* Add filter support for embeddable

* Fix saved search data undefined

* Prototype aggregated view/document view switcher

* Prototype flyout

* Prototype save document view option in storage

* Fix filter and query conflict with saved search

* Minor styling edits

* Fix missing code after conflicts

* Remove dv locator and flyout

* Make types happy

* Fix types

* Rename toggle option

* Resolve conflicts

* [ML] Reduce size of chart

* [ML] Unbold name, switch icons of show distributions

* [ML] Make size consistent

* [ML] Make page size 25

* [ML] Switch to arrow right and down

* [ML] Make legend font smaller

* [ML] Add user setting

* [ML] Add show preview by default setting

* [ML] Match icon

* Add panels around the subcontent

* Add preference for aggregated vs doc

* Fix types

* Fix types, add constants for adv settings

* Change to data view type

* Temp fix for Kibana/EUI table overflow issue

* Modify line height so text is not cut off, modify widths for varying screen sizes

* Different width padders for different screens

* Fix CI

* Merge latest, move button to the right

* Fix width for bar charts previews

* Fix toggle buttons, fix maps

* Delete unused file

* Fix boolean styling

* Change to enum, discover mode

* Hide field stats

* Hide field stats

* Persist show mini preview/distribution settings

* Remove window size, use size observer instead

* Default to document view

* Remove bold, switch icon

* Set fixed width for top values, reduce font size in table

* Fix custom url tests

* Update width styling for panels

* Fix missing flag for Discover sidebar, jest tests

* Fix max width

* Workaround for sorting

* Fix import

* Fix styling

* Make height uniform, center alignment, fix map and keyword map not same size

Move styling

* Revert "Make height uniform, center alignment, fix map and keyword map not same size"

This reverts commit 8fc42e2f

* Revert "Make height uniform, center alignment, fix map and keyword map not same size"

This reverts commit 8fc42e2f

* Uniform height, left aligned, flex grid

* Switch top values to have labels

* Center content

* Replace fixed widths with percentage

* Fix table missing field types

* Add dashboard embeddable and filter support

* Fix file data viz styling and tests, lean up imports, remove hard coded pixels

* Add search panel/kql filter bar

* Temporarily fix scrolling

* New kql filters for data visualizer

* Set map height so it will fit the sampler shard size text

* Use eui progress labels

* Fix spacer

* Add beta badge

* Temporarily fix scrolling

* Fix grow for Top Values for

* [ML] Update functional tests to reflect new arrow icons

* [ML] Add filter buttons and KQL bars

* [ML] Update filter bar onChange behavior

* [ML] Update top values filter onChange behavior

* [ML] Update search filters when opening saved search

* [ML] Clean up

* [ML] Remove fit content for height

* [ML] Fix boolean legend

* [ML] Fix header section when browser width is small to large and when index pattern title is too large

* [ML] Hide expander icon when dimension is xs or s & css fixes

* [ML] Delete embeddables because they are not use

* [ML] Rename view mode, refactor to separate hook, add error prompt if can't show, rename wrapper, clean up & fix tests

* [ML] Make doc count 0 for empty fields, update t/f test

* [ML] Add unit testing for search utils

* Fix missing unsubscribe for embeddable output

* Remove redundant onAddFilter for this PR, fix width

* Rename Field Stats to Field stats to match convention

* [ML] Fix expand all/collapse all behavior to override individual setting

* [ML] Fix functional tests should be 0/0%

* [ML] Fix docs content spacing, rename classnames, add filters to Discover, lens, and maps

* [ML] Fix doc count for fields that exists but have no stats

* [ML] Fix icon styling to match Discover but have text/keyword/histogram

* [ML] Fix doc count for fields that exists but have no stats

* [ML] Rename classnames to BEM style

* Resolve latest changes

* Add in place ss

* Refactor helper functions

* Refactor helper functions

* Add error log

* Migrate overall stats to data's search

* Better handle errors

* Fix url so restore session brings back correct view

* Add progress bar

* [ML] Add tests for data viz in Discover

* [ML] Change to combinelatest

* Update tests & dashboard behavior to reflect new advanced settings

* Update telemetry

* Remove workaround after eui bump fix

* Remove dataloader

* Snapshot

* Migrate search to client side

* Consolidate types

* Change back to forkjoin instead of combinelatest for overallstats

* Fix missing bool clause

* Add login

* Fix saved search attributes broken with latest changes

* Update tests

* Fix import

* Match the no results found

* Reset field stats so it reloads when query is refreshed

* Reset field stats so it reloads when query is refreshed

* Add doc stats

* Merge to use hook completely

* Merge to use hook completely

* Fix doc chart doesn't show up when page is first mounted

* Fix Discover auto refresh previously didn't update

* Fix query util to return search source's results right away. Fix texts.

* Refactor documentStats

* Fix doc stats not showing upon page mount

* Fix types

* Delete old files

* Update tests & i18n

* Fix examples, tests

* Remove old files & routes

* Add telemetry, clean up, rename components for clarity

* Fix size of callout message

* Fix texts field

* Consolidate field type

* Consolidate field type, add count to top values

* Clean up

* Update tests

* Remove progress on embedadble

* Update snapshot

* Clean up, consolidate searchOptions

* Fix new es client types

* Fix types

* Fix loading state in Discover

* Remove unused services, Change switchMap to map, mergeMap -> switchMap, update types

* Fix missing filters

* Fix message of table to show searching instead of no items found

* Fix dashboard saved search source persisting time range

* [ML] Fix table message state

* [ML] Fix to not fetch field stats if cardinality is 0

* [ML] Fix locator missing view mode

* [ML] Quit right away if field doesn't exist in docs

* [ML] Change to use batch and only retry with individual field if failed

* [ML] Batch requests for speed and retry failures for resiliency

* No need to fetch field stats if overall stats haven't completed

* Wait on overallStats to complete

* Fix types after merge

* Fix payload size too big 413, num of requests

* Update field icon to using kbn/react-field package

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 14:36:10 -06:00
Corey Robertson 8f174b8063
Fixes issuse with dragging drop down. switch dropdown to use euiselect (#113960)
* Fixes issuse with dragging drop down.  switch dropdown to use euiselect

* Update snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 15:09:45 -05:00
Rudolf Meijering 853a0126fc
migrations: handle 200 response code from _cluster/health API on timeout 2021-11-08 21:06:07 +01:00
Tiago Costa 30493f90be
chore(NA): removes invalid ui_actions docs links (#117877) 2021-11-08 20:13:54 +01:00
Lucas F. da Costa 1b82502dbb
[User Experience] Add error boundary to prevent UX dashboard from crashing the application (#117583)
* wrap UX dashboard into an error boundary (fixes #117543)

* refactor APM root app tests to reuse coreMock

Before this change, the tests for the root application component of the
APM app were manually mocking the `coreStart` objects required to render
the component.

After this change, these tests will now reuse the relevant `coreMock`
methods.

* refactor: fix typo on createAppMountParameters test utility

Co-authored-by: Lucas Fernandes da Costa <lucas.fernandesdacosta@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 19:10:59 +00:00
Nathan Reese 635cad4817
[Maps] rename VectorLayer to GeoJsonVectorLayer and TiledVectorLayer to MvtVectorLayer (#117207)
* [Maps] rename VectorLayer to GeoJsonVectorLayer and TiledVectorLayer to MvtVectorLayer

* fix jest test

* eslint

* review feedback

* eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 10:45:57 -07:00
Quynh Nguyen b1e48fb96a
[ML] Display managed badge for transforms (#117679)
* [ML] Add managed badge

* Fix i18n

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 17:43:29 +00:00
Xavier Mouligneau 923df6557f
[SECURITY] Remove flakiness around edit user (#117558)
* wip

* convert flaky jest test to functional test

* improvement from review

* fix

* fix i18n

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 12:27:28 -05:00
Tim Sullivan 842852761e
[Reporting] Increase functional tests on feature priviliges (#117443)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 10:14:32 -07:00
Stratoula Kalafateli 828a5790e4
[Lens] Unskips heatmap test suite & stabilizes the dimensionConfiguration helper (#117811)
* [Lens] Unskips heatmap test suite

* Check if operation button exists
2021-11-08 18:58:31 +02:00
Rachel Shen 0c60cccff2
[Lens] fix focus on legend action popovers (#115066) 2021-11-08 09:52:49 -07:00
Dominique Clarke b23a139e88
[Observability] [Exploratory View] add exploratory view telemetry (#115882)
* add exploratory view telemetry

* add chart load time telemetry

* adjust types

* update telemetry logic

* adjust types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 11:50:39 -05:00
Yuliia Naumenko 08d7d62e8f
[Alerting UI] Fixed bug Search is not reset in Create rule flyout (#117807)
* [Alerting UI] Fixed bug Search is not reset in Create rule flyout

* fixed types
2021-11-08 08:37:31 -08:00
Anton Dosov bc56e60d58
[kibana_react] Extract <FieldButton /> and <FieldIcon/> to a package (#115377) 2021-11-08 17:33:14 +01:00
Christos Nasikas bbc50bc05a
[Connectors][ServiceNow] Update store links (#117374)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 18:01:19 +02:00
Søren Louv-Jansen acc7bd9d97
[APM] Ignore unavailable indices for ml jobs (#117632) 2021-11-08 16:12:52 +01:00
Julia Bardi f0017ce71e
[Fleet] Fixing unnecessary network requests on showing Fleet Server on prem instructions (#117647)
* removed fn dependency

* fixing useDefaultOutput

* fixed tslint
2021-11-08 14:32:20 +00:00
Pierre Gayvallet 2f52294c4a
Migrate remaining src/core/**/*.js files to typescript (#117259)
* migrate scoped_client_provider tests

* migrate saved_objects_client to ts

* fix return values assertions

* start fixing violations for repository.test.ts

* fix ~750 violations, 201 left

* 184 left

* 169 left

* 150 left

* 132 left

* fixed `find` violations, 117 left

* fixed `removeReferencesTo` violations, 114 left

* fixed `delete` violations, 105 left

* fixed `create` violations, 93 left

* fixed `checkConflicts` violations, 89 left

* fixed most `bulkUpdate` violations, 60 left

* fixed remaining `bulkUpdate` violations, 54 left

* fixed `bulkResolve` violations, 52 left

* fixed `bulkGet` violations, 37 left

* fixed most `bulkCreate` violations, 14 left

* fixed last `bulkCreate` violations, 5 left

* Everything but the SOR constructor

* ignore warning on SOR private constructor
2021-11-08 15:20:23 +01:00
Felix Stürmer 52464ca64a
[Stack Monitoring] Lazily import alerting expressions without blocking the plugin initialization (#117187)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 14:55:56 +01:00
Tiago Costa 4739397d7e
skip flaky suite (#117770) 2021-11-08 13:50:25 +00:00
Tiago Costa c6fc16fab5
skip failing es promotion suite (#117856) 2021-11-08 13:47:04 +00:00
Robert Oskamp 83a409c36a
[ML] Functional tests - add retries to custom URL service methods (#113749)
This PR further stabilizes the custom URLs tests by adding additional retries to the `create*CustomUrl` service methods.
2021-11-08 14:33:23 +01:00
Giorgos Bamparopoulos 9f2b77994b
[APM] Fix top dependencies tests (#117087)
* Fix dependencies tests

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-11-08 13:26:40 +00:00
Michael Olorunnisola 1f0cd7f703
[Security Solution][Investigations] - Fix replace all on main (#117680)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 08:02:28 -05:00
Giorgos Bamparopoulos 220cc6f191
Add e2e tests for service inventory (#117439) 2021-11-08 12:35:58 +00:00
Miriam 73a2d42076
Add e2e test for errors table on service overview page (#117292)
* Add e2e test for errors table on service overview page

* change test flow and improve 'describe' nesting

* delete no needed describe

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 12:25:53 +00:00
Josh Dover d6fad0e644
[Fleet] Fix copy and add back button to Beats tutorial pages (#117657) 2021-11-08 12:13:00 +00:00
Søren Louv-Jansen d13ee69bda
[APM] Document _inspect flag (#117635) 2021-11-08 12:52:20 +01:00
Matthias Wilhelm 9a3714f70d
[Discover] Adapt new folder structure (#115731)
- migrates public/application/apps to public/application
- moves shared code to public/components, public/services, public/utils
- public/application/embeddable is moved to public/embeddable
- public/application/doc_view and public/application/saved_searches are moved to public/services
- some minor cleanups
2021-11-08 12:39:25 +01:00
Faisal Kanout 497270d0b2
[RAC] Adding a dismiss button for the disclaimer experimental message on the alert page (#117283)
* Add Eui button with i18n

* Add localStorage flag to ack the experimental message

* Handle the UI feedback

* Update the init state of useState, remove useEffect hook

* Add data-attribute for testing

* Add functional tests

* Fix test value

* get back to original tests order for o11y

* Update tests

* Update localStoreg with JSON.parse to avoid confusion

* Fix check type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 11:43:10 +01:00
Miriam 38d07334e6
Add e2e test for errors page (#117687)
* Add e2e test for errors page

* rename file
2021-11-08 10:17:12 +00:00
Yaroslav Kuznietsov d61ae2e4a0
[MetricVis] Expression metricVis API update. (#114116)
* Added expressionMetricVis plugin.

* splited metric vis_type and expression.

* Fixed plugin docs.

* updated snapshots.

* Added code owner to expressionMetricVis.

* updated chart docs.

* Added storybook.

* Added bucket story.

* Added without label story.

* Added "with custom font size" story.

* Added other stories.

* Added DatatableColumn accessors.

* Replaced Metric with MetricOptions.

* added element to canvas.

* Added metric_vis ui model to canvas and removed `useRanges`.

* Fixed MetricOptions.any

* updated the check of min/max existence.

* Updated function/renderer names.

metricRenderer -> metricVisRenderer
metricFunction -> metricVisFunction

* Replaced colorRanges/invertColors/percentageMode with palette.

* Replaced legacy colors with palette.

* Remove usage of arguments bgFill and subText.

* Added mocks for storybook.

* removed dead code from `vis_types`.

* Support of custom font is added.

* Added support of custom labels.

* Added multitable support.

* Added support of multitable and autoresize.

* Cleaned up metric expression and tests

* added center to the metric to_ast.

* added first_datatable type.

* Changed first_datatable to lens_multitable.

* Fixed behaviour with rangeMin and rangeMax.

* Added fontUnit to the font expression and added pt option to the metricVis expression.

* Added comment to the metricVis expression at to_ast of vis_types/metric.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 11:12:04 +02:00
Jonathan Budzenski fca8cbff6a skip flaky suite. #111821 2021-11-07 19:14:04 -06:00
Spencer 5a4a38148d
[docs] rewrite docs cli to show logs and use modern apis (#117767)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-11-06 20:31:22 -05:00
Søren Louv-Jansen 27f127d581
[APM] Add termQuery helper (#117655) 2021-11-07 00:05:46 +00:00
Tiago Costa 14287912e2
skip flaky suite (#116048) 2021-11-06 16:15:39 +00:00
Brian Seeders 3fc3f36c9a skip flaky suite (#89397) 2021-11-05 23:47:57 -04:00
Cauê Marcondes d41cf6fa01
[APM] Replace manual rate calculation with rate agg (#115651)
* adding rate agg

* fixing build

* roolback changes

* updating snaps

* fixing test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-05 22:22:11 +00:00
Cauê Marcondes eda118eec1
api tests (#117723) 2021-11-05 18:17:49 -04:00
Catherine Liu 57a53dbbb6
Revert "Revert "[Canvas] By-Value Embeddables (#113827)" (#116527)" (#117613)
* Revert "Revert "[Canvas] By-Value Embeddables (#113827)" (#116527)"

This reverts commit 9e6e84571f.

* Fix ts error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-05 15:11:56 -07:00
Felix Stürmer 7455bde296
Add levels for registered deprecations (#117691) 2021-11-05 23:10:55 +01:00
Quynh Nguyen 6fe005268a
[ML] Add functional tests for Field statistics embeddable in Dashboard, check for filters (#116774)
* [ML] Add functional tests for dashboard embeddable, filters

* [ML] Fix permissions

* [ML] Update tests to use bulk api

* [ML] Change to constants

* [ML] Fix savedSearchTitle

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-05 21:47:06 +00:00