Commit graph

1303 commits

Author SHA1 Message Date
Dima Arnautov
bd277583e7
[8.0] [ML] Fix flaky Trained Models tests (#125484) (#125623)
* [ML] Fix flaky Trained Models tests  (#125484)

* add extra assertion

* prevent extra call on init

* fix stats call

(cherry picked from commit b51c87f24c)

# Conflicts:
#	x-pack/test/functional/services/ml/common_ui.ts
#	x-pack/test/functional/services/ml/index.ts

* update refresh button check
2022-02-15 08:36:32 -07:00
Kibana Machine
8381a82d64
[ML] Fix Trained Model stats and pipelines tab (#125382) (#125421)
(cherry picked from commit 67fb388acd)

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2022-02-11 12:34:19 -07:00
James Gowdy
8de9d603a1
[ML] Fix anomaly detector jobs list search delay (#124328) (#124845)
(cherry picked from commit fd0e1aed0e)

# Conflicts:
#	x-pack/plugins/ml/public/application/jobs/jobs_list/components/jobs_list_view/jobs_list_view.js

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-11 08:30:08 +00:00
Marco Vettorello
676b061ad8
[charts] Fix timezone regression in charts (#123663) 2022-01-25 10:04:23 +01:00
Brian Seeders
8b2db69a3e
Revert "[charts] Fix timezone regression in charts (#123478)"
This reverts commit 3e3b0f79ff.
2022-01-21 11:15:45 -05:00
Marco Vettorello
3e3b0f79ff
[charts] Fix timezone regression in charts (#123478) 2022-01-21 12:54:15 +01:00
Kibana Machine
c702042429
hide time_in_millis column (#122936) (#122943)
(cherry picked from commit f1f35660f0)

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2022-01-13 08:54:24 -07:00
Kibana Machine
dc71bad61f
[ML] Fixing model bounds in new job wizard (#122562) (#122751)
(cherry picked from commit c3bf4e05df)

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2022-01-12 03:48:41 -07:00
Kibana Machine
4b2c69ef50
[ML] Functional tests - stabilize anomaly explorer tests (#122247) (#122317)
This PR stabilizes the anomaly explorer tests for adding a swim lane to a dashboard by validating the dashboard table row count after filtering.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2022-01-05 04:06:43 -07:00
Walter Rafelsberger
13229a7f3e
[ML] Fix model size stats. (#121958) (#121973)
The API for model size stats changed attributes and structure. This picks up the changes to fix the display of model sizes on the ML overview page and model management page.
# Conflicts:
#	x-pack/plugins/ml/server/models/data_frame_analytics/models_provider.ts
2021-12-23 17:11:09 -07:00
Quynh Nguyen
f681266481
Resolve conflicts to 8.0 (#121700) 2021-12-20 17:39:41 -06:00
Kibana Machine
381dc13b93
[ML] Add initial docs screenshot generation (#121495) (#121645)
This PR utilizes the functional test runner to walk through the UI and take a couple screenshots for use in the documentation.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-12-20 09:03:31 -07:00
James Gowdy
4d4d6361ea
[ML] Fixing data view search based on title (#120737) (#120781)
* [ML] Fixing data view search based on title

* removing size argument
# Conflicts:
#	x-pack/plugins/ml/server/lib/alerts/alerting_service.ts
2021-12-09 10:30:26 +00:00
Melissa Alvarez
7c4ff8af82
add timestamp header to rect annotation tooltip (#120702) (#120835) 2021-12-08 14:46:14 -07:00
Melissa Alvarez
1c75b10c8d
do not add depvar to includes for outlier job (#120816) (#120827) 2021-12-08 14:02:48 -07:00
Melissa Alvarez
74200e2ed2
[ML] Data frame analytics wizard: Only allow data view creation if job will be started (#120042) (#120716)
* Only allow data view creation if job will be started

* update tests

* no stat fetching when job not started

* ensure result index exists before dataview creation attempt

* update error message and increase retry delay

* use getIdsWithTitle to avoid fieldsWithWildcard call

* move dataview validation to create step

* use exists api in ml index_exists endpoint

* refactor retry function

* fix duplicate i18n ids

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-08 00:53:13 -07:00
Kibana Machine
bd90843b9e
[ML] Fixes data grid column actions button when histogram charts are visible (#120202) (#120519)
* [ML] Fixes data grid column actions button when histogram charts are visible

* [ML] Adjust histogram color tolerance values

* [ML] Remove test tag

* [ML] Stabilize canvas element test by rounding color values

* [ML] Adjust color tolerance values

* [ML] Further color tolerance adjustments

* [ML] Adjust more color tolerance expected values

* [ML] More color stat adjustments

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

Co-authored-by: Pete Harverson <pete@elastic.co>
2021-12-06 10:57:04 -07:00
Kibana Machine
0699875371
[ML] Fixing job selector time range charts (#120343) (#120368)
Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-12-03 10:32:05 -07:00
Kibana Machine
b9888d24d3
[ML] Disabling delete data view for data frame analytics and transforms wizards (#119732) (#119751)
* [ML] Disabling delete data view for data frame analytics and transforms wizards

* bulk transforms

* unused variable

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-11-25 11:34:21 -07:00
Kibana Machine
eb33288f0d
[8.0] [ML] Support force stop deployment (#118563) (#119710)
* [ML] Support `force` stop deployment  (#118563)

* support force stop

* fix i18n, revert tests

* update text

* remove "Force" from the confirmation modals

* update i18n import

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-11-25 07:24:05 -07:00
Tiago Costa
beb041b24f
[8.0] chore(NA): splits types from code on @kbn/i18n (#119256) (#119649)
* chore(NA): splits types from code on @kbn/i18n (#119256)

* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): disable validator on ts_project rule

* chore(NA): use the wrapper for ts_project

* commit using @elastic.co

* chore(NA): commit using @elastic.co

* chore(NA): split types from code on @kbn/i18n

* chore(NA): update yarn.lock file

* chore(NA): split @kbn/i18n and @kbn/i18n-react

* chore(NA): missing import fix

* chore(NA): fix jest project configs

* chore(NA): change imports on kbn i18n

* chore(NA): change imports on kbn i18n

* chore(NA): correct loader imports

* chore(NA): missnig i18nLoader export key

* chore(NA): fix type exports

* chore(NA): export type only

* chore(NA): export type only

* fix(NA): type exports

* chore(NA): missing @Kbn/i18n/react imports

* chore(NA): missing skip path for kbn-i18n-react

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	packages/BUILD.bazel
#	packages/kbn-monaco/BUILD.bazel
#	src/core/public/core_app/status/components/server_status.tsx
#	src/core/public/core_app/status/components/status_table.tsx
#	src/core/public/core_app/status/components/version_header.tsx
#	src/core/public/core_app/status/status_app.tsx
#	src/plugins/console/public/application/components/storage_quota_error.tsx
#	src/plugins/dashboard/public/application/listing/dashboard_listing.tsx
#	src/plugins/data_view_field_editor/public/components/field_editor/form_fields/script_field.tsx
#	src/plugins/dev_tools/public/application.tsx
#	src/plugins/discover/public/application/apps/context/context_app_route.tsx
#	src/plugins/discover/public/application/apps/doc/single_doc_route.tsx
#	src/plugins/discover/public/application/apps/main/components/doc_table/components/table_row_details.tsx
#	src/plugins/discover/public/application/apps/main/components/layout/discover_documents.tsx
#	src/plugins/discover/public/application/components/table/table_columns.tsx
#	src/plugins/discover/public/application/components/table/table_row_btn_filter_remove.tsx
#	src/plugins/discover/public/application/components/table/table_row_btn_toggle_column.tsx
#	src/plugins/index_pattern_editor/public/open_editor.tsx
#	src/plugins/interactive_setup/public/plugin.tsx
#	src/plugins/kibana_overview/public/application.tsx
#	src/plugins/kibana_react/public/util/to_mount_point.tsx
#	src/plugins/presentation_util/public/components/field_picker/field_search.tsx
#	src/plugins/vis_types/timeseries/public/timeseries_vis_renderer.tsx
#	src/plugins/vis_types/xy/public/vis_renderer.tsx
#	src/plugins/visualizations/public/wizard/show_new_vis.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/error_display.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/instructions.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/main.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/pipelines_csv_uploader.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/pipelines_preview.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_list/empty_list.tsx
#	x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx
#	x-pack/plugins/lens/public/indexpattern_datasource/utils.tsx
#	x-pack/plugins/lens/public/metric_visualization/visualization.tsx
#	x-pack/plugins/lens/public/pie_visualization/render_function.tsx
#	x-pack/plugins/maps/public/classes/sources/ems_tms_source/update_source_editor.js
#	x-pack/plugins/maps/public/classes/sources/es_search_source/util/scaling_documenation_popover.tsx
#	x-pack/plugins/security/public/authentication/access_agreement/access_agreement_page.tsx
#	x-pack/plugins/security/public/authentication/logged_out/logged_out_page.tsx
#	x-pack/plugins/security/public/authentication/login/login_page.tsx
#	x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_page.tsx
#	x-pack/plugins/security/public/management/users/users_management_app.tsx
#	x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/form/index.tsx
#	x-pack/plugins/spaces/public/space_selector/space_selector.tsx
#	yarn.lock

* chore(NA): missing @kbn/i18n/react imports
2021-11-24 12:19:43 -07:00
Kibana Machine
ee0d9d7126
[ML] Functional tests - stabilize and re-enable anomaly explorer tests (#118658) (#119638)
This PR stabilizes the anomaly explorer functional tests by adding waits and retries.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-11-24 11:19:08 -07:00
Kibana Machine
9ff581ea16
[ML] Catching error for syntax error in job wizard editor (#119457) (#119616)
Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-11-24 08:46:21 -07:00
Kibana Machine
f61fdc82ce
[ML] Fix error handling for missing data view in data frame analytics wizard (#119455) (#119502)
* [ML] Fix error handling for missing data view in data frame analytics wizard

* [ML] Fix jest tests

Co-authored-by: Pete Harverson <pete@elastic.co>
2021-11-23 14:22:37 -07:00
Kibana Machine
099dabd378
[ML] Model management fixes and usability enhancements (#118240) (#119293)
* [ML] update expanded rows on refresh

* [ML] truncateText for start and state columns

* remove deployment stats endpoints, replace with the trained models stats

* update layout for pipelines

* add edit icon

* rename deployment actions

* add panels for pipelines tab

* change deployment stats layout

* remove redundant fields from node details

* render roles with badges

* format nodes attrs

* hide empty stats tab

* enable trained models tests

* add canViewMlNodes capability, hide Nodes tab for the viewer

* remove unused translation

* support force stop

* import default ml capabilities in the security_solutions plugin

* update translation string id

* Revert "support force stop"

This reverts commit 1b1a3b22

* fix translation string ids

* remove mock id

* rename test subject

* remove getTrainedModelDeploymentStats leftovers

* update tags for nodes_overview endpoint

* update api integration tests

* fix paddings

* add info icons for ingest stats

* update api integration tests for capabilities with spaces

* expand first 3 pipelines by default

* fix typo in the filename

* add help_icon component

* fix test assertion

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-11-22 04:58:35 -07:00
Kibana Machine
617297231c
[ML] Disabling create data view for data frame analytics and transforms wizards (#117690) (#118502)
* [ML] Disabling create data view for data frame analytics and transforms wizards

* removing dfa results link

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

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-11-15 03:15:59 -07:00
Kibana Machine
3018f56bd1
[ML] Fix Single metric viewer time slider border not adjusting to window size changes (#117946) (#118409)
* SMV context brush border investigation

* [ML] Remove smvTimeSlider

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

Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
2021-11-11 14:39:23 -05:00
Kibana Machine
c61386b430
[ML] Display warning if clone job fails due to missing data view (#117993) (#118373)
* [ML] Display warning if clone job fails due to missing data view

* [ML] Edits following review

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

Co-authored-by: Pete Harverson <pete@elastic.co>
2021-11-11 12:04:22 -05:00
Melissa Alvarez
b49687afe7
[ML] Data Frame Analytics list - ensure refresh works as expected (#117959) (#118365)
* move includes fields error below analysis table

* ensure analytics list refresh interval is respected

* check global state before overwriting timepicker interval setting

* ensure refreshInterval persists between tabs

* handle undefined globalState

* stabilize openMapView service method

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-11-11 11:45:59 -05:00
Spencer
7595121751
[8.0] Remove direct usage of EUI theme vars (#116232) (#118228)
* Remove direct usage of EUI theme vars (#116232)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/discover/public/application/components/discover_grid/discover_grid_document_selection.tsx
#	x-pack/plugins/apm/ftr_e2e/cypress/integration/read_only_user/service_inventory/service_inventory.spec.ts
#	x-pack/plugins/apm/public/application/uxApp.tsx

* commit using @elastic.co
2021-11-10 16:26:34 -05:00
Marco Vettorello
d010d54abf
[8.0] [heatmap] Fix x time scale with calendar intervals (#117619) (#118065)
* [heatmap] Fix x time scale with calendar intervals (#117619)

The commit fixes the Lens heatmap time axis when used with calendars time intervals in date_histogram aggs
# Conflicts:
#	package.json
#	yarn.lock

* commit using @elastic.co
2021-11-09 20:24:25 +00:00
Kibana Machine
94f639c24a
[ML] Data view loading refactor (#116455) (#117267)
* [ML] Data view loading refactor

* more renaming

* more renaming

* fixing tests

* fixing jest test

* small changes based on review

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

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-11-09 11:44:55 +00:00
Kibana Machine
a11ae4949e
[ML] Fixes for the Model Management table (#117293) (#117813)
* [ML] allocated models as a table

* [ML] handle fetching stats for stopped model

* [ML] change date formatter, enable check for start and stop action, change icon

* [ML] hide stats tab when not stats are available

* [ML] update state on action

* [ML] update memory breakdown message

* [ML] fix type

* [ML] fix functional test

* [ML] render nodes as links

* [ML] fix locator types

* [ML] support node name in the URL state

* [ML] update icon

* [ML] routing state with reason tooltip

* [ML] move experimental tag

* [ML] add state column, fix import

* [ML] update stats on aciton

* [ML] refresh by timer

* [ML] rename fetchStats callback

* [ML] replace with promise.all

* [ML] add deployment state const

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-11-08 10:54:24 +00:00
Kibana Machine
234d8c8555
[ML] Hide anomaly entity filter button tooltips when clicked (#117493) (#117584)
* [ML] Hide anomaly entity filter button tooltips when clicked

* [ML] Move logic into blurButtonOnClick helper function

Co-authored-by: Pete Harverson <peteharverson@users.noreply.github.com>
2021-11-05 11:19:33 +00:00
Kibana Machine
5648faacb3
[File data visualizer] Disabling create data view based on capabilities (#117347) (#117520)
* [File data visualizer] Disabling create data view based on capabilities

* removing data view management card based on permissions

* fixing reset button and index data viz link

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-11-04 15:54:01 +00:00
Spencer
7d3d79e6a1
[8.0] [eslint] enable type-specific lint rules (#114184) (#117444)
* [eslint] enable type-specific lint rules (#114184)

* [eslint] enable type-specific lint rules

* autofix violations

* duplicate eslint-disable to new export statement

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/share/common/index.ts

* autofix more types

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-11-04 03:02:56 +00:00
Kibana Machine
3b7907820e
[ML] fix ticks, add custom colors inline (#117159) (#117204)
Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-11-02 20:07:45 +00:00
Kibana Machine
50f3b3105b
[ML] Renaming index patterns for job wizards (#116250) (#116935)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-11-01 15:42:04 +00:00
Kibana Machine
c3975565e7
[ML] Anomaly Detection: Functional tests for anomaly detection forecasts. (#116140) (#116609)
Functional tests for anomaly detection forecasts.
2021-10-30 18:53:08 +01:00
Melissa Alvarez
cfb6b80aea
[ML] Data Frame Analytics Wizard: ensure includes updated correctly on dependent variable change (#116381) (#116805)
* ensure included fields not overwritten + reduce unnecessary renders.

* ensure editor validation works

* ensure depVar always in includes

* ensure selected runtimeField depVar option is shown

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-30 03:04:34 +01:00
Dima Arnautov
37632f1798
[ML] Nodes overview for the Model Management page (#116361)
* [ML] Nodes overview for the Model Management page  (#115772)

* [ML] trained models tab

* [ML] wip nodes list

* [ML] add types

* [ML] add types

* [ML] node expanded row

* [ML] wip show memory usage

* [ML] refactor, use model_memory_limit for dfa jobs

* [ML] fix refresh button

* [ML] add process memory overhead

* [ML] trained models memory overview

* [ML] add jvm size, remove node props from the response

* [ML] fix tab name

* [ML] custom colors for the bar chart

* [ML] sub jvm size

* [ML] updates for the model list

* [ML] apply native process overhead

* [ML]add adjusted_total_in_bytes

* [ML] start and stop deployment

* [ML] fix default sorting

* [ML] fix types issues

* [ML] fix const

* [ML] remove unused i18n strings

* [ML] fix lint

* [ML] extra custom URLs test

* [ML] update tests for model provider

* [ML] add node routing state info

* [ML] fix functional tests

* [ML] update for es response

* [ML] GetTrainedModelDeploymentStats

* [ML] add deployment stats

* [ML] add spacer

* [ML] disable stop allocation for models with pipelines

* [ML] fix type

* [ML] add beta label

* [ML] move beta label

* [ML] rename model_size prop

* [ML] update tooltip header

* [ML] update text

* [ML] remove ts ignore

* [ML] update types

* remove commented code

* replace toast notification service

* remove ts-ignore

* remove empty panel

* add comments, update test subjects

* fix ts error

* update comment

* fix applying memory overhead

* Revert "fix applying memory overhead"

This reverts commit 0cf38fbead.

* fix type, remove ts-ignore

* add todo comment

(cherry picked from commit 605e9e2d3d)

* updates for the latest elasticsearch client

* hide allocated models when missing

* [ML] Update jest test mock

Co-authored-by: Quynh Nguyen <quynh.nguyen@elastic.co>
2021-10-27 11:29:57 +02:00
spalger
960b037f81 Revert "[ML] Nodes overview for the Model Management page (#115772)"
This reverts commit 605e9e2d3d.
2021-10-26 13:52:01 -05:00
Dima Arnautov
605e9e2d3d
[ML] Nodes overview for the Model Management page (#115772)
* [ML] trained models tab

* [ML] wip nodes list

* [ML] add types

* [ML] add types

* [ML] node expanded row

* [ML] wip show memory usage

* [ML] refactor, use model_memory_limit for dfa jobs

* [ML] fix refresh button

* [ML] add process memory overhead

* [ML] trained models memory overview

* [ML] add jvm size, remove node props from the response

* [ML] fix tab name

* [ML] custom colors for the bar chart

* [ML] sub jvm size

* [ML] updates for the model list

* [ML] apply native process overhead

* [ML]add adjusted_total_in_bytes

* [ML] start and stop deployment

* [ML] fix default sorting

* [ML] fix types issues

* [ML] fix const

* [ML] remove unused i18n strings

* [ML] fix lint

* [ML] extra custom URLs test

* [ML] update tests for model provider

* [ML] add node routing state info

* [ML] fix functional tests

* [ML] update for es response

* [ML] GetTrainedModelDeploymentStats

* [ML] add deployment stats

* [ML] add spacer

* [ML] disable stop allocation for models with pipelines

* [ML] fix type

* [ML] add beta label

* [ML] move beta label

* [ML] rename model_size prop

* [ML] update tooltip header

* [ML] update text

* [ML] remove ts ignore

* [ML] update types

* remove commented code

* replace toast notification service

* remove ts-ignore

* remove empty panel

* add comments, update test subjects

* fix ts error

* update comment

* fix applying memory overhead

* Revert "fix applying memory overhead"

This reverts commit 0cf38fbead.

* fix type, remove ts-ignore

* add todo comment
2021-10-26 18:39:37 +01:00
Melissa Alvarez
d91bd98e97
retain query language on step edit (#116227) 2021-10-26 10:49:45 -04:00
Pete Harverson
9c92ac881a
[ML] Fix errors from annotations searches when event mapping is incorrect (#116101)
* [ML] Fix errors from annotations searches when event mapping is incorrect

* [ML] Delete tests on annotation errors due to incorrect mappings

* [ML] Jest test fix and remove unused servuce method

* [ML] type fix

* [ML] Edits following review
2021-10-26 14:02:43 +01:00
Mikhail Shustov
3c8fa527a7
[ES] Upgrade client to v8.0 (#113950)
* bump to a pre-8.0 version

* export KibanaClient from /lib sub-folder

* workaround the problem of the absence of estypes

* update es client usage in pacakges

* export estypes from another path

* import errors from root

* import errors from root 2

* update transport import

* update import path for /api/types

* update import path for /api/types

* import errors from top export

* use TransportResult instead if ApiResponse

* fix errors in client_config

* fix src/core/server/saved_objects/migrationsv2/actions/integration_tests/actions.test.ts

* use KibanaClient in mock. we dont export the original Client

* fix client mocks

* fix errors on SO

* fix remaining core errors

* update estype import path

* fix errors in data plugin

* fix data_views

* fix es_ui_shared

* fix errors in interactive_setup

* fix errors in ./test folder

* add @elastic/transport to the runtime deps

* fix errors in packages

* fix erros in src/core

* fix errors in test/

* fix an error in actions plugin

* woraround and fix errors in APM plugin

* fix errors in canvas

* fix errors in event_log

* fix errors in fleet

* fix errors in ILM

* fix errors in infra

* fix errors in ingest_pipeline

* fix errors in lens

* fix errors in license_management

* fix errors in licensing

* fix errors in logstash

* fix errors in ml

* fix errors in monitoring

* fix errors in observability

* fix errors in rule_registry

* fix errors in reporting

* fix errors in rule_registry

* fix errors in security

* fix errors in security_solution

* fix errors in snapshot_restore

* fix errors in transform

* fix errors in UA

* fix errors in uptime

* fix errors in x-pack/test

* fix eslint errors

* fix new errors

* use default HTTP Connection. Undici does not support agent config options keepAlive and maxSockets

* create does not accept require_alias option

* update deps

* use transport types exported from ES client package

* fix ErrorCause | string errors

* do not use enum

* fix errors in data plugin

* update x-pack code

* fix transport

* fix apm search request

* do not crash on reporting

* fix kbn-test build

* mute reporting error to start

* fix ftr build

* another attempt

* update import path

* address or mute new errors

* REMOVE me. pin transport version temporarily.

* remove deep imports from transport package

* fix jest crash

* fix product check tests

* remove unnecessary ts-expect-error

* fix a few failed unit tests

* bump to canary 24

* remove unnecessary ts-expect-error

* remove dependency on transport

* fix types in tests

* mute errors in xpack tests

* product check doesn;t  spam in logs anymore

* filterPath --> filter_path

* ignoreUnavailable --> ignore_unavailable

* ignoreUnavailable --> ignore_unavailable

* trackScores --> track_scores

* trackTotalHits --> track_total_hits

* fix es-arcives

* fix data plugin crashes

* fix watcher test utils

* rollback unnecessary changes

* fix another problem in es-archiver

* fix scroll. for whatever reason scroll fails when request scroll_id in body

* add meta: true in kbn-securitysolution-es-utils

* bump client to canary 25

* fix errors in accordance with the es client spec

* update securityscolution-es-utils

* unify scroll api in reporting and fix tests

* fix unit tests in watcher

* refactor APM to abort request with AbortController API

* fix missing es client calls in tests

* fix missing meta in detection engine FTR tests

* fix another bunch of errors in js tests

* fix wrong coercion

* remove test-grep pattern

* fix apm unit test

* rename terminateAfter to terminate_after in infra plugin

* rename terminateAfter to terminate_after in uptime plugin

* rename terminateAfter to terminate_after in apm plugin

* fix security roles FTR tests

* fix reference

* fix post_privilidges test

* fix post_privilidges

* bump client to 26

* add meta for index_management test helpers

* remove ts-expect-error caused by bad type in reason

* bump client to 27

* REMOVE me. workaround until fixed in the es client

* fix incorrect type casting

* swtich from camelCase params

* use `HttpConnection` for FTR-related clients

* bump client to 29

* Revert "REMOVE me. workaround until fixed in the es client"

This reverts commit c038850c09.

* fix new util

* revert repository changes

* do not crash if cannot store event_loop data

* fix new estypes imports

* fix more types

* fix security test types and add ts-ignore for custom ES client

* fix more estypes imports

* yet more ts violations

* line by line fixing is hard

* adapt `evaluateAlert` from infra as it's also used from FTR tests

* use convertToKibanaClient in FTR test instead of meta:true in plugin code

* migrate from deprecated API in fleet

* fix intergration tests

* fix fleet tests

* fix another fleet test

* fix more tests

* let's call it a day

* Removes custom header check on 404 responses, includes es client ProductNotSupportedError in EsUnavailableError conditional (#116029)

* Removes custom header check on 404 responses, includes es client ProductNotSupportedError in EsUnavailableError conditional

* Updates proxy response integration test

* disable APM until compatible with client v8

* skip async_search FTR test

* use kbnClient in integration tests

* bump version to 29

* bump to 30

* have configureClient return a KibanaClient instead of Client, remove resolved violations.

* bump to 31

* bump to 31

* Revert "bump to 31"

This reverts commit 5ac713e640.

* trigger stop to unusubscribe

* update generated docs

* remove obsolete test

* put "as" back

* cleanup

* skip test

* remove new type errors in apm package

* remove ErrorCause casting

* update a comment

* bump version to 32

* remove unnecessary ts-expect-error in apm code

* update comments

* update to client v33

* remove outdated type definition

* bump to 34 without params mutation

* unskip the test that should not fail anymore

* remove unnecessary ts-expect-error comments

* update to v35. body can be string

* move `sort` to body and use body friendly syntax

* fix a failing test. maps register the same SO that has been already registered by home

Co-authored-by: pgayvallet <pierre.gayvallet@gmail.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-10-26 14:08:22 +02:00
James Gowdy
4cc94c5a45
[ML] Fixing index data visualizer not available when no ML nodes available (#115972)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-25 16:54:32 +01:00
Walter Rafelsberger
ed99e2466a
[ML] Fix legend text colors for Vega based charts in dark mode. (#115911)
Fixes the legend text colors for Vega based charts in dark mode.
2021-10-25 10:50:35 +01:00
Quynh Nguyen
6600f1ad78
[ML] Add Index data visualizer grid embeddable as extra view within Discover (#107184)
* [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

* [ML] Add tests for data viz in Discover

* Update tests & dashboard behavior to reflect new advanced settings

* Update telemetry

* Remove workaround after eui bump fix

* Fix missing bool clause

* Add login

* Fix saved search attributes broken with latest changes

* Update tests

* Fix import

* Match the no results found

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

* Rename old test suits to farequoteDataViewTestData

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-21 10:32:21 -07:00
Matthew Kime
d2dea6816c
[data view mgmt] change urls from indexPatterns to dataViews (#114912)
* index pattern management to data view url changes
2021-10-21 05:42:13 -05:00