Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Upgrade Assistant] Update readme #112195

Merged
merged 2 commits into from
Sep 15, 2021

Conversation

alisonelizabeth
Copy link
Contributor

This PR updates the UA readme and adds additional testing instructions for the Kibana deprecations page.

@alisonelizabeth alisonelizabeth added chore Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes Feature:Upgrade Assistant v7.16.0 labels Sep 15, 2021
@alisonelizabeth alisonelizabeth marked this pull request as ready for review September 15, 2021 00:21
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-management (Team:Stack Management)

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/ml/anomaly_detection/anomaly_explorer·ts.machine learning anomaly detection anomaly explorer with farequote based multi metric job renders View By swim lane

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: machine learning
[00:00:00]           └-> "before all" hook in "machine learning"
[00:00:00]           └-: 
[00:00:00]             └-> "before all" hook in ""
[00:00:00]             └-> "before all" hook in ""
[00:00:00]               │ debg creating role ft_ml_source
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_ml_source]
[00:00:00]               │ debg creating role ft_ml_source_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_ml_source_readonly]
[00:00:00]               │ debg creating role ft_ml_dest
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_ml_dest]
[00:00:00]               │ debg creating role ft_ml_dest_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_ml_dest_readonly]
[00:00:00]               │ debg creating role ft_ml_ui_extras
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_ml_ui_extras]
[00:00:00]               │ debg creating role ft_default_space_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_default_space_ml_all]
[00:00:00]               │ debg creating role ft_default_space1_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_default_space1_ml_all]
[00:00:00]               │ debg creating role ft_all_spaces_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_all_spaces_ml_all]
[00:00:00]               │ debg creating role ft_default_space_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_default_space_ml_read]
[00:00:00]               │ debg creating role ft_default_space1_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_default_space1_ml_read]
[00:00:00]               │ debg creating role ft_all_spaces_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_all_spaces_ml_read]
[00:00:00]               │ debg creating role ft_default_space_ml_none
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_default_space_ml_none]
[00:00:00]               │ debg creating user ft_ml_poweruser
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_poweruser]
[00:00:00]               │ debg created user ft_ml_poweruser
[00:00:00]               │ debg creating user ft_ml_poweruser_spaces
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_poweruser_spaces]
[00:00:00]               │ debg created user ft_ml_poweruser_spaces
[00:00:00]               │ debg creating user ft_ml_poweruser_space1
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_poweruser_space1]
[00:00:00]               │ debg created user ft_ml_poweruser_space1
[00:00:00]               │ debg creating user ft_ml_poweruser_all_spaces
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_poweruser_all_spaces]
[00:00:00]               │ debg created user ft_ml_poweruser_all_spaces
[00:00:00]               │ debg creating user ft_ml_viewer
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_viewer]
[00:00:01]               │ debg created user ft_ml_viewer
[00:00:01]               │ debg creating user ft_ml_viewer_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_viewer_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_spaces
[00:00:01]               │ debg creating user ft_ml_viewer_space1
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_viewer_space1]
[00:00:01]               │ debg created user ft_ml_viewer_space1
[00:00:01]               │ debg creating user ft_ml_viewer_all_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_viewer_all_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_all_spaces
[00:00:01]               │ debg creating user ft_ml_unauthorized
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_unauthorized]
[00:00:01]               │ debg created user ft_ml_unauthorized
[00:00:01]               │ debg creating user ft_ml_unauthorized_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_unauthorized_spaces]
[00:00:01]               │ debg created user ft_ml_unauthorized_spaces
[00:08:14]             └-: anomaly detection
[00:08:14]               └-> "before all" hook in "anomaly detection"
[00:27:11]               └-: anomaly explorer
[00:27:11]                 └-> "before all" hook in "anomaly explorer"
[00:27:11]                 └-> "before all" hook in "anomaly explorer"
[00:27:11]                   │ info [x-pack/test/functional/es_archives/ml/farequote] Loading "mappings.json"
[00:27:11]                   │ info [x-pack/test/functional/es_archives/ml/farequote] Loading "data.json.gz"
[00:27:11]                   │ info [x-pack/test/functional/es_archives/ml/farequote] Skipped restore for existing index "ft_farequote"
[00:27:12]                   │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:27:12]                   │ debg  > Found 'dcee3150-15be-11ec-824e-59f7f928eecf'
[00:27:12]                   │ debg Index pattern with title 'ft_farequote' already exists. Nothing to create.
[00:27:12]                   │ debg Searching for 'dashboard' with title 'ML Test'...
[00:27:12]                   │ debg  > Not found
[00:27:12]                   │ debg Creating dashboard with title 'ML Test'
[00:27:12]                   │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_001/Txl6-W5iQAemGb_obJe1RQ] update_mapping [_doc]
[00:27:13]                   │ debg  > Created with id '86142a70-15c2-11ec-824e-59f7f928eecf'
[00:27:13]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:27:14]                   │ debg SecurityPage.forceLogout
[00:27:14]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:27:14]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:27:15]                   │ debg Redirecting to /logout to force the logout
[00:27:15]                   │ debg Waiting on the login form to appear
[00:27:15]                   │ debg Waiting for Login Page to appear.
[00:27:15]                   │ debg Waiting up to 100000ms for login page...
[00:27:15]                   │ debg browser[INFO] http://localhost:6191/logout?_t=1631668578405 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:27:15]                   │
[00:27:15]                   │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:27:15]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:27:18]                   │ERROR browser[SEVERE] http://localhost:6191/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:27:18]                   │ debg browser[INFO] http://localhost:6191/44405/bundles/core/core.entry.js 12:152325 "Detected an unhandled Promise rejection.
[00:27:18]                   │      Error: Unauthorized"
[00:27:18]                   │ERROR browser[SEVERE] http://localhost:6191/44405/bundles/core/core.entry.js 5:2752 
[00:27:18]                   │ debg browser[INFO] http://localhost:6191/login?msg=LOGGED_OUT 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:27:18]                   │
[00:27:18]                   │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:27:18]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:27:18]                   │ERROR browser[SEVERE] http://localhost:6191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:27:19]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:27:19]                   │ debg TestSubjects.exists(loginForm)
[00:27:19]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:27:19]                   │ debg Waiting for Login Form to appear.
[00:27:19]                   │ debg Waiting up to 100000ms for login form...
[00:27:19]                   │ debg TestSubjects.exists(loginForm)
[00:27:19]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:27:19]                   │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:27:19]                   │ debg TestSubjects.click(loginUsername)
[00:27:19]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:27:19]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:27:19]                   │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:27:19]                   │ debg TestSubjects.click(loginPassword)
[00:27:19]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:27:19]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:27:19]                   │ debg TestSubjects.click(loginSubmit)
[00:27:19]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:27:19]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:27:19]                   │ debg Waiting for login result, expected: chrome.
[00:27:19]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuAvatar"]') with timeout=20000
[00:27:19]                   │ proc [kibana]   log   [01:16:22.905] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:27:22]                   │ debg browser[INFO] http://localhost:6191/app/home 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:27:22]                   │
[00:27:22]                   │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:27:22]                   │ debg Finished login process currentUrl = http://localhost:6191/app/home#/
[00:27:22]                   │ debg Waiting up to 20000ms for logout button visible...
[00:27:22]                   │ debg TestSubjects.exists(userMenuButton)
[00:27:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:27:22]                   │ debg TestSubjects.exists(userMenu)
[00:27:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:27:24]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:27:25]                   │ debg TestSubjects.click(userMenuButton)
[00:27:25]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:27:25]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:27:25]                   │ debg TestSubjects.exists(userMenu)
[00:27:25]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:27:25]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:27:25]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:27:25]                 └-: with farequote based multi metric job
[00:27:25]                   └-> "before all" hook for "opens a job from job list link"
[00:27:25]                   └-> "before all" hook for "opens a job from job list link"
[00:27:25]                     │ debg Creating anomaly detection job with id 'fq_multi_1_ae' ...
[00:27:25]                     │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:27:25]                     │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:27:25]                     │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:27:25]                     │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:27:25]                     │ info [o.e.c.m.MetadataMappingService] [node-01] [.ml-anomalies-shared/MCH1PxqZRHedCCrSMJO8NQ] update_mapping [_doc]
[00:27:25]                     │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:27:25]                     │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-config]
[00:27:25]                     │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-notifications-000002] creating index, cause [auto(bulk api)], templates [.ml-notifications-000002], shards [1]/[1]
[00:27:25]                     │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-notifications-000002]
[00:27:25]                     │ debg Waiting up to 5000ms for 'fq_multi_1_ae' to exist...
[00:27:25]                     │ debg > AD job created.
[00:27:25]                     │ debg Creating datafeed with id 'datafeed-fq_multi_1_ae' ...
[00:27:26]                     │ debg Waiting up to 5000ms for 'datafeed-fq_multi_1_ae' to exist...
[00:27:26]                     │ debg > Datafeed created.
[00:27:26]                     │ debg Opening anomaly detection job 'fq_multi_1_ae'...
[00:27:26]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] Opening job [fq_multi_1_ae]
[00:27:26]                     │ info [o.e.x.c.m.u.MlIndexAndAlias] [node-01] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:27:26]                     │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:27:26]                     │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:27:26]                     │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:27:26]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] [fq_multi_1_ae] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:27:27]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_multi_1_ae] [autodetect/158355] [CResourceMonitor.cc@82] Setting model memory limit to 20 MB
[00:27:27]                     │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [ml-size-based-ilm-policy]
[00:27:27]                     │ debg > AD job opened.
[00:27:27]                     │ debg Starting datafeed 'datafeed-fq_multi_1_ae' with start: '0', end: '1631668590303'...
[00:27:27]                     │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ml-size-based-ilm-policy]
[00:27:27]                     │ info [o.e.x.m.d.DatafeedJob] [node-01] [fq_multi_1_ae] Datafeed started (from: 1970-01-01T00:00:00.000Z to: 2021-09-15T01:16:30.303Z) with frequency [600000ms]
[00:27:27]                     │ debg > Datafeed started.
[00:27:27]                     │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:27:27]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:27]                     │ debg --- retry.waitForWithTimeout error: expected job state to be stopped but got started
[00:27:27]                     │ info [o.e.c.m.MetadataMappingService] [node-01] [.ml-anomalies-shared/MCH1PxqZRHedCCrSMJO8NQ] update_mapping [_doc]
[00:27:27]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:27]                     │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_ae] 10000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:27:27]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:28]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:28]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:28]                     │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_ae] 20000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:27:28]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:28]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:29]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:29]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:29]                     │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_ae] 30000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:27:29]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:29]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:30]                     │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_ae] 40000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:27:30]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:30]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:30]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:30]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:31]                     │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_ae] 50000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:27:31]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:31]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:31]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:31]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:31]                     │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_ae] 60000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:27:32]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:32]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:32]                     │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_ae] 70000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:27:32]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:32]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:33]                     │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_ae] 80000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:27:33]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:33]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:33]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:33]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:34]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:34]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:34]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:34]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:35]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:35]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:35]                     │ info [o.e.x.m.d.DatafeedJob] [node-01] [fq_multi_1_ae] Lookback has finished
[00:27:35]                     │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] attempt to stop datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae]
[00:27:35]                     │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] try lock [20s] to stop datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae]...
[00:27:35]                     │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] stopping datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae], acquired [true]...
[00:27:35]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:35]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:35]                     │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] datafeed [datafeed-fq_multi_1_ae] for job [fq_multi_1_ae] has been stopped
[00:27:35]                     │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] Closing job [fq_multi_1_ae], because [close job (api)]
[00:27:35]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_multi_1_ae] [autodetect/158355] [CCmdSkeleton.cc@66] Handled 86272 records
[00:27:35]                     │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_multi_1_ae] [autodetect/158355] [CAnomalyJob.cc@1601] Pruning obsolete models
[00:27:36]                     │ info [o.e.c.m.MetadataMappingService] [node-01] [.ml-anomalies-shared/MCH1PxqZRHedCCrSMJO8NQ] update_mapping [_doc]
[00:27:36]                     │ info [o.e.x.m.p.AbstractNativeProcess] [node-01] [fq_multi_1_ae] State output finished
[00:27:36]                     │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [node-01] [fq_multi_1_ae] 120 buckets parsed from autodetect output
[00:27:36]                     │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_ae
[00:27:36]                     │ debg Waiting up to 120000ms for job state to be closed...
[00:27:36]                     │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:27:36]                     │ debg > AD job stats fetched.
[00:27:36]                     │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:27:36]                     │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:27:36]                     │ debg > AD job stats fetched.
[00:27:36]                     │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:27:37]                     │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [node-01] [fq_multi_1_ae] autodetect connection for job closed
[00:27:37]                     │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:27:37]                     │ debg > AD job stats fetched.
[00:27:37]                   └-> opens a job from job list link
[00:27:37]                     └-> "before each" hook: global before each for "opens a job from job list link"
[00:27:37]                     │ debg === TEST STEP === navigate to job list
[00:27:37]                     │ debg navigating to ml url: http://localhost:6191/app/ml
[00:27:37]                     │ debg navigate to: http://localhost:6191/app/ml
[00:27:37]                     │ debg browser[INFO] http://localhost:6191/app/ml?_t=1631668600622 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:27:37]                     │
[00:27:37]                     │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:27:37]                     │ debg ... sleep(700) start
[00:27:38]                     │ debg ... sleep(700) end
[00:27:38]                     │ debg returned from get, calling refresh
[00:27:39]                     │ERROR browser[SEVERE] http://localhost:6191/44405/bundles/core/core.entry.js 12:151405 TypeError: Failed to fetch
[00:27:39]                     │          at fetch_Fetch.fetchResponse (http://localhost:6191/44405/bundles/core/core.entry.js:6:28359)
[00:27:39]                     │          at async http://localhost:6191/44405/bundles/core/core.entry.js:6:26148
[00:27:39]                     │          at async http://localhost:6191/44405/bundles/core/core.entry.js:6:26054
[00:27:39]                     │ debg browser[INFO] http://localhost:6191/app/ml?_t=1631668600622 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:27:39]                     │
[00:27:39]                     │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:27:39]                     │ debg currentUrl = http://localhost:6191/app/ml
[00:27:39]                     │          appUrl = http://localhost:6191/app/ml
[00:27:39]                     │ debg TestSubjects.find(kibanaChrome)
[00:27:39]                     │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:27:40]                     │ debg ... sleep(501) start
[00:27:40]                     │ debg ... sleep(501) end
[00:27:40]                     │ debg in navigateTo url = http://localhost:6191/app/ml/overview
[00:27:40]                     │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:27:41]                     │ debg ... sleep(501) start
[00:27:41]                     │ debg ... sleep(501) end
[00:27:41]                     │ debg in navigateTo url = http://localhost:6191/app/ml/overview
[00:27:41]                     │ debg TestSubjects.exists(mlApp)
[00:27:41]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlApp"]') with timeout=2000
[00:27:41]                     │ debg TestSubjects.click(~mlMainTab & ~anomalyDetection)
[00:27:41]                     │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:27:41]                     │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:27:41]                     │ debg TestSubjects.exists(~mlMainTab & ~anomalyDetection & ~selected)
[00:27:41]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"][data-test-subj~="selected"]') with timeout=120000
[00:27:42]                     │ debg TestSubjects.exists(mlPageJobManagement)
[00:27:42]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:27:42]                     │ debg === TEST STEP === open job in anomaly explorer
[00:27:42]                     │ debg TestSubjects.exists(~mlJobListTable)
[00:27:42]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:27:42]                     │ debg TestSubjects.exists(mlJobListTable loaded)
[00:27:42]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:27:42]                     │ debg TestSubjects.exists(~mlJobListTable)
[00:27:42]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:27:42]                     │ debg TestSubjects.exists(mlJobListTable loaded)
[00:27:42]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:27:42]                     │ debg TestSubjects.find(mlJobListSearchBar)
[00:27:42]                     │ debg Find.findByCssSelector('[data-test-subj="mlJobListSearchBar"]') with timeout=10000
[00:27:42]                     │ debg TestSubjects.find(~mlJobListTable)
[00:27:42]                     │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=10000
[00:27:42]                     │ debg TestSubjects.click(~mlJobListTable > ~row-fq_multi_1_ae > mlOpenJobsInAnomalyExplorerButton)
[00:27:42]                     │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_multi_1_ae"] [data-test-subj="mlOpenJobsInAnomalyExplorerButton"]') with timeout=10000
[00:27:42]                     │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_multi_1_ae"] [data-test-subj="mlOpenJobsInAnomalyExplorerButton"]') with timeout=10000
[00:27:42]                     │ debg TestSubjects.exists(~mlPageAnomalyExplorer)
[00:27:42]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlPageAnomalyExplorer"]') with timeout=120000
[00:27:43]                     │ debg TestSubjects.missingOrFail(mlLoadingIndicator)
[00:27:43]                     │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlLoadingIndicator"]') with timeout=2500
[00:27:44]                     └- ✓ pass  (7.0s) "machine learning  anomaly detection anomaly explorer with farequote based multi metric job opens a job from job list link"
[00:27:44]                   └-> displays job results
[00:27:44]                     └-> "before each" hook: global before each for "displays job results"
[00:27:44]                     │ debg === TEST STEP === pre-fills the job selection
[00:27:44]                     │ debg TestSubjects.findAll(mlJobSelectionBadges > ~mlJobSelectionBadge)
[00:27:44]                     │ debg Find.allByCssSelector('[data-test-subj="mlJobSelectionBadges"] [data-test-subj~="mlJobSelectionBadge"]') with timeout=10000
[00:27:45]                     │ debg === TEST STEP === displays the influencers list
[00:27:45]                     │ debg TestSubjects.exists(mlAnomalyExplorerInfluencerList)
[00:27:45]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyExplorerInfluencerList"]') with timeout=120000
[00:27:45]                     │ debg TestSubjects.exists(mlInfluencerFieldName airline)
[00:27:45]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlInfluencerFieldName airline"]') with timeout=120000
[00:27:45]                     │ debg TestSubjects.findAll(mlInfluencerEntry field-airline > mlInfluencerEntryFieldLabel)
[00:27:45]                     │ debg Find.allByCssSelector('[data-test-subj="mlInfluencerEntry field-airline"] [data-test-subj="mlInfluencerEntryFieldLabel"]') with timeout=10000
[00:27:45]                     │ debg TestSubjects.findAll(mlInfluencerEntry field-airline > mlInfluencerEntryFieldLabel)
[00:27:45]                     │ debg Find.allByCssSelector('[data-test-subj="mlInfluencerEntry field-airline"] [data-test-subj="mlInfluencerEntryFieldLabel"]') with timeout=10000
[00:27:45]                     │ debg === TEST STEP === displays the swimlanes
[00:27:45]                     │ debg TestSubjects.exists(mlAnomalyExplorerSwimlaneOverall)
[00:27:45]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyExplorerSwimlaneOverall"]') with timeout=120000
[00:27:45]                     │ debg TestSubjects.exists(mlAnomalyExplorerSwimlaneViewBy)
[00:27:45]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyExplorerSwimlaneViewBy"]') with timeout=120000
[00:27:45]                     │ debg === TEST STEP === should display the annotations panel
[00:27:45]                     │ debg TestSubjects.exists(mlAnomalyExplorerAnnotationsPanel loaded)
[00:27:45]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyExplorerAnnotationsPanel loaded"]') with timeout=30000
[00:27:46]                     │ debg === TEST STEP === displays the anomalies table
[00:27:46]                     │ debg TestSubjects.exists(mlAnomaliesTable)
[00:27:46]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomaliesTable"]') with timeout=120000
[00:27:46]                     │ debg === TEST STEP === anomalies table is not empty
[00:27:46]                     │ debg TestSubjects.findAll(mlAnomaliesTable > ~mlAnomaliesListRow)
[00:27:46]                     │ debg Find.allByCssSelector('[data-test-subj="mlAnomaliesTable"] [data-test-subj~="mlAnomaliesListRow"]') with timeout=10000
[00:27:46]                     └- ✓ pass  (2.0s) "machine learning  anomaly detection anomaly explorer with farequote based multi metric job displays job results"
[00:27:46]                   └-> renders Overall swim lane
[00:27:46]                     └-> "before each" hook: global before each for "renders Overall swim lane"
[00:27:46]                     │ debg === TEST STEP === has correct axes labels
[00:27:46]                     │ debg TestSubjects.exists(mlAnomalyExplorerSwimlaneOverall)
[00:27:46]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyExplorerSwimlaneOverall"]') with timeout=2500
[00:27:46]                     │ debg TestSubjects.findAll(mlAnomalyExplorerSwimlaneOverall)
[00:27:46]                     │ debg Find.allByCssSelector('[data-test-subj="mlAnomalyExplorerSwimlaneOverall"]') with timeout=10000
[00:27:46]                     │ debg TestSubjects.exists(mlAnomalyExplorerSwimlaneOverall)
[00:27:46]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyExplorerSwimlaneOverall"]') with timeout=2500
[00:27:46]                     │ debg TestSubjects.findAll(mlAnomalyExplorerSwimlaneOverall)
[00:27:46]                     │ debg Find.allByCssSelector('[data-test-subj="mlAnomalyExplorerSwimlaneOverall"]') with timeout=10000
[00:27:46]                     └- ✓ pass  (155ms) "machine learning  anomaly detection anomaly explorer with farequote based multi metric job renders Overall swim lane"
[00:27:46]                   └-> renders View By swim lane
[00:27:46]                     └-> "before each" hook: global before each for "renders View By swim lane"
[00:27:46]                     │ debg === TEST STEP === has correct axes labels
[00:27:46]                     │ debg TestSubjects.exists(mlAnomalyExplorerSwimlaneViewBy)
[00:27:46]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyExplorerSwimlaneViewBy"]') with timeout=2500
[00:27:46]                     │ debg TestSubjects.findAll(mlAnomalyExplorerSwimlaneViewBy)
[00:27:46]                     │ debg Find.allByCssSelector('[data-test-subj="mlAnomalyExplorerSwimlaneViewBy"]') with timeout=10000
[00:27:46]                     │ debg TestSubjects.exists(mlAnomalyExplorerSwimlaneViewBy)
[00:27:46]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyExplorerSwimlaneViewBy"]') with timeout=2500
[00:27:46]                     │ debg TestSubjects.findAll(mlAnomalyExplorerSwimlaneViewBy)
[00:27:46]                     │ debg Find.allByCssSelector('[data-test-subj="mlAnomalyExplorerSwimlaneViewBy"]') with timeout=10000
[00:27:46]                     │ info Taking screenshot "/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/screenshots/failure/machine learning  anomaly detection anomaly explorer with farequote based multi metric job renders View By swim lane.png"
[00:27:46]                     │ info Current URL is: http://localhost:6191/app/ml/explorer?_g=(ml%3A(jobIds%3A!(fq_multi_1_ae))%2CrefreshInterval%3A(display%3AOff%2Cpause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2016-02-07T00%3A00%3A00.000Z'%2Cto%3A'2016-02-11T23%3A59%3A54.000Z'))&_a=(explorer%3A(mlExplorerFilter%3A()%2CmlExplorerSwimlane%3A(viewByFieldName%3Aairline%2CviewByFromPage%3A1%2CviewByPerPage%3A10)%2CmlShowCharts%3A!t)%2Cquery%3A(query_string%3A(analyze_wildcard%3A!t%2Cquery%3A'*')))
[00:27:46]                     │ info Saving page source to: /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/failure_debug/html/machine learning  anomaly detection anomaly explorer with farequote based multi metric job renders View By swim lane.html
[00:27:47]                     └- ✖ fail: machine learning  anomaly detection anomaly explorer with farequote based multi metric job renders View By swim lane
[00:27:47]                     │       Error: Expected swim lane y labels to be AAL,VRD,EGF,SWR,AMX,JZA,TRS,ACA,BAW,ASA, got AAL,VRD,EGF,SWR,AMX,JZA,TRS,ACA,ASA,DAL
[00:27:47]                     │       + expected - actual
[00:27:47]                     │ 
[00:27:47]                     │          "AMX"
[00:27:47]                     │          "JZA"
[00:27:47]                     │          "TRS"
[00:27:47]                     │          "ACA"
[00:27:47]                     │       +  "BAW"
[00:27:47]                     │          "ASA"
[00:27:47]                     │       -  "DAL"
[00:27:47]                     │        ]
[00:27:47]                     │       
[00:27:47]                     │       at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:27:47]                     │       at Assertion.eql (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/expect/expect.js:244:8)
[00:27:47]                     │       at Object.assertAxisLabels (test/functional/services/ml/swim_lane.ts:88:31)
[00:27:47]                     │       at runMicrotasks (<anonymous>)
[00:27:47]                     │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:27:47]                     │       at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/anomaly_explorer.ts:168:11)
[00:27:47]                     │       at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:27:47]                     │ 
[00:27:47]                     │ 

Stack Trace

Error: Expected swim lane y labels to be AAL,VRD,EGF,SWR,AMX,JZA,TRS,ACA,BAW,ASA, got AAL,VRD,EGF,SWR,AMX,JZA,TRS,ACA,ASA,DAL
    at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/expect/expect.js:244:8)
    at Object.assertAxisLabels (test/functional/services/ml/swim_lane.ts:88:31)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/anomaly_explorer.ts:168:11)
    at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16) {
  actual: '[\n' +
    '  "AAL"\n' +
    '  "VRD"\n' +
    '  "EGF"\n' +
    '  "SWR"\n' +
    '  "AMX"\n' +
    '  "JZA"\n' +
    '  "TRS"\n' +
    '  "ACA"\n' +
    '  "ASA"\n' +
    '  "DAL"\n' +
    ']',
  expected: '[\n' +
    '  "AAL"\n' +
    '  "VRD"\n' +
    '  "EGF"\n' +
    '  "SWR"\n' +
    '  "AMX"\n' +
    '  "JZA"\n' +
    '  "TRS"\n' +
    '  "ACA"\n' +
    '  "BAW"\n' +
    '  "ASA"\n' +
    ']',
  showDiff: true
}

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Member

@sabarasaba sabarasaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, thanks for updating this @alisonelizabeth 🚀

@alisonelizabeth alisonelizabeth merged commit 1ad9a72 into elastic:7.x Sep 15, 2021
@alisonelizabeth alisonelizabeth deleted the 7/ua/readme branch September 15, 2021 13:05
sabarasaba pushed a commit to sabarasaba/kibana that referenced this pull request Oct 20, 2021
sabarasaba pushed a commit to sabarasaba/kibana that referenced this pull request Oct 26, 2021
sabarasaba pushed a commit to sabarasaba/kibana that referenced this pull request Oct 26, 2021
sabarasaba added a commit that referenced this pull request Nov 9, 2021
* Fix link to Cloud deployment URL in upgrade step. (#109528)

* [Upgrade Assistant] Refactor CITs

* Rename UA steps to fix_issues_step and fix_logs_step. (#109526)

* Rename tests accordingly.

* [Upgrade Assistant] Cleanup scss (#109524)

* [Upgrade Assistant] Update readme (#109502)

* Add "Back up data" step to UA (#109543)

* Add backup step with static content and link to Snapshot and Restore.
* Add snapshot_restore locator.
* Remove unnecessary describe block from Upgrade Step tests.
* Remove unused render_app.tsx.

* Change copy references of 'deprecation issues' to 'deprecation warnings'. (#109963)

* [Upgrade Assistant] Address design feedback for ES deprecations page (#109726)

* [Upgrade Assistant] Add checkpoint feature to Overview page (#109449)

* Add on-Cloud state to Upgrade Assistant 'Back up data' step (#109956)

* [Upgrade Assistant] Refactor external links to use locators (#110435)

* [Upgrade Assistant] Use AppContext for services instead of KibanaContext (#109801)

* Remove kibana context dependency in favour of app context

* Add missing type to ContextValue

* Fix mock type

* Refactor app mount flow and types

* Refactor to use useServices hook

* Fix linter issues

* Keep mount_management_section and initialize breadcrumbs and api there

* Remove useServices and usePlugins in favour of just useAppContext

* Remove unnecessary mocks

* [Upgrade Assistant] Enable functional and a11y tests (#109909)

* [Upgrade Assistant] Remove version from UA nav title (#110739)

* [Upgrade Assistant] New Kibana deprecations page (#110101)

* Use injected lib.handleEsError instead of importing it in Upgrade Assistant API route handlers. (#111067)

* Add tests for UA back up data step on Cloud (#111066)

* Update UA to consume snapshotsUrl as provided by the Cloud plugin. (#111239)

* Skip flaky UA Backup step polling test.

* [Upgrade Assistant] Refactor kibana deprecation service mocks (#111168)

* [Upgrade Assistant] Remove unnecessary EuiScreenReaderOnly from stat panels (#111518)

* Remove EuiScreenReaderOnly implementations

* Remove unused translations

* Remove extra string after merge conflict

* Use consistent 'issues' and 'critical' vs. 'warning' terminology in UA. (#111221)

* Refactor UA Overview to support step-completion (#111243)

* Refactor UA Overview to store step-completion state at the root and delegate step-completion logic to each step component.
* Add completion status to logs and issues steps

* [Upgrade Assistant] External links with checkpoint time-range applied (#111252)

* Bound query around last checkpoint date

* Fix tests

* Also test discover url contains search params

* Small refactor

* Keep state about lastCheckpoint in parent component

* Remove space

* Address CR changes

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Tests for updating step state accordingly if API poll receives count followed by error (#111701)

* Add test for logs count polling

* Test when count api fails

* [Upgrade Assistant] Add a11y tests for es deprecation flyouts (#110843)

* [Upgrade Assistant] Set fix_logs step as incomplete if log collection is not enabled (#111827)

* set step as incomplete if toggle is disabled

* Fix test names

* Remove unnecessary mocks

* [Upgrade Assistant] Update copy to use "issues" instead of "warnings" (#111817)

* Create common deprecation issues panel component in UA (#111231)

* Refine success state behavior and add tests.
* Refactor components into a components directory.
* Refactor SCSS to colocate styles with their components.
* Refactor tests to reduce boilerplate and clarify conditions under test.

* [Upgrade Assistant] Fix Kibana deprecations warning message

* [Upgrade Assistant] Add support for API keys when reindexing (#111451)

* [Upgrade Assistant] Update readme (#112154)

* [Upgrade Assistant] Make infra plugin optional (#111960)

* Make infra plugin optional

* Fix CR requests

* [Upgrade Assistant] Improve flyout information architecture (#111713)

* Make sure longstrings inside flyout body are text-wrap

* Show resolved badge for reindex flyout and row

* Finish off rest of ES deprecation flyouts

* Refactor deprecation badge into its own component

* Add tests for kibana deprecations

* Add tests for es deprecations

* Also check that we have status=error before rendering error callout

* Check for non-complete states instead of just error

* Small refactor

* Default deprecation is not resolvable

* Add a bit more spacing between title and badge

* Address CR changes

* Use EuiSpacer instead of flexitems

* [Upgrade Assistant] Update readme (#112195)

* [Upgrade Assistant] Add integration tests for Overview page (#111370)

* Add a11y tests for when overview page has toggle enabled

* Add functional and accessibility tests for overview page

* Load test files

* Fix linter error

* Navigate before asserting

* Steps have now completion state

* Remove duped word

* Run setup only once, not per test

* Address CR changes

* No need to renavigate to the page

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Add note about compatibility headers (#110469)

* Improve error states for Upgrade Assistant deprecation issues (#112457)

* Simplify error state for deprecation issues panels. Remove <EsStatsError />.

* Rename components from stats -> panel.

* Create common error-reporting component for use in both Kibana and ES deprecations pages.
* Align order of loading, error, and success states between these pages.
* Change references to 'deprecations' -> 'deprecation issues'.

* Fix tests for panels.

* Add API integration test for handling auth error.

* Fix TS errors.

Co-authored-by: Kibana Machine <[email protected]>

* Change count poll time to 15s (#112669)

* [Upgrade Assistant] Add permissions check to logs step (#112420)

* [Upgrade Assistant] Refactor telemetry (#112177)

* [Upgrade Assistant] Check for ML upgrade mode before enabling flyout actions (#112555)

* Add missing error handlers for deprecation logging route (#113109)

* [Upgrade Assistant] Batch reindex docs (#112960)

* [UA] Added batch reindexing docs link to the ES deprecations page. Added a link from "batch reindexing" docs page to "start or resume reindex" docs page and from there to ES reindexing docs page. Also renamed "reindexing operation" to "reindexing task" for consistency.

* [Upgrade Assistant] Added docs build files

* Update x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx

Co-authored-by: James Rodewig <[email protected]>

* Update x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx

Co-authored-by: James Rodewig <[email protected]>

* [Upgrade Assistant] Added review suggestions and fixed eslint issues

Co-authored-by: James Rodewig <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Improve error messages for GET /api/upgrade_assistant/reindex/<index> (#112961)

* Add support for single manual steps to Upgrade Assistant. (#113344)

* Revert "[Upgrade Assistant] Refactor telemetry (#112177)" (#113665)

This reverts commit 991d24b.

* [Upgrade Assistant] Use skipFetchFields when creating the indexPattern in order to avoid errors if index doesn't exist (#113821)

* Use skipFetchFields when creating the indexPatter in order to avoid errors when index doesnt exist

* Address CR feedback

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Hide system indices from es deprecations list (#113627)

* Refactor reindex routes into separate single and batch reindex files. Apply version precheck to batch routes. (#113822)

* [Upgrade Assistant] Remove ML/Watcher logic (#113224)

* Add show upgrade flag to url (#114243)

* [Upgrade Assistant] Delete deprecation log cache (#114113)

* [Upgrade Assistant] Add upgrade system indices section (#110593)

* [Upgrade Assistant] Reindexing progress (#114275)

* [Upgrade Assistant] Added reindexing progress in % to the reindex flyout and es deprecations table

* [Upgrade Assistant] Renamed first argument in `getReindexProgressLabel` to `reindexTaskPercComplete` for consistency

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Remove Fix manually heading when there are no manual steps

* Add rolling upgrade interstitials to UA (#112907)

* Refactor FixLogsStep to be explicit in which props are passed to DeprecationLoggingToggle.

* Centralize error-handling logic in the api service, instead of handling it within each individual API request. Covers:
- Cloud backup status
- ES deprecations
- Deprecation logging
- Remove index settings
- ML
- Reindexing

Also:
- Handle 426 error state and surface in UI.
- Move ResponseError type into common/types.

* Add note about intended use case of status API route.

* Add endpoint dedicated to surfacing the cluster upgrade state, and a client-side poll.

* Merge App and AppWithRouter components.

* [Upgrade Assistant] Added "accept changes" header to the warnings list in the reindex flyout (#114798)

* Refactor kibana deprecation tests (#114763)

Co-authored-by: Kibana Machine <[email protected]>

* Fix linter issues

* Remove unused translation

* Prefer master changes over 7.x for ml docs

* Prefer master changes over 7.x

* Skip tests

* Move everything to a single describe

* Fix types

* Add missing prop to mock

* [Upgrade Assistant] Removed "closed index" warning from reindex flyout (#114861)

* [Upgrade Assistant] Removed "closed index" warning that reindexing might take longer than usual, which is not the case

* [Upgrade Assistant] Also deleted i18n strings that are not needed anymore

* Add LevelIconTips to be more explicit about the difference between critical and warning issues. (#115121)

* Extract common DeprecationFlyoutLearnMoreLink component and change wording to 'Learn more'. (#115117)

* [Upgrade Assistant] Reindexing cancellation (#114636)

* [Upgrade Assistant] Updated the reindexing cancellation to look less like an error

* [Upgrade Assistant] Fixed an i18n issue and updated a jest snapshot

* [Upgrade Assistant] Updated cancelled reindexing state with a unified label and cross icon

* [Upgrade Assistant] Fixed snapshot test

* [Upgrade Assistant] Updated spacing to the reindex cancel button

Co-authored-by: Kibana Machine <[email protected]>

* Fix test errors (#115183)

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Overview page UI clean up (#115258)

- Scaling down deprecation issue panel title size to flow with typographic hierarchy.
- Removing panel around deprecation logging switch to reduce visual elements.
- Using success instead of green color for migration complete message.

* Revert "Revert "[Upgrade Assistant] Refactor telemetry (#112177)" (#113665)" (#114804)

This reverts commit c385d49.
* Add migration to remove obsolete attributes from telemetry saved object.
* Refactor UA telemetry constants by extracting it from common/types.

* [Upgrade Assistant] Rename upgrade_status to migration_status (#114755)

* [Upgrade Assistant] Swapped reindexing flyouts order (#115046)

* [Upgrade Assistant] Changed reindexing steps order, replaced a warning callout with a text element

* [Upgrade Assistant] Fixed reindex flyout test and changed warning callout from danger color to warning color

* [Upgrade Assistant] Fixed the correct status to show warnings

* [Upgrade Assistant] Fixed i18n strings

* [Upgrade Assistant] Moved reindex with warnings logic into a function

* [Upgrade Assistant] Updated reindex flyout copy

* [Upgrade Assistant] Also added a trailing period to the reindex step 3

* [Upgrade Assistant] Fixed i18n strings and step 3 wording

* [Upgrade Assistant] Added docs changes

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Hide features that don't need to be migrated from flyout (#115535)

* Filter out system indices that dont require migration on server side
* Rename to attrs to migration
* Update flyout snapshot.

* Refine Upgrade Assistant copy. (#115472)

* Remove unused file

* Fix kibanaVersion dep

* Updated config.ts to fix UA test

UA functional API integration test to check cloud backup status creates a snapshot repo, which fails to be created with my changes to config.ts `'path.repo=/tmp/repo,/tmp/repo_1,/tmp/repo_2,'`. Adding `/tmp/cloud-snapshots/'` to the config fixes the test.

* Address CR changes

* Add missing error handler for system indices migration (#116088)

* Fix broken tests

* Fix test

* Skip tests

* Fix linter errors and import

* [Upgrade Assistant] Fix typo in retrieval of cluster settings (#116335)

* Fix typos

* Fix typo also in server tests

* Make sure log collection remains enabled throughout the test

Co-authored-by: Kibana Machine <[email protected]>

* Fix type errors

* Fix integration test types

* Fix accessibility test type errors

* Fix linter errors in shared_imports

* Fix functional test types

Co-authored-by: CJ Cenizal <[email protected]>
Co-authored-by: Alison Goryachev <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Yulia Čech <[email protected]>
Co-authored-by: James Rodewig <[email protected]>
Co-authored-by: Dmitry Borodyansky <[email protected]>
spalger pushed a commit to spalger/kibana that referenced this pull request Nov 11, 2021
* Fix link to Cloud deployment URL in upgrade step. (elastic#109528)

* [Upgrade Assistant] Refactor CITs

* Rename UA steps to fix_issues_step and fix_logs_step. (elastic#109526)

* Rename tests accordingly.

* [Upgrade Assistant] Cleanup scss (elastic#109524)

* [Upgrade Assistant] Update readme (elastic#109502)

* Add "Back up data" step to UA (elastic#109543)

* Add backup step with static content and link to Snapshot and Restore.
* Add snapshot_restore locator.
* Remove unnecessary describe block from Upgrade Step tests.
* Remove unused render_app.tsx.

* Change copy references of 'deprecation issues' to 'deprecation warnings'. (elastic#109963)

* [Upgrade Assistant] Address design feedback for ES deprecations page (elastic#109726)

* [Upgrade Assistant] Add checkpoint feature to Overview page (elastic#109449)

* Add on-Cloud state to Upgrade Assistant 'Back up data' step (elastic#109956)

* [Upgrade Assistant] Refactor external links to use locators (elastic#110435)

* [Upgrade Assistant] Use AppContext for services instead of KibanaContext (elastic#109801)

* Remove kibana context dependency in favour of app context

* Add missing type to ContextValue

* Fix mock type

* Refactor app mount flow and types

* Refactor to use useServices hook

* Fix linter issues

* Keep mount_management_section and initialize breadcrumbs and api there

* Remove useServices and usePlugins in favour of just useAppContext

* Remove unnecessary mocks

* [Upgrade Assistant] Enable functional and a11y tests (elastic#109909)

* [Upgrade Assistant] Remove version from UA nav title (elastic#110739)

* [Upgrade Assistant] New Kibana deprecations page (elastic#110101)

* Use injected lib.handleEsError instead of importing it in Upgrade Assistant API route handlers. (elastic#111067)

* Add tests for UA back up data step on Cloud (elastic#111066)

* Update UA to consume snapshotsUrl as provided by the Cloud plugin. (elastic#111239)

* Skip flaky UA Backup step polling test.

* [Upgrade Assistant] Refactor kibana deprecation service mocks (elastic#111168)

* [Upgrade Assistant] Remove unnecessary EuiScreenReaderOnly from stat panels (elastic#111518)

* Remove EuiScreenReaderOnly implementations

* Remove unused translations

* Remove extra string after merge conflict

* Use consistent 'issues' and 'critical' vs. 'warning' terminology in UA. (elastic#111221)

* Refactor UA Overview to support step-completion (elastic#111243)

* Refactor UA Overview to store step-completion state at the root and delegate step-completion logic to each step component.
* Add completion status to logs and issues steps

* [Upgrade Assistant] External links with checkpoint time-range applied (elastic#111252)

* Bound query around last checkpoint date

* Fix tests

* Also test discover url contains search params

* Small refactor

* Keep state about lastCheckpoint in parent component

* Remove space

* Address CR changes

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Tests for updating step state accordingly if API poll receives count followed by error (elastic#111701)

* Add test for logs count polling

* Test when count api fails

* [Upgrade Assistant] Add a11y tests for es deprecation flyouts (elastic#110843)

* [Upgrade Assistant] Set fix_logs step as incomplete if log collection is not enabled (elastic#111827)

* set step as incomplete if toggle is disabled

* Fix test names

* Remove unnecessary mocks

* [Upgrade Assistant] Update copy to use "issues" instead of "warnings" (elastic#111817)

* Create common deprecation issues panel component in UA (elastic#111231)

* Refine success state behavior and add tests.
* Refactor components into a components directory.
* Refactor SCSS to colocate styles with their components.
* Refactor tests to reduce boilerplate and clarify conditions under test.

* [Upgrade Assistant] Fix Kibana deprecations warning message

* [Upgrade Assistant] Add support for API keys when reindexing (elastic#111451)

* [Upgrade Assistant] Update readme (elastic#112154)

* [Upgrade Assistant] Make infra plugin optional (elastic#111960)

* Make infra plugin optional

* Fix CR requests

* [Upgrade Assistant] Improve flyout information architecture (elastic#111713)

* Make sure longstrings inside flyout body are text-wrap

* Show resolved badge for reindex flyout and row

* Finish off rest of ES deprecation flyouts

* Refactor deprecation badge into its own component

* Add tests for kibana deprecations

* Add tests for es deprecations

* Also check that we have status=error before rendering error callout

* Check for non-complete states instead of just error

* Small refactor

* Default deprecation is not resolvable

* Add a bit more spacing between title and badge

* Address CR changes

* Use EuiSpacer instead of flexitems

* [Upgrade Assistant] Update readme (elastic#112195)

* [Upgrade Assistant] Add integration tests for Overview page (elastic#111370)

* Add a11y tests for when overview page has toggle enabled

* Add functional and accessibility tests for overview page

* Load test files

* Fix linter error

* Navigate before asserting

* Steps have now completion state

* Remove duped word

* Run setup only once, not per test

* Address CR changes

* No need to renavigate to the page

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Add note about compatibility headers (elastic#110469)

* Improve error states for Upgrade Assistant deprecation issues (elastic#112457)

* Simplify error state for deprecation issues panels. Remove <EsStatsError />.

* Rename components from stats -> panel.

* Create common error-reporting component for use in both Kibana and ES deprecations pages.
* Align order of loading, error, and success states between these pages.
* Change references to 'deprecations' -> 'deprecation issues'.

* Fix tests for panels.

* Add API integration test for handling auth error.

* Fix TS errors.

Co-authored-by: Kibana Machine <[email protected]>

* Change count poll time to 15s (elastic#112669)

* [Upgrade Assistant] Add permissions check to logs step (elastic#112420)

* [Upgrade Assistant] Refactor telemetry (elastic#112177)

* [Upgrade Assistant] Check for ML upgrade mode before enabling flyout actions (elastic#112555)

* Add missing error handlers for deprecation logging route (elastic#113109)

* [Upgrade Assistant] Batch reindex docs (elastic#112960)

* [UA] Added batch reindexing docs link to the ES deprecations page. Added a link from "batch reindexing" docs page to "start or resume reindex" docs page and from there to ES reindexing docs page. Also renamed "reindexing operation" to "reindexing task" for consistency.

* [Upgrade Assistant] Added docs build files

* Update x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx

Co-authored-by: James Rodewig <[email protected]>

* Update x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx

Co-authored-by: James Rodewig <[email protected]>

* [Upgrade Assistant] Added review suggestions and fixed eslint issues

Co-authored-by: James Rodewig <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Improve error messages for GET /api/upgrade_assistant/reindex/<index> (elastic#112961)

* Add support for single manual steps to Upgrade Assistant. (elastic#113344)

* Revert "[Upgrade Assistant] Refactor telemetry (elastic#112177)" (elastic#113665)

This reverts commit 991d24b.

* [Upgrade Assistant] Use skipFetchFields when creating the indexPattern in order to avoid errors if index doesn't exist (elastic#113821)

* Use skipFetchFields when creating the indexPatter in order to avoid errors when index doesnt exist

* Address CR feedback

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Hide system indices from es deprecations list (elastic#113627)

* Refactor reindex routes into separate single and batch reindex files. Apply version precheck to batch routes. (elastic#113822)

* [Upgrade Assistant] Remove ML/Watcher logic (elastic#113224)

* Add show upgrade flag to url (elastic#114243)

* [Upgrade Assistant] Delete deprecation log cache (elastic#114113)

* [Upgrade Assistant] Add upgrade system indices section (elastic#110593)

* [Upgrade Assistant] Reindexing progress (elastic#114275)

* [Upgrade Assistant] Added reindexing progress in % to the reindex flyout and es deprecations table

* [Upgrade Assistant] Renamed first argument in `getReindexProgressLabel` to `reindexTaskPercComplete` for consistency

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Remove Fix manually heading when there are no manual steps

* Add rolling upgrade interstitials to UA (elastic#112907)

* Refactor FixLogsStep to be explicit in which props are passed to DeprecationLoggingToggle.

* Centralize error-handling logic in the api service, instead of handling it within each individual API request. Covers:
- Cloud backup status
- ES deprecations
- Deprecation logging
- Remove index settings
- ML
- Reindexing

Also:
- Handle 426 error state and surface in UI.
- Move ResponseError type into common/types.

* Add note about intended use case of status API route.

* Add endpoint dedicated to surfacing the cluster upgrade state, and a client-side poll.

* Merge App and AppWithRouter components.

* [Upgrade Assistant] Added "accept changes" header to the warnings list in the reindex flyout (elastic#114798)

* Refactor kibana deprecation tests (elastic#114763)

Co-authored-by: Kibana Machine <[email protected]>

* Fix linter issues

* Remove unused translation

* Prefer master changes over 7.x for ml docs

* Prefer master changes over 7.x

* Skip tests

* Move everything to a single describe

* Fix types

* Add missing prop to mock

* [Upgrade Assistant] Removed "closed index" warning from reindex flyout (elastic#114861)

* [Upgrade Assistant] Removed "closed index" warning that reindexing might take longer than usual, which is not the case

* [Upgrade Assistant] Also deleted i18n strings that are not needed anymore

* Add LevelIconTips to be more explicit about the difference between critical and warning issues. (elastic#115121)

* Extract common DeprecationFlyoutLearnMoreLink component and change wording to 'Learn more'. (elastic#115117)

* [Upgrade Assistant] Reindexing cancellation (elastic#114636)

* [Upgrade Assistant] Updated the reindexing cancellation to look less like an error

* [Upgrade Assistant] Fixed an i18n issue and updated a jest snapshot

* [Upgrade Assistant] Updated cancelled reindexing state with a unified label and cross icon

* [Upgrade Assistant] Fixed snapshot test

* [Upgrade Assistant] Updated spacing to the reindex cancel button

Co-authored-by: Kibana Machine <[email protected]>

* Fix test errors (elastic#115183)

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Overview page UI clean up (elastic#115258)

- Scaling down deprecation issue panel title size to flow with typographic hierarchy.
- Removing panel around deprecation logging switch to reduce visual elements.
- Using success instead of green color for migration complete message.

* Revert "Revert "[Upgrade Assistant] Refactor telemetry (elastic#112177)" (elastic#113665)" (elastic#114804)

This reverts commit c385d49.
* Add migration to remove obsolete attributes from telemetry saved object.
* Refactor UA telemetry constants by extracting it from common/types.

* [Upgrade Assistant] Rename upgrade_status to migration_status (elastic#114755)

* [Upgrade Assistant] Swapped reindexing flyouts order (elastic#115046)

* [Upgrade Assistant] Changed reindexing steps order, replaced a warning callout with a text element

* [Upgrade Assistant] Fixed reindex flyout test and changed warning callout from danger color to warning color

* [Upgrade Assistant] Fixed the correct status to show warnings

* [Upgrade Assistant] Fixed i18n strings

* [Upgrade Assistant] Moved reindex with warnings logic into a function

* [Upgrade Assistant] Updated reindex flyout copy

* [Upgrade Assistant] Also added a trailing period to the reindex step 3

* [Upgrade Assistant] Fixed i18n strings and step 3 wording

* [Upgrade Assistant] Added docs changes

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Hide features that don't need to be migrated from flyout (elastic#115535)

* Filter out system indices that dont require migration on server side
* Rename to attrs to migration
* Update flyout snapshot.

* Refine Upgrade Assistant copy. (elastic#115472)

* Remove unused file

* Fix kibanaVersion dep

* Updated config.ts to fix UA test

UA functional API integration test to check cloud backup status creates a snapshot repo, which fails to be created with my changes to config.ts `'path.repo=/tmp/repo,/tmp/repo_1,/tmp/repo_2,'`. Adding `/tmp/cloud-snapshots/'` to the config fixes the test.

* Address CR changes

* Add missing error handler for system indices migration (elastic#116088)

* Fix broken tests

* Fix test

* Skip tests

* Fix linter errors and import

* [Upgrade Assistant] Fix typo in retrieval of cluster settings (elastic#116335)

* Fix typos

* Fix typo also in server tests

* Make sure log collection remains enabled throughout the test

Co-authored-by: Kibana Machine <[email protected]>

* Fix type errors

* Fix integration test types

* Fix accessibility test type errors

* Fix linter errors in shared_imports

* Fix functional test types

Co-authored-by: CJ Cenizal <[email protected]>
Co-authored-by: Alison Goryachev <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Yulia Čech <[email protected]>
Co-authored-by: James Rodewig <[email protected]>
Co-authored-by: Dmitry Borodyansky <[email protected]>
spalger pushed a commit that referenced this pull request Nov 11, 2021
* [Upgrade Assistant] Forwardport from 7.x (#114966)

* Fix link to Cloud deployment URL in upgrade step. (#109528)

* [Upgrade Assistant] Refactor CITs

* Rename UA steps to fix_issues_step and fix_logs_step. (#109526)

* Rename tests accordingly.

* [Upgrade Assistant] Cleanup scss (#109524)

* [Upgrade Assistant] Update readme (#109502)

* Add "Back up data" step to UA (#109543)

* Add backup step with static content and link to Snapshot and Restore.
* Add snapshot_restore locator.
* Remove unnecessary describe block from Upgrade Step tests.
* Remove unused render_app.tsx.

* Change copy references of 'deprecation issues' to 'deprecation warnings'. (#109963)

* [Upgrade Assistant] Address design feedback for ES deprecations page (#109726)

* [Upgrade Assistant] Add checkpoint feature to Overview page (#109449)

* Add on-Cloud state to Upgrade Assistant 'Back up data' step (#109956)

* [Upgrade Assistant] Refactor external links to use locators (#110435)

* [Upgrade Assistant] Use AppContext for services instead of KibanaContext (#109801)

* Remove kibana context dependency in favour of app context

* Add missing type to ContextValue

* Fix mock type

* Refactor app mount flow and types

* Refactor to use useServices hook

* Fix linter issues

* Keep mount_management_section and initialize breadcrumbs and api there

* Remove useServices and usePlugins in favour of just useAppContext

* Remove unnecessary mocks

* [Upgrade Assistant] Enable functional and a11y tests (#109909)

* [Upgrade Assistant] Remove version from UA nav title (#110739)

* [Upgrade Assistant] New Kibana deprecations page (#110101)

* Use injected lib.handleEsError instead of importing it in Upgrade Assistant API route handlers. (#111067)

* Add tests for UA back up data step on Cloud (#111066)

* Update UA to consume snapshotsUrl as provided by the Cloud plugin. (#111239)

* Skip flaky UA Backup step polling test.

* [Upgrade Assistant] Refactor kibana deprecation service mocks (#111168)

* [Upgrade Assistant] Remove unnecessary EuiScreenReaderOnly from stat panels (#111518)

* Remove EuiScreenReaderOnly implementations

* Remove unused translations

* Remove extra string after merge conflict

* Use consistent 'issues' and 'critical' vs. 'warning' terminology in UA. (#111221)

* Refactor UA Overview to support step-completion (#111243)

* Refactor UA Overview to store step-completion state at the root and delegate step-completion logic to each step component.
* Add completion status to logs and issues steps

* [Upgrade Assistant] External links with checkpoint time-range applied (#111252)

* Bound query around last checkpoint date

* Fix tests

* Also test discover url contains search params

* Small refactor

* Keep state about lastCheckpoint in parent component

* Remove space

* Address CR changes

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Tests for updating step state accordingly if API poll receives count followed by error (#111701)

* Add test for logs count polling

* Test when count api fails

* [Upgrade Assistant] Add a11y tests for es deprecation flyouts (#110843)

* [Upgrade Assistant] Set fix_logs step as incomplete if log collection is not enabled (#111827)

* set step as incomplete if toggle is disabled

* Fix test names

* Remove unnecessary mocks

* [Upgrade Assistant] Update copy to use "issues" instead of "warnings" (#111817)

* Create common deprecation issues panel component in UA (#111231)

* Refine success state behavior and add tests.
* Refactor components into a components directory.
* Refactor SCSS to colocate styles with their components.
* Refactor tests to reduce boilerplate and clarify conditions under test.

* [Upgrade Assistant] Fix Kibana deprecations warning message

* [Upgrade Assistant] Add support for API keys when reindexing (#111451)

* [Upgrade Assistant] Update readme (#112154)

* [Upgrade Assistant] Make infra plugin optional (#111960)

* Make infra plugin optional

* Fix CR requests

* [Upgrade Assistant] Improve flyout information architecture (#111713)

* Make sure longstrings inside flyout body are text-wrap

* Show resolved badge for reindex flyout and row

* Finish off rest of ES deprecation flyouts

* Refactor deprecation badge into its own component

* Add tests for kibana deprecations

* Add tests for es deprecations

* Also check that we have status=error before rendering error callout

* Check for non-complete states instead of just error

* Small refactor

* Default deprecation is not resolvable

* Add a bit more spacing between title and badge

* Address CR changes

* Use EuiSpacer instead of flexitems

* [Upgrade Assistant] Update readme (#112195)

* [Upgrade Assistant] Add integration tests for Overview page (#111370)

* Add a11y tests for when overview page has toggle enabled

* Add functional and accessibility tests for overview page

* Load test files

* Fix linter error

* Navigate before asserting

* Steps have now completion state

* Remove duped word

* Run setup only once, not per test

* Address CR changes

* No need to renavigate to the page

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Add note about compatibility headers (#110469)

* Improve error states for Upgrade Assistant deprecation issues (#112457)

* Simplify error state for deprecation issues panels. Remove <EsStatsError />.

* Rename components from stats -> panel.

* Create common error-reporting component for use in both Kibana and ES deprecations pages.
* Align order of loading, error, and success states between these pages.
* Change references to 'deprecations' -> 'deprecation issues'.

* Fix tests for panels.

* Add API integration test for handling auth error.

* Fix TS errors.

Co-authored-by: Kibana Machine <[email protected]>

* Change count poll time to 15s (#112669)

* [Upgrade Assistant] Add permissions check to logs step (#112420)

* [Upgrade Assistant] Refactor telemetry (#112177)

* [Upgrade Assistant] Check for ML upgrade mode before enabling flyout actions (#112555)

* Add missing error handlers for deprecation logging route (#113109)

* [Upgrade Assistant] Batch reindex docs (#112960)

* [UA] Added batch reindexing docs link to the ES deprecations page. Added a link from "batch reindexing" docs page to "start or resume reindex" docs page and from there to ES reindexing docs page. Also renamed "reindexing operation" to "reindexing task" for consistency.

* [Upgrade Assistant] Added docs build files

* Update x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx

Co-authored-by: James Rodewig <[email protected]>

* Update x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx

Co-authored-by: James Rodewig <[email protected]>

* [Upgrade Assistant] Added review suggestions and fixed eslint issues

Co-authored-by: James Rodewig <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Improve error messages for GET /api/upgrade_assistant/reindex/<index> (#112961)

* Add support for single manual steps to Upgrade Assistant. (#113344)

* Revert "[Upgrade Assistant] Refactor telemetry (#112177)" (#113665)

This reverts commit 991d24b.

* [Upgrade Assistant] Use skipFetchFields when creating the indexPattern in order to avoid errors if index doesn't exist (#113821)

* Use skipFetchFields when creating the indexPatter in order to avoid errors when index doesnt exist

* Address CR feedback

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Hide system indices from es deprecations list (#113627)

* Refactor reindex routes into separate single and batch reindex files. Apply version precheck to batch routes. (#113822)

* [Upgrade Assistant] Remove ML/Watcher logic (#113224)

* Add show upgrade flag to url (#114243)

* [Upgrade Assistant] Delete deprecation log cache (#114113)

* [Upgrade Assistant] Add upgrade system indices section (#110593)

* [Upgrade Assistant] Reindexing progress (#114275)

* [Upgrade Assistant] Added reindexing progress in % to the reindex flyout and es deprecations table

* [Upgrade Assistant] Renamed first argument in `getReindexProgressLabel` to `reindexTaskPercComplete` for consistency

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Remove Fix manually heading when there are no manual steps

* Add rolling upgrade interstitials to UA (#112907)

* Refactor FixLogsStep to be explicit in which props are passed to DeprecationLoggingToggle.

* Centralize error-handling logic in the api service, instead of handling it within each individual API request. Covers:
- Cloud backup status
- ES deprecations
- Deprecation logging
- Remove index settings
- ML
- Reindexing

Also:
- Handle 426 error state and surface in UI.
- Move ResponseError type into common/types.

* Add note about intended use case of status API route.

* Add endpoint dedicated to surfacing the cluster upgrade state, and a client-side poll.

* Merge App and AppWithRouter components.

* [Upgrade Assistant] Added "accept changes" header to the warnings list in the reindex flyout (#114798)

* Refactor kibana deprecation tests (#114763)

Co-authored-by: Kibana Machine <[email protected]>

* Fix linter issues

* Remove unused translation

* Prefer master changes over 7.x for ml docs

* Prefer master changes over 7.x

* Skip tests

* Move everything to a single describe

* Fix types

* Add missing prop to mock

* [Upgrade Assistant] Removed "closed index" warning from reindex flyout (#114861)

* [Upgrade Assistant] Removed "closed index" warning that reindexing might take longer than usual, which is not the case

* [Upgrade Assistant] Also deleted i18n strings that are not needed anymore

* Add LevelIconTips to be more explicit about the difference between critical and warning issues. (#115121)

* Extract common DeprecationFlyoutLearnMoreLink component and change wording to 'Learn more'. (#115117)

* [Upgrade Assistant] Reindexing cancellation (#114636)

* [Upgrade Assistant] Updated the reindexing cancellation to look less like an error

* [Upgrade Assistant] Fixed an i18n issue and updated a jest snapshot

* [Upgrade Assistant] Updated cancelled reindexing state with a unified label and cross icon

* [Upgrade Assistant] Fixed snapshot test

* [Upgrade Assistant] Updated spacing to the reindex cancel button

Co-authored-by: Kibana Machine <[email protected]>

* Fix test errors (#115183)

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Overview page UI clean up (#115258)

- Scaling down deprecation issue panel title size to flow with typographic hierarchy.
- Removing panel around deprecation logging switch to reduce visual elements.
- Using success instead of green color for migration complete message.

* Revert "Revert "[Upgrade Assistant] Refactor telemetry (#112177)" (#113665)" (#114804)

This reverts commit c385d49.
* Add migration to remove obsolete attributes from telemetry saved object.
* Refactor UA telemetry constants by extracting it from common/types.

* [Upgrade Assistant] Rename upgrade_status to migration_status (#114755)

* [Upgrade Assistant] Swapped reindexing flyouts order (#115046)

* [Upgrade Assistant] Changed reindexing steps order, replaced a warning callout with a text element

* [Upgrade Assistant] Fixed reindex flyout test and changed warning callout from danger color to warning color

* [Upgrade Assistant] Fixed the correct status to show warnings

* [Upgrade Assistant] Fixed i18n strings

* [Upgrade Assistant] Moved reindex with warnings logic into a function

* [Upgrade Assistant] Updated reindex flyout copy

* [Upgrade Assistant] Also added a trailing period to the reindex step 3

* [Upgrade Assistant] Fixed i18n strings and step 3 wording

* [Upgrade Assistant] Added docs changes

Co-authored-by: Kibana Machine <[email protected]>

* [Upgrade Assistant] Hide features that don't need to be migrated from flyout (#115535)

* Filter out system indices that dont require migration on server side
* Rename to attrs to migration
* Update flyout snapshot.

* Refine Upgrade Assistant copy. (#115472)

* Remove unused file

* Fix kibanaVersion dep

* Updated config.ts to fix UA test

UA functional API integration test to check cloud backup status creates a snapshot repo, which fails to be created with my changes to config.ts `'path.repo=/tmp/repo,/tmp/repo_1,/tmp/repo_2,'`. Adding `/tmp/cloud-snapshots/'` to the config fixes the test.

* Address CR changes

* Add missing error handler for system indices migration (#116088)

* Fix broken tests

* Fix test

* Skip tests

* Fix linter errors and import

* [Upgrade Assistant] Fix typo in retrieval of cluster settings (#116335)

* Fix typos

* Fix typo also in server tests

* Make sure log collection remains enabled throughout the test

Co-authored-by: Kibana Machine <[email protected]>

* Fix type errors

* Fix integration test types

* Fix accessibility test type errors

* Fix linter errors in shared_imports

* Fix functional test types

Co-authored-by: CJ Cenizal <[email protected]>
Co-authored-by: Alison Goryachev <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Yulia Čech <[email protected]>
Co-authored-by: James Rodewig <[email protected]>
Co-authored-by: Dmitry Borodyansky <[email protected]>

* commit with @elastic.co email

Co-authored-by: Ignacio Rivas <[email protected]>
Co-authored-by: CJ Cenizal <[email protected]>
Co-authored-by: Alison Goryachev <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Yulia Čech <[email protected]>
Co-authored-by: James Rodewig <[email protected]>
Co-authored-by: Dmitry Borodyansky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Upgrade Assistant release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants