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] Delete deprecation log cache #114113

Merged
merged 8 commits into from
Oct 11, 2021

Conversation

sabarasaba
Copy link
Member

@sabarasaba sabarasaba commented Oct 6, 2021

Fixes #113635

Summary

This PR changes the behaviour of the CTA from the deprecations count checkpoint so that it calls an API that ES has implemented to suppress logs that are duplicates of existing logs.

How to test

  1. Start up elasticsearch, yarn es snapshot --license=trial
  2. Start up Kibana, yarn start and navigate to UA
  3. Generate a few deprecation issues, at the moment navigating to Observability app will generate a bunch
  4. Verify that clicking Reset counter calls the delete cache API
  5. Verify that if the delete cache API fails, the counter and the callout state remains the same. In order to do this replace this line with return response.notFound();

Screenshots

Overview of changes

// Error toast
Screenshot 2021-10-06 at 16 57 54

@sabarasaba sabarasaba self-assigned this Oct 6, 2021
@sabarasaba sabarasaba added enhancement New value added to drive a business result 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 labels Oct 6, 2021
@sabarasaba sabarasaba marked this pull request as ready for review October 6, 2021 15:53
@elasticmachine
Copy link
Contributor

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

@sabarasaba sabarasaba requested a review from cjcenizal October 6, 2021 15:53
@sabarasaba
Copy link
Member Author

@elasticmachine merge upstream

@cjcenizal cjcenizal requested review from yuliacech and removed request for cjcenizal October 6, 2021 18:27
Copy link
Contributor

@yuliacech yuliacech left a comment

Choose a reason for hiding this comment

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

Hi @sabarasaba, thanks a lot for working on this issue!
I noticed that the "reset counter" button get disabled while cache is being deleted and then it gets back to its normal state while the callout still displays deprecation logs. In the meantime a new checkpoint is created and deprecation logs are being rechecked in the background. The callout then jumps to "reset" state quite unexpectedly. (see screencast for an example). Can we disable the button while deprecation logs are being reloaded with the new checkpoint as well? I think that would give better visual feedback to the user.

Screen.Recording.2021-10-07.at.17.35.37.mov

@sabarasaba
Copy link
Member Author

@elasticmachine merge upstream

@sabarasaba sabarasaba requested a review from yuliacech October 11, 2021 10:15
@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/maps/documents_source/docvalue_fields·js.maps app documents source docvalue_fields should format date fields as epoch_millis when data driven styling is applied to a date field

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 5 times on tracked branches: https://github.com/elastic/kibana/issues/114418

[00:00:00]     │
[00:00:00]       └-: maps app
[00:00:00]         └-> "before all" hook in "maps app"
[00:00:00]         └-> "before all" hook in "maps app"
[00:00:00]           │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "mappings.json"
[00:00:00]           │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "data.json.gz"
[00:00:00]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]]).
[00:00:00]           │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.22"
[00:00:00]           │ debg [x-pack/test/functional/es_archives/logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]]).
[00:00:00]           │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.20"
[00:00:00]           │ debg [x-pack/test/functional/es_archives/logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]]).
[00:00:00]           │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.21"
[00:00:00]           │ debg [x-pack/test/functional/es_archives/logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]           │ info [o.e.c.m.MetadataMappingService] [node-01] [logstash-2015.09.21/RbTumMM1RsmcVOwqKnWmIQ] update_mapping [_doc]
[00:00:05]           │ info [o.e.c.m.MetadataMappingService] [node-01] [logstash-2015.09.20/_Z5AXOcbSla1_14s_U3KJQ] update_mapping [_doc]
[00:00:10]           │ info progress: 8973
[00:00:14]           │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:00:14]           │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:14]           │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:15]           │ info [x-pack/test/functional/es_archives/maps/data] Loading "mappings.json"
[00:00:15]           │ info [x-pack/test/functional/es_archives/maps/data] Loading "data.json"
[00:00:15]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [geo_shapes] creating index, cause [api], templates [], shards [1]/[0]
[00:00:15]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[geo_shapes][0]]]).
[00:00:15]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "geo_shapes"
[00:00:15]           │ debg [x-pack/test/functional/es_archives/maps/data] "geo_shapes" settings {"index":{"number_of_replicas":"0","number_of_shards":"1","max_result_window":"10001","max_inner_result_window":"101"}}
[00:00:15]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [drawing_data] creating index, cause [api], templates [], shards [1]/[0]
[00:00:15]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[drawing_data][0]]]).
[00:00:15]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "drawing_data"
[00:00:15]           │ debg [x-pack/test/functional/es_archives/maps/data] "drawing_data" settings {"index":{"number_of_replicas":"0","number_of_shards":"1","max_result_window":"10001","max_inner_result_window":"101"}}
[00:00:15]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [meta_for_geo_shapes] creating index, cause [api], templates [], shards [1]/[0]
[00:00:15]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[meta_for_geo_shapes][0]]]).
[00:00:15]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "meta_for_geo_shapes"
[00:00:15]           │ debg [x-pack/test/functional/es_archives/maps/data] "meta_for_geo_shapes" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:15]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [antimeridian_points] creating index, cause [api], templates [], shards [1]/[0]
[00:00:15]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[antimeridian_points][0]]]).
[00:00:15]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "antimeridian_points"
[00:00:15]           │ debg [x-pack/test/functional/es_archives/maps/data] "antimeridian_points" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:15]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [antimeridian_shapes] creating index, cause [api], templates [], shards [1]/[0]
[00:00:15]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[antimeridian_shapes][0]]]).
[00:00:15]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "antimeridian_shapes"
[00:00:15]           │ debg [x-pack/test/functional/es_archives/maps/data] "antimeridian_shapes" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:15]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [flights] creating index, cause [api], templates [], shards [1]/[0]
[00:00:15]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[flights][0]]]).
[00:00:15]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "flights"
[00:00:15]           │ debg [x-pack/test/functional/es_archives/maps/data] "flights" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:15]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [connections] creating index, cause [api], templates [], shards [1]/[0]
[00:00:15]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[connections][0]]]).
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "connections"
[00:00:16]           │ debg [x-pack/test/functional/es_archives/maps/data] "connections" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:16]           │ info [o.e.c.m.MetadataMappingService] [node-01] [meta_for_geo_shapes/55-yL5U8ReyxvjwWy8tMHg] update_mapping [_doc]
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 4 docs into "geo_shapes"
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 1 docs into "drawing_data"
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 6 docs into "meta_for_geo_shapes"
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 3 docs into "antimeridian_points"
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 3 docs into "antimeridian_shapes"
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 3 docs into "flights"
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 4 docs into "connections"
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/kibana] Loading "mappings.json"
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/kibana] Loading "data.json"
[00:00:16]           │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_7.16.0_001/vzVOC5a2T-OjleuNQBa62w] deleting index
[00:00:16]           │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.16.0_001/A8jGkl3vQGK_niUP98PYRg] deleting index
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/kibana] Deleted existing index ".kibana_task_manager_7.16.0_001"
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/kibana] Deleted existing index ".kibana_7.16.0_001"
[00:00:16]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:00:16]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/kibana] Created index ".kibana_1"
[00:00:16]           │ debg [x-pack/test/functional/es_archives/maps/kibana] ".kibana_1" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:16]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_1/-fzl-P5wTeSi4x8OkJdTCQ] update_mapping [_doc]
[00:00:16]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_1/-fzl-P5wTeSi4x8OkJdTCQ] update_mapping [_doc]
[00:00:16]           │ info [x-pack/test/functional/es_archives/maps/kibana] Indexed 35 docs into ".kibana"
[00:00:16]           │ debg Migrating saved objects
[00:00:16]           │ proc [kibana]   log   [10:48:58.436] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 14ms.
[00:00:16]           │ proc [kibana]   log   [10:48:58.439] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 22ms.
[00:00:16]           │ proc [kibana]   log   [10:48:58.445] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 6ms.
[00:00:16]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_7.16.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:16]           │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_7.16.0_001]
[00:00:16]           │ proc [kibana]   log   [10:48:58.456] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 11ms.
[00:00:16]           │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/-fzl-P5wTeSi4x8OkJdTCQ]]
[00:00:17]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_7.16.0_001][0]]]).
[00:00:17]           │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:00:17]           │ proc [kibana]   log   [10:48:58.553] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 117ms.
[00:00:17]           │ proc [kibana]   log   [10:48:58.578] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CALCULATE_EXCLUDE_FILTERS. took: 122ms.
[00:00:17]           │ proc [kibana]   log   [10:48:58.587] [info][savedobjects-service] [.kibana] CALCULATE_EXCLUDE_FILTERS -> CREATE_REINDEX_TEMP. took: 9ms.
[00:00:17]           │ proc [kibana]   log   [10:48:58.607] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 54ms.
[00:00:17]           │ proc [kibana]   log   [10:48:58.608] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 186ms
[00:00:17]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.16.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:00:17]           │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_7.16.0_reindex_temp]
[00:00:17]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.16.0_reindex_temp][0]]]).
[00:00:17]           │ proc [kibana]   log   [10:48:58.680] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 93ms.
[00:00:17]           │ proc [kibana]   log   [10:48:58.697] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 17ms.
[00:00:17]           │ proc [kibana]   log   [10:48:58.719] [info][savedobjects-service] [.kibana] Starting to process 35 documents.
[00:00:17]           │ proc [kibana]   log   [10:48:58.719] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_TRANSFORM. took: 21ms.
[00:00:17]           │ proc [kibana]   log   [10:48:58.761] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_TRANSFORM -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 43ms.
[00:00:17]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_reindex_temp/1J6ZW4k4SM26J4sBwJ9f1A] update_mapping [_doc]
[00:00:17]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_reindex_temp/1J6ZW4k4SM26J4sBwJ9f1A] update_mapping [_doc]
[00:00:17]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_reindex_temp/1J6ZW4k4SM26J4sBwJ9f1A] update_mapping [_doc]
[00:00:17]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_reindex_temp/1J6ZW4k4SM26J4sBwJ9f1A] update_mapping [_doc]
[00:00:17]           │ proc [kibana]   log   [10:48:58.995] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 234ms.
[00:00:17]           │ proc [kibana]   log   [10:48:59.010] [info][savedobjects-service] [.kibana] Processed 35 documents out of 35.
[00:00:17]           │ proc [kibana]   log   [10:48:59.010] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 15ms.
[00:00:17]           │ proc [kibana]   log   [10:48:59.025] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 15ms.
[00:00:17]           │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_7.16.0_reindex_temp/1J6ZW4k4SM26J4sBwJ9f1A]]
[00:00:17]           │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_7.16.0_reindex_temp]
[00:00:17]           │ proc [kibana]   log   [10:48:59.094] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 69ms.
[00:00:17]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_7.16.0_reindex_temp] metadata
[00:00:17]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.16.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:00:17]           │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_7.16.0_001]
[00:00:17]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_001/36DUV3xBQOyC03TtxDfqhA] create_mapping [_doc]
[00:00:17]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.16.0_001][0]]]).
[00:00:17]           │ proc [kibana]   log   [10:48:59.338] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 244ms.
[00:00:17]           │ proc [kibana]   log   [10:48:59.349] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 11ms.
[00:00:17]           │ proc [kibana]   log   [10:48:59.356] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 7ms.
[00:00:17]           │ proc [kibana]   log   [10:48:59.384] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 28ms.
[00:00:17]           │ proc [kibana]   log   [10:48:59.390] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 6ms.
[00:00:17]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_001/36DUV3xBQOyC03TtxDfqhA] update_mapping [_doc]
[00:00:18]           │ proc [kibana]   log   [10:48:59.520] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 130ms.
[00:00:18]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.tasks] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:18]           │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.tasks]
[00:00:18]           │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.tasks][0]]]).
[00:00:18]           │ info [o.e.t.LoggingTaskListener] [node-01] 2567 finished with response BulkByScrollResponse[took=65ms,timed_out=false,sliceId=null,updated=35,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:18]           │ proc [kibana]   log   [10:48:59.744] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 224ms.
[00:00:18]           │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.16.0_reindex_temp/1J6ZW4k4SM26J4sBwJ9f1A] deleting index
[00:00:18]           │ proc [kibana]   log   [10:48:59.800] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 56ms.
[00:00:18]           │ proc [kibana]   log   [10:48:59.801] [info][savedobjects-service] [.kibana] Migration completed after 1384ms
[00:00:18]           │ debg [x-pack/test/functional/es_archives/maps/kibana] Migrated Kibana index after loading Kibana data
[00:00:18]           │ debg [x-pack/test/functional/es_archives/maps/kibana] Ensured that default space exists in .kibana
[00:00:18]           │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyPieChartsLibrary":true}
[00:00:18]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_001/36DUV3xBQOyC03TtxDfqhA] update_mapping [_doc]
[00:00:19]           │ debg replacing kibana config doc: {"defaultIndex":"c698b940-e149-11e8-a35a-370a8516603a"}
[00:00:22]         └-: 
[00:00:22]           └-> "before all" hook in ""
[00:00:22]           └-: documents source
[00:00:22]             └-> "before all" hook in "documents source"
[00:00:22]             └-: docvalue_fields
[00:00:22]               └-> "before all" hook for "should only fetch geo_point field and time field and nothing else when source does not have data driven styling"
[00:00:22]               └-> "before all" hook for "should only fetch geo_point field and time field and nothing else when source does not have data driven styling"
[00:00:22]                 │ debg set roles = global_maps_read,test_logstash_reader
[00:00:22]                 │ debg creating user test_user
[00:00:22]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [test_user]
[00:00:22]                 │ debg created user test_user
[00:00:22]                 │ debg Load Saved Map document example
[00:00:22]                 │ debg searchForMapWithName: document example
[00:00:22]                 │ debg gotoMapListingPage
[00:00:22]                 │ debg onMapListingPage
[00:00:22]                 │ debg TestSubjects.exists(mapLandingPage)
[00:00:22]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:00:25]                 │ debg --- retry.tryForTime error: [data-test-subj="mapLandingPage"] is not displayed
[00:00:28]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:29]                 │ debg navigateToActualUrl http://localhost:61151/app/maps/
[00:00:29]                 │ debg browser[INFO] http://localhost:61151/login?next=%2Fapp%2Fmaps%2F%3F_t%3D1633949350599 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:00:29]                 │
[00:00:29]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:29]                 │ debg currentUrl = http://localhost:61151/login?next=%2Fapp%2Fmaps%2F%3F_t%3D1633949350599
[00:00:29]                 │          appUrl = http://localhost:61151/app/maps/
[00:00:29]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:29]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:32]                 │ debg Found login page
[00:00:32]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:00:32]                 │ debg TestSubjects.click(loginUsername)
[00:00:32]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:32]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:32]                 │ERROR browser[SEVERE] http://localhost:61151/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:32]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:00:32]                 │ debg TestSubjects.click(loginPassword)
[00:00:32]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:32]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:33]                 │ debg TestSubjects.click(loginSubmit)
[00:00:33]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:33]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:33]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:00:33]                 │ proc [kibana]   log   [10:49:14.593] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:00:33]                 │ debg browser[INFO] http://localhost:61151/app/maps/?_t=1633949350599 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:00:33]                 │
[00:00:33]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:33]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:36]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:00:36]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_001/36DUV3xBQOyC03TtxDfqhA] update_mapping [_doc]
[00:00:37]                 │ debg browser[INFO] http://localhost:61151/app/maps/?_t=1633949357930 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:00:37]                 │
[00:00:37]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:37]                 │ debg Finished login process currentUrl = http://localhost:61151/app/maps/
[00:00:37]                 │ debg onMapListingPage
[00:00:37]                 │ debg TestSubjects.exists(mapLandingPage)
[00:00:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:00:39]                 │ debg searchForItemWithName: document example
[00:00:39]                 │ debg TestSubjects.find(tableListSearchBox)
[00:00:39]                 │ debg Find.findByCssSelector('[data-test-subj="tableListSearchBox"]') with timeout=10000
[00:00:40]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:40]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:40]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:41]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:00:42]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:42]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:42]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:42]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:42]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:43]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:00:44]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:44]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:44]                 │ debg TestSubjects.click(mapListingTitleLink-document-example)
[00:00:44]                 │ debg Find.clickByCssSelector('[data-test-subj="mapListingTitleLink-document-example"]') with timeout=10000
[00:00:44]                 │ debg Find.findByCssSelector('[data-test-subj="mapListingTitleLink-document-example"]') with timeout=10000
[00:00:44]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:44]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:44]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:45]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:45]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:46]                 │ debg TestSubjects.missingOrFail(mapLandingPage)
[00:00:46]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=10000
[00:00:47]                 │ debg Wait for layers to load
[00:00:47]                 │ debg TestSubjects.find(mapLayerTOC)
[00:00:47]                 │ debg Find.findByCssSelector('[data-test-subj="mapLayerTOC"]') with timeout=10000
[00:00:48]               └-> should only fetch geo_point field and time field and nothing else when source does not have data driven styling
[00:00:48]                 └-> "before each" hook: global before each for "should only fetch geo_point field and time field and nothing else when source does not have data driven styling"
[00:00:48]                 │ debg Load Saved Map document example
[00:00:48]                 │ debg searchForMapWithName: document example
[00:00:48]                 │ debg gotoMapListingPage
[00:00:48]                 │ debg onMapListingPage
[00:00:48]                 │ debg TestSubjects.exists(mapLandingPage)
[00:00:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:00:50]                 │ debg --- retry.tryForTime error: [data-test-subj="mapLandingPage"] is not displayed
[00:00:51]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.16.0_001/36DUV3xBQOyC03TtxDfqhA] update_mapping [_doc]
[00:00:54]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:54]                 │ debg navigateToActualUrl http://localhost:61151/app/maps/
[00:00:54]                 │ debg browser[INFO] http://localhost:61151/app/maps/?_t=1633949376028 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:00:54]                 │
[00:00:54]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:54]                 │ debg currentUrl = http://localhost:61151/app/maps/
[00:00:54]                 │          appUrl = http://localhost:61151/app/maps/
[00:00:54]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:54]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:56]                 │ debg onMapListingPage
[00:00:56]                 │ debg TestSubjects.exists(mapLandingPage)
[00:00:56]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:00:57]                 │ debg searchForItemWithName: document example
[00:00:57]                 │ debg TestSubjects.find(tableListSearchBox)
[00:00:57]                 │ debg Find.findByCssSelector('[data-test-subj="tableListSearchBox"]') with timeout=10000
[00:00:57]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:57]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:59]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:00]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:00]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:00]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:00]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:01]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:02]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:02]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:02]                 │ debg TestSubjects.click(mapListingTitleLink-document-example)
[00:01:02]                 │ debg Find.clickByCssSelector('[data-test-subj="mapListingTitleLink-document-example"]') with timeout=10000
[00:01:02]                 │ debg Find.findByCssSelector('[data-test-subj="mapListingTitleLink-document-example"]') with timeout=10000
[00:01:02]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:02]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:02]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:03]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:03]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:04]                 │ debg TestSubjects.missingOrFail(mapLandingPage)
[00:01:04]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=10000
[00:01:04]                 │ debg Wait for layers to load
[00:01:04]                 │ debg TestSubjects.find(mapLayerTOC)
[00:01:04]                 │ debg Find.findByCssSelector('[data-test-subj="mapLayerTOC"]') with timeout=10000
[00:01:05]                 │ debg Inspector.open
[00:01:05]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:08]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:08]                 │ debg TestSubjects.click(openInspectorButton)
[00:01:08]                 │ debg Find.clickByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:01:08]                 │ debg Find.findByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:01:09]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:09]                 │ debg Open Inspector view inspectorViewChooserRequests
[00:01:09]                 │ debg TestSubjects.click(inspectorViewChooser)
[00:01:09]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:01:09]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:01:09]                 │ debg TestSubjects.click(inspectorViewChooserRequests)
[00:01:09]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:01:09]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:01:09]                 │ debg TestSubjects.click(inspectorRequestDetailResponse)
[00:01:09]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:01:09]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:01:09]                 │ debg Find.findByCssSelector('.react-monaco-editor-container') with timeout=10000
[00:01:09]                 │ debg Close Inspector
[00:01:09]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:09]                 │ debg Closing flyout inspectorPanel
[00:01:09]                 │ debg TestSubjects.find(inspectorPanel)
[00:01:09]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=10000
[00:01:10]                 │ debg Waiting up to 20000ms for flyout closed...
[00:01:10]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:10]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=1000
[00:01:11]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:11]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:14]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:14]                 └- ✓ pass  (26.4s) "maps app  documents source docvalue_fields should only fetch geo_point field and time field and nothing else when source does not have data driven styling"
[00:01:14]               └-> should only fetch geo_point field and data driven styling fields
[00:01:14]                 └-> "before each" hook: global before each for "should only fetch geo_point field and data driven styling fields"
[00:01:14]                 │ debg Load Saved Map document example with data driven styles
[00:01:14]                 │ debg searchForMapWithName: document example with data driven styles
[00:01:14]                 │ debg gotoMapListingPage
[00:01:14]                 │ debg onMapListingPage
[00:01:14]                 │ debg TestSubjects.exists(mapLandingPage)
[00:01:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:01:17]                 │ debg --- retry.tryForTime error: [data-test-subj="mapLandingPage"] is not displayed
[00:01:20]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:20]                 │ debg navigateToActualUrl http://localhost:61151/app/maps/
[00:01:21]                 │ debg browser[INFO] http://localhost:61151/app/maps/?_t=1633949402424 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:01:21]                 │
[00:01:21]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:21]                 │ debg currentUrl = http://localhost:61151/app/maps/
[00:01:21]                 │          appUrl = http://localhost:61151/app/maps/
[00:01:21]                 │ debg TestSubjects.find(kibanaChrome)
[00:01:21]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:22]                 │ debg onMapListingPage
[00:01:22]                 │ debg TestSubjects.exists(mapLandingPage)
[00:01:22]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:01:23]                 │ debg searchForItemWithName: document example with data driven styles
[00:01:23]                 │ debg TestSubjects.find(tableListSearchBox)
[00:01:23]                 │ debg Find.findByCssSelector('[data-test-subj="tableListSearchBox"]') with timeout=10000
[00:01:24]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:24]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:24]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:25]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:26]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:26]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:26]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:26]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:27]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:28]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:28]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:28]                 │ debg TestSubjects.click(mapListingTitleLink-document-example-with-data-driven-styles)
[00:01:28]                 │ debg Find.clickByCssSelector('[data-test-subj="mapListingTitleLink-document-example-with-data-driven-styles"]') with timeout=10000
[00:01:28]                 │ debg Find.findByCssSelector('[data-test-subj="mapListingTitleLink-document-example-with-data-driven-styles"]') with timeout=10000
[00:01:28]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:28]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:28]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:29]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:29]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:30]                 │ debg TestSubjects.missingOrFail(mapLandingPage)
[00:01:30]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=10000
[00:01:31]                 │ debg Wait for layers to load
[00:01:31]                 │ debg TestSubjects.find(mapLayerTOC)
[00:01:31]                 │ debg Find.findByCssSelector('[data-test-subj="mapLayerTOC"]') with timeout=10000
[00:01:32]                 │ debg Inspector.open
[00:01:32]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:35]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:35]                 │ debg TestSubjects.click(openInspectorButton)
[00:01:35]                 │ debg Find.clickByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:01:35]                 │ debg Find.findByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:01:35]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:35]                 │ debg Open Inspector view inspectorViewChooserRequests
[00:01:35]                 │ debg TestSubjects.click(inspectorViewChooser)
[00:01:35]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:01:35]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:01:35]                 │ debg TestSubjects.click(inspectorViewChooserRequests)
[00:01:35]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:01:35]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:01:35]                 │ debg TestSubjects.click(inspectorRequestDetailResponse)
[00:01:35]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:01:35]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:01:36]                 │ debg Find.findByCssSelector('.react-monaco-editor-container') with timeout=10000
[00:01:36]                 │ debg Close Inspector
[00:01:36]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:36]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:36]                 │ debg Closing flyout inspectorPanel
[00:01:36]                 │ debg TestSubjects.find(inspectorPanel)
[00:01:36]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=10000
[00:01:36]                 │ debg Waiting up to 20000ms for flyout closed...
[00:01:36]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:36]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=1000
[00:01:37]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:38]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:38]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:40]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:41]                 └- ✓ pass  (26.5s) "maps app  documents source docvalue_fields should only fetch geo_point field and data driven styling fields"
[00:01:41]               └-> should format date fields as epoch_millis when data driven styling is applied to a date field
[00:01:41]                 └-> "before each" hook: global before each for "should format date fields as epoch_millis when data driven styling is applied to a date field"
[00:01:41]                 │ debg Load Saved Map document example with data driven styles on date field
[00:01:41]                 │ debg searchForMapWithName: document example with data driven styles on date field
[00:01:41]                 │ debg gotoMapListingPage
[00:01:41]                 │ debg onMapListingPage
[00:01:41]                 │ debg TestSubjects.exists(mapLandingPage)
[00:01:41]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:01:43]                 │ debg --- retry.tryForTime error: [data-test-subj="mapLandingPage"] is not displayed
[00:01:46]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:47]                 │ debg navigateToActualUrl http://localhost:61151/app/maps/
[00:01:47]                 │ debg browser[INFO] http://localhost:61151/app/maps/?_t=1633949428858 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:01:47]                 │
[00:01:47]                 │ debg browser[INFO] http://localhost:61151/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:47]                 │ debg currentUrl = http://localhost:61151/app/maps/
[00:01:47]                 │          appUrl = http://localhost:61151/app/maps/
[00:01:47]                 │ debg TestSubjects.find(kibanaChrome)
[00:01:47]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:49]                 │ debg onMapListingPage
[00:01:49]                 │ debg TestSubjects.exists(mapLandingPage)
[00:01:49]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:01:50]                 │ debg searchForItemWithName: document example with data driven styles on date field
[00:01:50]                 │ debg TestSubjects.find(tableListSearchBox)
[00:01:50]                 │ debg Find.findByCssSelector('[data-test-subj="tableListSearchBox"]') with timeout=10000
[00:01:51]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:51]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:51]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:52]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:53]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:53]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:53]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:53]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:53]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:54]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:55]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:55]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:55]                 │ debg TestSubjects.click(mapListingTitleLink-document-example-with-data-driven-styles-on-date-field)
[00:01:55]                 │ debg Find.clickByCssSelector('[data-test-subj="mapListingTitleLink-document-example-with-data-driven-styles-on-date-field"]') with timeout=10000
[00:01:55]                 │ debg Find.findByCssSelector('[data-test-subj="mapListingTitleLink-document-example-with-data-driven-styles-on-date-field"]') with timeout=10000
[00:01:55]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:55]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:55]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:56]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:56]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:57]                 │ debg TestSubjects.missingOrFail(mapLandingPage)
[00:01:57]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=10000
[00:01:58]                 │ debg Wait for layers to load
[00:01:58]                 │ debg TestSubjects.find(mapLayerTOC)
[00:01:58]                 │ debg Find.findByCssSelector('[data-test-subj="mapLayerTOC"]') with timeout=10000
[00:01:59]                 │ debg Inspector.open
[00:01:59]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:02:01]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:02:02]                 │ debg TestSubjects.click(openInspectorButton)
[00:02:02]                 │ debg Find.clickByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:02:02]                 │ debg Find.findByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:02:02]                 │ debg TestSubjects.exists(inspectorPanel)
[00:02:02]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:02:02]                 │ debg Open Inspector view inspectorViewChooserRequests
[00:02:02]                 │ debg TestSubjects.click(inspectorViewChooser)
[00:02:02]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:02:02]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:02:02]                 │ debg TestSubjects.click(inspectorViewChooserRequests)
[00:02:02]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:02:02]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:02:02]                 │ debg TestSubjects.click(inspectorRequestDetailResponse)
[00:02:02]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:02:02]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:02:02]                 │ debg Find.findByCssSelector('.react-monaco-editor-container') with timeout=10000
[00:02:03]                 │ debg Close Inspector
[00:02:03]                 │ debg TestSubjects.exists(inspectorPanel)
[00:02:03]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:02:03]                 │ debg Closing flyout inspectorPanel
[00:02:03]                 │ debg TestSubjects.find(inspectorPanel)
[00:02:03]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=10000
[00:02:03]                 │ debg Waiting up to 20000ms for flyout closed...
[00:02:03]                 │ debg TestSubjects.exists(inspectorPanel)
[00:02:03]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=1000
[00:02:04]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:02:04]                 │ debg TestSubjects.exists(inspectorPanel)
[00:02:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:02:07]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:02:07]                 │ info Taking screenshot "/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/screenshots/failure/maps app  documents source docvalue_fields should format date fields as epoch_millis when data driven styling is applied to a date field.png"
[00:02:08]                 │ info Current URL is: http://localhost:61151/app/maps/map/c9277dd0-eb8f-11e9-ae47-693d6a50fb9e#?_g=(filters:!(),refreshInterval:(pause:!t,value:1000),time:(from:%272015-09-20T00:00:00.000Z%27,to:%272015-09-20T01:00:00.000Z%27))&_a=(filters:!(),query:(language:kuery,query:%27%27))
[00:02:08]                 │ info Saving page source to: /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/failure_debug/html/maps app  documents source docvalue_fields should format date fields as epoch_millis when data driven styling is applied to a date field.html
[00:02:08]                 └- ✖ fail: maps app  documents source docvalue_fields should format date fields as epoch_millis when data driven styling is applied to a date field
[00:02:08]                 │       Error: expected '1442709162058' to sort of equal '1442709321445'
[00:02:08]                 │       + expected - actual
[00:02:08]                 │ 
[00:02:08]                 │       -1442709162058
[00:02:08]                 │       +1442709321445
[00:02:08]                 │       
[00:02:08]                 │       at Assertion.assert (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:02:08]                 │       at Assertion.eql (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:244:8)
[00:02:08]                 │       at Context.<anonymous> (test/functional/apps/maps/documents_source/docvalue_fields.js:52:51)
[00:02:08]                 │       at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:02:08]                 │ 
[00:02:08]                 │ 

Stack Trace

Error: expected '1442709162058' to sort of equal '1442709321445'
    at Assertion.assert (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:244:8)
    at Context.<anonymous> (test/functional/apps/maps/documents_source/docvalue_fields.js:52:51)
    at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16) {
  actual: '1442709162058',
  expected: '1442709321445',
  showDiff: true
}

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
upgradeAssistant 125.2KB 125.6KB +383.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
upgradeAssistant 16.2KB 16.3KB +112.0B

History

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

cc @sabarasaba

Copy link
Contributor

@yuliacech yuliacech left a comment

Choose a reason for hiding this comment

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

Thanks for adding my suggestion! code changes LGTM, didn't test locally.

@sabarasaba sabarasaba merged commit f69facc into elastic:7.x Oct 11, 2021
sabarasaba added a commit to sabarasaba/kibana that referenced this pull request Oct 20, 2021
sabarasaba added a commit to sabarasaba/kibana that referenced this pull request Oct 26, 2021
sabarasaba added 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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* 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 <40268737+jrodewig@users.noreply.github.com>

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

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

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

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

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* 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 <42973632+kibanamachine@users.noreply.github.com>

* Fix test errors (#115183)

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

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* 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 <cj@cenizal.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Dmitry Borodyansky <dborodyansky@gmail.com>
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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* 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 <40268737+jrodewig@users.noreply.github.com>

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

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

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

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

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* 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 <42973632+kibanamachine@users.noreply.github.com>

* Fix test errors (elastic#115183)

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

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* 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 <cj@cenizal.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Dmitry Borodyansky <dborodyansky@gmail.com>
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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* 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 <40268737+jrodewig@users.noreply.github.com>

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

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

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

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

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* 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 <42973632+kibanamachine@users.noreply.github.com>

* Fix test errors (#115183)

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

* [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 <42973632+kibanamachine@users.noreply.github.com>

* [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 <42973632+kibanamachine@users.noreply.github.com>

* 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 <cj@cenizal.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Dmitry Borodyansky <dborodyansky@gmail.com>

* commit with @elastic.co email

Co-authored-by: Ignacio Rivas <rivasign@gmail.com>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Dmitry Borodyansky <dborodyansky@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result 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