Commit graph

1574 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
Kibana Machine
b23900728c
[ML] Fixing results service space checks (#124707) (#124833)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit afb458ede7)

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2022-02-11 02:59:17 -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
Quynh Nguyen
d5a9f0b375
[ML] Fix runtime field validations not supporting special script types (#122469) (#125300)
* Fix validations not handling extra things like params or lang

* Add translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit f8d932f70a)
2022-02-10 14:07:37 -07: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
0bec1f8e9e
Update more ML URLs in doc link service (#123432) (#123488)
(cherry picked from commit 8b2c40bcb5)

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2022-01-20 11:29:02 -07:00
Kibana Machine
93d9bd5445
Update ML URLs in doc link service (#123328) (#123346)
(cherry picked from commit de7d48a55f)

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2022-01-19 03:46:45 -07: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
9b212241e9
[APM] Offer users upgrade to multi-metric job (#119980) (#120605)
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-12-07 07:44:56 -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
626af079ba
[Fleet] Handle Saved Object ID changes (#108959) (#119527) (#120481)
* Do not add fields to index patterns

* remove redundant tests

* install index patterns before package install

* update remove comment

* use import to create package assets

Here I have also moved to importing all assets at once. This is essential when importing to ensure that all saved objects references are imported at once. There is also an efficiencey improvement.

* Import index patterns

* use resolve when deleting index patterns

* fix: asset type validation

* add option to override supported import types

* make ml-module importable

* Revert "add option to override supported import types"

This reverts commit 1f48e6ee193fea5e5cb0f37c70cbfa7ae47eeab5.

* remove hidden: false from ml-module

* use resolve when deleting assets

* make security-rule SO type importable

* use bulkResolve to get package assets

* fix tests

* fix 'multiple' tests

* remove unused function

* create index patterns at the same time as other assets

* remove unused test

* Fix integration tests
We were checking for an error before the import was complete.

* tidy for PR

* add missing test assets

* do not attempt to delete missing assets

* resolve any reference errors that occur on import

* await installKibanaAssets immediately

* show assets not found when assets installed in a different space

* fix delete asset check on force upgrade

* add comment about reference errors

* remove a couple of appContextService dependencies

Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2021-12-06 07:53:13 -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
Matthew Kime
f166d18c72
[data views] check kibana capabilities for all saving / editing / deleting (#118480) (#120319)
* implement permissions check

* implement permissions check

* fix server side usage

* pass request in more places

* add tests, cleanup

* infra doesn't edit data views

* reporting only reads data views

* update api consumers to reflect read only access

* update api consumers to reflect read only access

* Update index.ts

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-02 22:53:45 -07:00
Kibana Machine
233643ede4
[ML] Removes APM NodeJS and RUM Javascript modules (#119945) (#120084)
* [ML] Removes APM NodeJS and RUM Javascript modules

* [ML] Delete unnecessary module_apm archive

* [ML] Fix get_module API test

Co-authored-by: Pete Harverson <pete@elastic.co>
2021-12-01 06:08:45 -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
4c73db0cb2
[ML] Fix data view service permissions (#119712) (#119728)
Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-11-25 08:03:24 -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
Kibana Machine
214b790b20
[ML] Fix anomaly detection module manifest queries to ignore frozen and cold tiers (#119635) (#119705)
Co-authored-by: Pete Harverson <pete@elastic.co>
2021-11-25 03:50:40 -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
10bd0ea8c6
[ML] Fixing update datafeed endpoint (#119515) (#119614)
* [ML] Fixing update datafeed endpoint

* adding comments

* using internal user

* updating comment

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-11-24 08:36:06 -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
Kibana Machine
9ac0a34f0a
[APM] Reinstate ML multi-metric job (#117836) (#118333)
Closes #101734.

This reverts commit 008421f.

Additionally, incorporate suggested changes from #101734 (comment).

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-11-11 09:36:32 -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
2515207572
[ML] Update headers structure for the API docs (#117865) (#117988)
* change headers level for new docs

* increase level for groups and methods, remove h2 for the project name

* bump version

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-11-09 12:38:36 +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
748db69697
[APM] Ignore unavailable indices for ml jobs (#117632) (#117872)
Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
2021-11-08 17:24:59 +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
4ac00f95c8
Revert "[ML] Set ignore_throttled (#117208)" (#117671) (#117713)
This reverts commit 2f24d14e

Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
2021-11-05 19:41:55 +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
ba7f7c4068
[ML] Set ignore_throttled (#117208) (#117525)
Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
2021-11-04 16:06:03 +00:00