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

[Discover] Migrate AppState/GlobalState to new app state helpers #57175

Merged
merged 85 commits into from
Mar 9, 2020

Conversation

kertal
Copy link
Member

@kertal kertal commented Feb 10, 2020

Summary

Remove legacy AppState, GlobalState from Discover's Context application, replace with our shiny new state syncing utils #56479.

Note for testing

When you were changing an index pattern before this PR, it was followed by a $route.reload(). So the controller function was executed again. This is now also handled like a change of other state variables. Just pointing out to keep an eye on this changing behavior

Checklist

@kertal kertal self-assigned this Feb 13, 2020
@kertal kertal added release_note:skip Skip the PR/issue when compiling release notes v8.0.0 v7.7.0 labels Feb 13, 2020
@kertal kertal requested a review from alexwizp March 6, 2020 08:48
Copy link
Contributor

@alexwizp alexwizp left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you

@Dosant
Copy link
Contributor

Dosant commented Mar 6, 2020

@kertal the build success streak in awesome :D

@kertal
Copy link
Member Author

kertal commented Mar 6, 2020

@kertal the build success streak in awesome :D

😄 since our overlord jenkins seems to like this PR, I could continue with a simple addon like removing index patterns of Kibana

@kertal
Copy link
Member Author

kertal commented Mar 6, 2020

I’ll refactor IndexPatterns to IndexIceCream because it sounds tastier, and everybody loves 🍨.

Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@lizozom
Copy link
Contributor

lizozom commented Mar 8, 2020

@elasticmachine merge upstream

@kertal
Copy link
Member Author

kertal commented Mar 9, 2020

@elasticmachine merge upstream

Copy link
Contributor

@sulemanof sulemanof left a comment

Choose a reason for hiding this comment

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

LGTM 🎉
You did a great work, a really complicated piece of kibana pie!
I think even if any minor gap still exist, it could be resolved in the next iteration.

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

Tested and didn't find issues anymore, great work 🎉

Just left some minor nits

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Chrome UI Functional Tests.test/functional/apps/management/_handle_alias·js.management Index patterns on aliases should be able to discover and verify no of hits for alias2

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: management
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ info [logstash_functional] Unloading indices from "mappings.json"
[00:00:00]             │ info [logstash_functional] Unloading indices from "data.json.gz"
[00:00:01]             │ info [empty_kibana] Loading "mappings.json"
[00:00:01]             │ info [empty_kibana] Loading "data.json.gz"
[00:00:01]             │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana_1/8Naqcv0fQ_-NXvjr7y0LQg] deleting index
[00:00:01]             │ info [empty_kibana] Deleted existing index [".kibana_1"]
[00:00:01]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:01]             │ info [empty_kibana] Created index ".kibana"
[00:00:01]             │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:01]             │ info [empty_kibana] Indexed 1 docs into ".kibana"
[00:00:01]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana/rSa7KdI-RcCDYj-zi3AHsg] update_mapping [_doc]
[00:00:01]             │ debg Migrating saved objects
[00:00:01]             │ proc [kibana]   log   [14:30:16.477] [info][savedobjects-service] Creating index .kibana_2.
[00:00:02]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:02]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:02]             │ proc [kibana]   log   [14:30:16.606] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:02]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:02]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:02]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [_doc]
[00:00:02]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] updating number_of_replicas to [0] for indices [.tasks]
[00:00:02]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] 105 finished with response BulkByScrollResponse[took=85.4ms,timed_out=false,sliceId=null,updated=0,created=1,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:02]             │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana/rSa7KdI-RcCDYj-zi3AHsg] deleting index
[00:00:02]             │ proc [kibana]   log   [14:30:17.096] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:02]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana_2/h42MJzwXS1SOC5oVmMGTog] update_mapping [_doc]
[00:00:02]             │ proc [kibana]   log   [14:30:17.185] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:02]             │ proc [kibana]   log   [14:30:17.246] [info][savedobjects-service] Finished in 772ms.
[00:00:02]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:03]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana_2/h42MJzwXS1SOC5oVmMGTog] update_mapping [_doc]
[00:00:04]             │ info [makelogs] Loading "mappings.json"
[00:00:04]             │ info [makelogs] Loading "data.json.gz"
[00:00:04]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [logstash-2015.09.17] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:04]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.17][0]]]).
[00:00:04]             │ info [makelogs] Created index "logstash-2015.09.17"
[00:00:04]             │ debg [makelogs] "logstash-2015.09.17" 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:04]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [logstash-2015.09.18] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:04]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.18][0]]]).
[00:00:04]             │ info [makelogs] Created index "logstash-2015.09.18"
[00:00:04]             │ debg [makelogs] "logstash-2015.09.18" 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:05]             │ info [makelogs] Indexed 101 docs into "logstash-2015.09.17"
[00:00:05]             │ info [makelogs] Indexed 301 docs into "logstash-2015.09.18"
[00:00:06]           └-: 
[00:00:06]             └-> "before all" hook
[00:09:09]             └-: Index patterns on aliases
[00:09:09]               └-> "before all" hook
[00:09:09]               └-> "before all" hook
[00:09:10]                 │ info [alias] Loading "mappings.json"
[00:09:10]                 │ info [alias] Loading "data.json.gz"
[00:09:10]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [test3] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:09:10]                 │ info [alias] Created index "test3"
[00:09:10]                 │ debg [alias] "test3" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:09:10]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [test9] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:09:10]                 │ info [alias] Created index "test9"
[00:09:10]                 │ debg [alias] "test9" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:09:10]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [test4] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:09:10]                 │ info [alias] Created index "test4"
[00:09:10]                 │ debg [alias] "test4" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:09:10]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [test2] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:09:10]                 │ info [alias] Created index "test2"
[00:09:10]                 │ debg [alias] "test2" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:09:10]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [test7] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:09:10]                 │ info [alias] Created index "test7"
[00:09:10]                 │ debg [alias] "test7" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:09:10]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [test6] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:09:10]                 │ info [alias] Created index "test6"
[00:09:10]                 │ debg [alias] "test6" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:09:10]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [test8] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:09:10]                 │ info [alias] Created index "test8"
[00:09:10]                 │ debg [alias] "test8" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:09:10]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [test5] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:09:11]                 │ info [alias] Created index "test5"
[00:09:11]                 │ debg [alias] "test5" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:09:11]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [test1] creating index, cause [api], templates [], shards [5]/[1], mappings [_doc]
[00:09:11]                 │ info [alias] Created index "test1"
[00:09:11]                 │ debg [alias] "test1" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:09:11]                 │ info [alias] Indexed 1 docs into "test3"
[00:09:11]                 │ info [alias] Indexed 1 docs into "test9"
[00:09:11]                 │ info [alias] Indexed 1 docs into "test4"
[00:09:11]                 │ info [alias] Indexed 1 docs into "test2"
[00:09:11]                 │ info [alias] Indexed 1 docs into "test7"
[00:09:11]                 │ info [alias] Indexed 1 docs into "test6"
[00:09:11]                 │ info [alias] Indexed 1 docs into "test8"
[00:09:11]                 │ info [alias] Indexed 1 docs into "test5"
[00:09:11]                 │ info [alias] Indexed 1 docs into "test1"
[00:09:11]                 │ info [empty_kibana] Loading "mappings.json"
[00:09:11]                 │ info [empty_kibana] Loading "data.json.gz"
[00:09:11]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana/OMuKXnAKRAqyjaEoTO_oew] deleting index
[00:09:11]                 │ info [empty_kibana] Deleted existing index [".kibana"]
[00:09:11]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:09:11]                 │ info [empty_kibana] Created index ".kibana"
[00:09:11]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:09:11]                 │ info [empty_kibana] Indexed 1 docs into ".kibana"
[00:09:11]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana/DIWx7O1tSiq0DMoHQwWzcA] update_mapping [_doc]
[00:09:11]                 │ debg Migrating saved objects
[00:09:11]                 │ proc [kibana]   log   [14:39:26.176] [info][savedobjects-service] Creating index .kibana_2.
[00:09:11]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:09:11]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] updating number_of_replicas to [0] for indices [.kibana_2]
[00:09:11]                 │ proc [kibana]   log   [14:39:26.250] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:09:11]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:09:11]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] updating number_of_replicas to [0] for indices [.kibana_1]
[00:09:11]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] 6141 finished with response BulkByScrollResponse[took=36.7ms,timed_out=false,sliceId=null,updated=0,created=1,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:09:12]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana/DIWx7O1tSiq0DMoHQwWzcA] deleting index
[00:09:12]                 │ proc [kibana]   log   [14:39:26.597] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:09:12]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana_2/POIG_CozQ6yM9XDQ1mlxPg] update_mapping [_doc]
[00:09:12]                 │ proc [kibana]   log   [14:39:26.637] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:09:12]                 │ proc [kibana]   log   [14:39:26.688] [info][savedobjects-service] Finished in 515ms.
[00:09:12]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:09:12]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana_2/POIG_CozQ6yM9XDQ1mlxPg] update_mapping [_doc]
[00:09:13]               └-> should be able to create index pattern without time field
[00:09:13]                 └-> "before each" hook: global before each
[00:09:13]                 │ debg navigating to settings url: http://localhost:6181/app/kibana#/management
[00:09:13]                 │ debg Navigate to: http://localhost:6181/app/kibana#/management
[00:09:13]                 │ debg ... sleep(700) start
[00:09:13]                 │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1583764768290#/management 350 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:09:13]                 │
[00:09:13]                 │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:14]                 │ debg ... sleep(700) end
[00:09:14]                 │ debg returned from get, calling refresh
[00:09:14]                 │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1583764768290#/management 350 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:09:14]                 │
[00:09:14]                 │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:15]                 │ debg currentUrl = http://localhost:6181/app/kibana#/management
[00:09:15]                 │          appUrl = http://localhost:6181/app/kibana#/management
[00:09:15]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:09:18]                 │ debg TestSubjects.find(kibanaChrome)
[00:09:18]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:09:18]                 │ debg browser[INFO] http://localhost:6181/bundles/plugin/data/data.plugin.js 90:139970 "INFO: 2020-03-09T14:39:31Z
[00:09:18]                 │        Adding connection to http://localhost:6181/elasticsearch
[00:09:18]                 │
[00:09:18]                 │      "
[00:09:18]                 │ debg ... sleep(501) start
[00:09:18]                 │ debg ... sleep(501) end
[00:09:18]                 │ debg in navigateTo url = http://localhost:6181/app/kibana#/management?_g=()
[00:09:18]                 │ debg TestSubjects.exists(statusPageContainer)
[00:09:18]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:09:21]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:09:21]                 │ debg isGlobalLoadingIndicatorVisible
[00:09:21]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:21]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:23]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:23]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:23]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:23]                 │ debg clickKibanaIndexPatterns link
[00:09:23]                 │ debg TestSubjects.click(index_patterns)
[00:09:23]                 │ debg Find.clickByCssSelector('[data-test-subj="index_patterns"]') with timeout=10000
[00:09:23]                 │ debg Find.findByCssSelector('[data-test-subj="index_patterns"]') with timeout=10000
[00:09:24]                 │ debg isGlobalLoadingIndicatorVisible
[00:09:24]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:24]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:25]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:26]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:26]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:26]                 │ debg Waiting up to 20000ms for index pattern info flyout...
[00:09:26]                 │ debg TestSubjects.exists(CreateIndexPatternPrompt)
[00:09:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="CreateIndexPatternPrompt"]') with timeout=2500
[00:09:26]                 │ debg TestSubjects.click(CreateIndexPatternPrompt > euiFlyoutCloseButton)
[00:09:26]                 │ debg Find.clickByCssSelector('[data-test-subj="CreateIndexPatternPrompt"] [data-test-subj="euiFlyoutCloseButton"]') with timeout=10000
[00:09:26]                 │ debg Find.findByCssSelector('[data-test-subj="CreateIndexPatternPrompt"] [data-test-subj="euiFlyoutCloseButton"]') with timeout=10000
[00:09:26]                 │ debg TestSubjects.exists(CreateIndexPatternPrompt)
[00:09:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="CreateIndexPatternPrompt"]') with timeout=2500
[00:09:29]                 │ debg --- retry.tryForTime error: [data-test-subj="CreateIndexPatternPrompt"] is not displayed
[00:09:29]                 │ debg isGlobalLoadingIndicatorVisible
[00:09:29]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:29]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:31]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:31]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:31]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:31]                 │ debg TestSubjects.isDisplayed(createIndexPatternButton)
[00:09:31]                 │ debg TestSubjects.find(createIndexPatternButton)
[00:09:31]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:09:31]                 │ debg TestSubjects.click(createIndexPatternButton)
[00:09:31]                 │ debg Find.clickByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:09:31]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:09:31]                 │ debg isGlobalLoadingIndicatorVisible
[00:09:31]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:31]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:32]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:32]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:32]                 │ debg setIndexPatternField(alias1)
[00:09:32]                 │ debg TestSubjects.find(createIndexPatternNameInput)
[00:09:32]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternNameInput"]') with timeout=10000
[00:09:33]                 │ debg setIndexPatternField set to alias1*
[00:09:33]                 │ debg ... sleep(2000) start
[00:09:35]                 │ debg ... sleep(2000) end
[00:09:35]                 │ debg TestSubjects.find(createIndexPatternGoToStep2Button)
[00:09:35]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternGoToStep2Button"]') with timeout=10000
[00:09:35]                 │ debg ... sleep(2000) start
[00:09:37]                 │ debg ... sleep(2000) end
[00:09:37]                 │ debg TestSubjects.find(createIndexPatternButton)
[00:09:37]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:09:37]                 │ debg isGlobalLoadingIndicatorVisible
[00:09:37]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:37]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana_2/POIG_CozQ6yM9XDQ1mlxPg] update_mapping [_doc]
[00:09:37]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:37]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:37]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1583763001710216741] [.kibana_2/POIG_CozQ6yM9XDQ1mlxPg] update_mapping [_doc]
[00:09:38]                 │ info currentUrl http://localhost:6181/app/kibana#/management/kibana/index_patterns/d5ceec30-6213-11ea-bee7-c5590bdd16fb?_g=()
[00:09:38]                 │ debg Index pattern created: http://localhost:6181/app/kibana#/management/kibana/index_patterns/d5ceec30-6213-11ea-bee7-c5590bdd16fb?_g=()
[00:09:38]                 │ debg index pattern ID:  d5ceec30-6213-11ea-bee7-c5590bdd16fb?_g=()
[00:09:38]                 │ debg TestSubjects.find(indexPatternTitle)
[00:09:38]                 │ debg Find.findByCssSelector('[data-test-subj="indexPatternTitle"]') with timeout=10000
[00:09:40]                 └- ✓ pass  (26.4s) "management  Index patterns on aliases should be able to create index pattern without time field"
[00:09:40]               └-> should be able to discover and verify no of hits for alias1
[00:09:40]                 └-> "before each" hook: global before each
[00:09:40]                 │ debg navigating to discover url: http://localhost:6181/app/kibana#/discover
[00:09:40]                 │ debg Navigate to: http://localhost:6181/app/kibana#/discover
[00:09:40]                 │ debg ... sleep(700) start
[00:09:40]                 │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1583764794689#/discover 350 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:09:40]                 │
[00:09:40]                 │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:40]                 │ debg ... sleep(700) end
[00:09:40]                 │ debg returned from get, calling refresh
[00:09:41]                 │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1583764794689#/discover 350 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:09:41]                 │
[00:09:41]                 │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:41]                 │ debg currentUrl = http://localhost:6181/app/kibana#/discover
[00:09:41]                 │          appUrl = http://localhost:6181/app/kibana#/discover
[00:09:41]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:09:43]                 │ debg TestSubjects.find(kibanaChrome)
[00:09:43]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:09:43]                 │ debg browser[INFO] http://localhost:6181/bundles/plugin/data/data.plugin.js 90:139970 "INFO: 2020-03-09T14:39:57Z
[00:09:43]                 │        Adding connection to http://localhost:6181/elasticsearch
[00:09:43]                 │
[00:09:43]                 │      "
[00:09:43]                 │ debg ... sleep(501) start
[00:09:44]                 │ debg ... sleep(501) end
[00:09:44]                 │ debg in navigateTo url = http://localhost:6181/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:d5ceec30-6213-11ea-bee7-c5590bdd16fb,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:09:44]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:09:44]                 │ debg ... sleep(501) start
[00:09:45]                 │ debg ... sleep(501) end
[00:09:45]                 │ debg in navigateTo url = http://localhost:6181/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:d5ceec30-6213-11ea-bee7-c5590bdd16fb,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:09:45]                 │ debg TestSubjects.exists(statusPageContainer)
[00:09:45]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:09:47]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:09:48]                 │ debg isGlobalLoadingIndicatorVisible
[00:09:48]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:49]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:50]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:50]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:50]                 │ debg TestSubjects.getVisibleText(discoverQueryHits)
[00:09:50]                 │ debg TestSubjects.find(discoverQueryHits)
[00:09:50]                 │ debg Find.findByCssSelector('[data-test-subj="discoverQueryHits"]') with timeout=10000
[00:09:50]                 └- ✓ pass  (10.2s) "management  Index patterns on aliases should be able to discover and verify no of hits for alias1"
[00:09:50]               └-> should be able to create index pattern with timefield
[00:09:50]                 └-> "before each" hook: global before each
[00:09:50]                 │ debg navigating to settings url: http://localhost:6181/app/kibana#/management
[00:09:50]                 │ debg Navigate to: http://localhost:6181/app/kibana#/management
[00:09:50]                 │ debg ... sleep(700) start
[00:09:50]                 │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1583764804925#/management 350 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:09:50]                 │
[00:09:50]                 │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:51]                 │ debg ... sleep(700) end
[00:09:51]                 │ debg returned from get, calling refresh
[00:09:51]                 │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1583764804925#/management 350 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:09:51]                 │
[00:09:51]                 │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:51]                 │ debg currentUrl = http://localhost:6181/app/kibana#/management
[00:09:51]                 │          appUrl = http://localhost:6181/app/kibana#/management
[00:09:51]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:09:53]                 │ debg TestSubjects.find(kibanaChrome)
[00:09:53]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:09:53]                 │ debg browser[INFO] http://localhost:6181/bundles/plugin/data/data.plugin.js 90:139970 "INFO: 2020-03-09T14:40:07Z
[00:09:53]                 │        Adding connection to http://localhost:6181/elasticsearch
[00:09:53]                 │
[00:09:53]                 │      "
[00:09:53]                 │ debg ... sleep(501) start
[00:09:54]                 │ debg ... sleep(501) end
[00:09:54]                 │ debg in navigateTo url = http://localhost:6181/app/kibana#/management?_g=()
[00:09:54]                 │ debg TestSubjects.exists(statusPageContainer)
[00:09:54]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:09:56]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:09:57]                 │ debg isGlobalLoadingIndicatorVisible
[00:09:57]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:58]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:59]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:59]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:59]                 │ debg clickKibanaIndexPatterns link
[00:09:59]                 │ debg TestSubjects.click(index_patterns)
[00:09:59]                 │ debg Find.clickByCssSelector('[data-test-subj="index_patterns"]') with timeout=10000
[00:09:59]                 │ debg Find.findByCssSelector('[data-test-subj="index_patterns"]') with timeout=10000
[00:09:59]                 │ debg isGlobalLoadingIndicatorVisible
[00:09:59]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:59]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:10:01]                 │ debg --- retry.tryForTime failed again with the same message...
[00:10:02]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:10:02]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:10:02]                 │ debg Waiting up to 20000ms for index pattern info flyout...
[00:10:02]                 │ debg TestSubjects.exists(CreateIndexPatternPrompt)
[00:10:02]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="CreateIndexPatternPrompt"]') with timeout=2500
[00:10:04]                 │ debg --- retry.tryForTime error: [data-test-subj="CreateIndexPatternPrompt"] is not displayed
[00:10:05]                 │ debg isGlobalLoadingIndicatorVisible
[00:10:05]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:10:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:10:06]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:10:07]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:10:07]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:10:07]                 │ debg TestSubjects.isDisplayed(createIndexPatternButton)
[00:10:07]                 │ debg TestSubjects.find(createIndexPatternButton)
[00:10:07]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:10:07]                 │ debg TestSubjects.click(createIndexPatternButton)
[00:10:07]                 │ debg Find.clickByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:10:07]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:10:07]                 │ debg isGlobalLoadingIndicatorVisible
[00:10:07]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:10:07]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:10:07]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:10:07]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:10:07]                 │ debg setIndexPatternField(alias2)
[00:10:07]                 │ debg TestSubjects.find(createIndexPatternNameInput)
[00:10:07]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternNameInput"]') with timeout=10000
[00:10:08]                 │ debg setIndexPatternField set to alias2*
[00:10:08]                 │ debg ... sleep(2000) start
[00:10:10]                 │ debg ... sleep(2000) end
[00:10:10]                 │ debg TestSubjects.find(createIndexPatternGoToStep2Button)
[00:10:10]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternGoToStep2Button"]') with timeout=10000
[00:10:10]                 │ debg ... sleep(2000) start
[00:10:12]                 │ debg ... sleep(2000) end
[00:10:12]                 │ debg TestSubjects.click(createIndexPatternTimeFieldSelect)
[00:10:12]                 │ debg Find.clickByCssSelector('[data-test-subj="createIndexPatternTimeFieldSelect"]') with timeout=10000
[00:10:12]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternTimeFieldSelect"]') with timeout=10000
[00:10:13]                 │ debg TestSubjects.click(createIndexPatternTimeFieldSelect)
[00:10:13]                 │ debg Find.clickByCssSelector('[data-test-subj="createIndexPatternTimeFieldSelect"]') with timeout=10000
[00:10:13]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternTimeFieldSelect"]') with timeout=10000
[00:10:13]                 │ debg isGlobalLoadingIndicatorVisible
[00:10:13]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:10:13]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:10:14]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:10:15]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:10:15]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:10:15]                 │ debg selectTimeFieldOption(date)
[00:10:15]                 │ debg Find.displayedByCssSelector(option[value="date"])
[00:10:15]                 │ debg Find.findByCssSelector('option[value="date"]') with timeout=10000
[00:10:15]                 │ debg Wait for element become visible: option[value="date"] with timeout=10000
[00:10:15]                 │ debg TestSubjects.find(createIndexPatternButton)
[00:10:15]                 │ debg Find.findByCssSelector('[data-test-subj="createIndexPatternButton"]') with timeout=10000
[00:10:15]                 │ debg isGlobalLoadingIndicatorVisible
[00:10:15]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:10:15]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:10:15]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:10:15]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:10:16]                 │ info currentUrl http://localhost:6181/app/kibana#/management/kibana/index_patterns/ec6e1740-6213-11ea-bee7-c5590bdd16fb?_g=()
[00:10:16]                 │ debg Index pattern created: http://localhost:6181/app/kibana#/management/kibana/index_patterns/ec6e1740-6213-11ea-bee7-c5590bdd16fb?_g=()
[00:10:16]                 │ debg index pattern ID:  ec6e1740-6213-11ea-bee7-c5590bdd16fb?_g=()
[00:10:16]                 │ debg TestSubjects.find(indexPatternTitle)
[00:10:16]                 │ debg Find.findByCssSelector('[data-test-subj="indexPatternTitle"]') with timeout=10000
[00:10:17]                 └- ✓ pass  (26.8s) "management  Index patterns on aliases should be able to create index pattern with timefield"
[00:10:17]               └-> should be able to discover and verify no of hits for alias2
[00:10:17]                 └-> "before each" hook: global before each
[00:10:17]                 │ debg navigating to discover url: http://localhost:6181/app/kibana#/discover
[00:10:17]                 │ debg Navigate to: http://localhost:6181/app/kibana#/discover
[00:10:17]                 │ debg ... sleep(700) start
[00:10:17]                 │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1583764831775#/discover 350 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:10:17]                 │
[00:10:17]                 │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:10:18]                 │ debg ... sleep(700) end
[00:10:18]                 │ debg returned from get, calling refresh
[00:10:18]                 │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1583764831775#/discover 350 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:10:18]                 │
[00:10:18]                 │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:10:18]                 │ debg currentUrl = http://localhost:6181/app/kibana#/discover
[00:10:18]                 │          appUrl = http://localhost:6181/app/kibana#/discover
[00:10:18]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:10:20]                 │ debg TestSubjects.find(kibanaChrome)
[00:10:20]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:10:20]                 │ debg browser[INFO] http://localhost:6181/bundles/plugin/data/data.plugin.js 90:139970 "INFO: 2020-03-09T14:40:34Z
[00:10:20]                 │        Adding connection to http://localhost:6181/elasticsearch
[00:10:20]                 │
[00:10:20]                 │      "
[00:10:20]                 │ debg ... sleep(501) start
[00:10:21]                 │ debg ... sleep(501) end
[00:10:21]                 │ debg in navigateTo url = http://localhost:6181/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:d5ceec30-6213-11ea-bee7-c5590bdd16fb,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:10:21]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:10:22]                 │ debg ... sleep(501) start
[00:10:22]                 │ debg ... sleep(501) end
[00:10:22]                 │ debg in navigateTo url = http://localhost:6181/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:d5ceec30-6213-11ea-bee7-c5590bdd16fb,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:10:22]                 │ debg TestSubjects.exists(statusPageContainer)
[00:10:22]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:10:25]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:10:25]                 │ debg TestSubjects.click(indexPattern-switch-link)
[00:10:25]                 │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:10:25]                 │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:10:25]                 │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switcher"] [title="alias2*"]') with timeout=10000
[00:10:25]                 │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] [title="alias2*"]') with timeout=10000
[00:10:25]                 │ debg isGlobalLoadingIndicatorVisible
[00:10:25]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:10:25]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:10:27]                 │ERROR browser[SEVERE] http://localhost:6181/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 367:78758 Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
[00:10:27]                 │      Watchers fired in the last 5 iterations: [[{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.679","oldVal":"Mar 9, 2020 @ 14:40:40.678"},{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.679","oldVal":"Mar 9, 2020 @ 14:40:40.678"}],[{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.680","oldVal":"Mar 9, 2020 @ 14:40:40.679"},{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.680","oldVal":"Mar 9, 2020 @ 14:40:40.679"}],[{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.681","oldVal":"Mar 9, 2020 @ 14:40:40.680"},{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.681","oldVal":"Mar 9, 2020 @ 14:40:40.680"}],[{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.682","oldVal":"Mar 9, 2020 @ 14:40:40.681"},{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.682","oldVal":"Mar 9, 2020 @ 14:40:40.681"}],[{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.683","oldVal":"Mar 9, 2020 @ 14:40:40.682"},{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.683","oldVal":"Mar 9, 2020 @ 14:40:40.682"}]]
[00:10:27]                 │      https://errors.angularjs.org/1.7.9/$rootScope/infdig?p0=10&p1=%5B%5B%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.679%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.678%22%7D%2C%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.679%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.678%22%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.680%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.679%22%7D%2C%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.680%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.679%22%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.681%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.680%22%7D%2C%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.681%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.680%22%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.682%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.681%22%7D%2C%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.682%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.681%22%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.683%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.682%22%7D%2C%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.683%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.682%22%7D%5D%5D
[00:10:27]                 │          at http://localhost:6181/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:837
[00:10:27]                 │          at u.$digest (http://localhost:6181/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:100784)
[00:10:27]                 │          at u.$apply (http://localhost:6181/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:102334)
[00:10:27]                 │          at callInDigest (http://localhost:6181/bundles/commons.bundle.js:1:186721)
[00:10:27]                 │          at Object.next (http://localhost:6181/bundles/commons.bundle.js:1:186944)
[00:10:27]                 │          at SafeSubscriber.__tryOrUnsub (http://localhost:6181/built_assets/dlls/vendors_2.bundle.dll.js:1:5403)
[00:10:27]                 │          at SafeSubscriber.next (http://localhost:6181/built_assets/dlls/vendors_2.bundle.dll.js:1:3955)
[00:10:27]                 │          at Subscriber._next (http://localhost:6181/built_assets/dlls/vendors_2.bundle.dll.js:1:2487)
[00:10:27]                 │          at Subscriber.next (http://localhost:6181/built_assets/dlls/vendors_2.bundle.dll.js:1:2084)
[00:10:27]                 │          at DebounceTimeSubscriber.debouncedNext (http://localhost:6181/built_assets/dlls/vendors_2.bundle.dll.js:15:680010)
[00:10:27]                 │ERROR browser[SEVERE] http://localhost:6181/bundles/commons.bundle.js 0:1401304 Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
[00:10:27]                 │      Watchers fired in the last 5 iterations: [[{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.679","oldVal":"Mar 9, 2020 @ 14:40:40.678"},{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.679","oldVal":"Mar 9, 2020 @ 14:40:40.678"}],[{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.680","oldVal":"Mar 9, 2020 @ 14:40:40.679"},{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.680","oldVal":"Mar 9, 2020 @ 14:40:40.679"}],[{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.681","oldVal":"Mar 9, 2020 @ 14:40:40.680"},{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.681","oldVal":"Mar 9, 2020 @ 14:40:40.680"}],[{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.682","oldVal":"Mar 9, 2020 @ 14:40:40.681"},{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.682","oldVal":"Mar 9, 2020 @ 14:40:40.681"}],[{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.683","oldVal":"Mar 9, 2020 @ 14:40:40.682"},{"msg":"fn: o","newVal":"Mar 9, 2020 @ 14:40:40.683","oldVal":"Mar 9, 2020 @ 14:40:40.682"}]]
[00:10:27]                 │      https://errors.angularjs.org/1.7.9/$rootScope/infdig?p0=10&p1=%5B%5B%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.679%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.678%22%7D%2C%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.679%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.678%22%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.680%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.679%22%7D%2C%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.680%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.679%22%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.681%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.680%22%7D%2C%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.681%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.680%22%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.682%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.681%22%7D%2C%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.682%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.681%22%7D%5D%2C%5B%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.683%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.682%22%7D%2C%7B%22msg%22%3A%22fn%3A%20o%22%2C%22newVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.683%22%2C%22oldVal%22%3A%22Mar%209%2C%202020%20%40%2014%3A40%3A40.682%22%7D%5D%5D
[00:10:27]                 │          at http://localhost:6181/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:837
[00:10:27]                 │          at u.$digest (http://localhost:6181/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:100784)
[00:10:27]                 │          at u.$apply (http://localhost:6181/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:102334)
[00:10:27]                 │          at callInDigest (http://localhost:6181/bundles/commons.bundle.js:1:186721)
[00:10:27]                 │          at Object.next (http://localhost:6181/bundles/commons.bundle.js:1:186944)
[00:10:27]                 │          at SafeSubscriber.__tryOrUnsub (http://localhost:6181/built_assets/dlls/vendors_2.bundle.dll.js:1:5403)
[00:10:27]                 │          at SafeSubscriber.next (http://localhost:6181/built_assets/dlls/vendors_2.bundle.dll.js:1:3955)
[00:10:27]                 │          at Subscriber._next (http://localhost:6181/built_assets/dlls/vendors_2.bundle.dll.js:1:2487)
[00:10:27]                 │          at Subscriber.next (http://localhost:6181/built_assets/dlls/vendors_2.bundle.dll.js:1:2084)
[00:10:27]                 │          at DebounceTimeSubscriber.debouncedNext (http://localhost:6181/built_assets/dlls/vendors_2.bundle.dll.js:15:680010)
[00:10:27]                 │ERROR browser[SEVERE] http://localhost:6181/built_assets/dlls/vendors_2.bundle.dll.js 7:119665 Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reache…09%2C%202020%20%40%2014%3A40%3A40.682%22%7D%5D%5D
[00:10:27]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:10:27]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:10:27]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:12:08]                 │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/management  Index patterns on aliases should be able to discover and verify no of hits for alias2.png"
[00:12:08]                 │ info Current URL is: http://localhost:6181/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:ec6e1740-6213-11ea-bee7-c5590bdd16fb,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:12:08]                 │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/management  Index patterns on aliases should be able to discover and verify no of hits for alias2.html
[00:12:08]                 └- ✖ fail: "management  Index patterns on aliases should be able to discover and verify no of hits for alias2"
[00:12:08]                 │

Stack Trace

Error: expected testSubject(globalLoadingIndicator-hidden) to exist
    at TestSubjects.existOrFail (test/functional/services/test_subjects.ts:60:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)

History

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

@kertal kertal merged commit e630950 into elastic:master Mar 9, 2020
kertal added a commit to kertal/kibana that referenced this pull request Mar 9, 2020
…stic#57175)

* Replace AppState

* Replace GlobalState

* Adapt functional test

* Sync initial app state to URL

* Add jest tests

* Refactoring to use use-default-behaviors="true" in kbn-top-nav

* Cleanup code remove unnecessary imports and variables

* Refactor to use syncQueryStateWithUrl & stopSyncingQueryAppStateWithStateContainer

* Remove discoverPersistedState

* Allow indexPattern switch without $route.reload()

* Remove timeRangeObj because it's not needed

* Create new getDefaultQuery in data plugin

* Simplify check for null in sync_state_with_url.ts

* Remove unused stateMonitorFactory

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 10, 2020
* master: (22 commits)
  Generate docs from data plugin (elastic#56955)
  Fixes elastic#59513 by hiding one of the symmetric edges rather than omiting it (elastic#59514)
  Harden creation of child processes (elastic#55697)
  [Alerting] replace watcher http APIs used by index threshold Alerting (elastic#59475)
  [Maps][docs] add more details to Quantitative data driven styling docs (elastic#59553)
  chore: 🤖 hide Drilldowns in master (elastic#59698)
  [Discover] Migrate AppState/GlobalState to new app state helpers (elastic#57175)
  Use HTTP request schemas to create types, use those types in the client (elastic#59340)
  [Maps] Support categorical styling for numbers and dates (elastic#57908)
  [ML] Functional API tests - bucket span estimation with custom search.max_buckets (elastic#59665)
  Fix slm_ui setting by changing camel case back to snake case. (elastic#59663)
  removes beta tag (elastic#59618)
  [DOCS] Removed spatial references (elastic#59595)
  fix outdated docs (elastic#58729)
  [ML] Fixes bucket span estimators loading of max_buckets setting (elastic#59639)
  [ML] Refactoring anomaly detector job types (elastic#59556)
  [Upgrade Assistant] Better handling of closed indices (elastic#58890)
  additional visualizations plugin cleanup before moving to NP (elastic#59318)
  In scripted fields, unable to switch the `Type` - getting a console error which says - Class constructor DecoratedFieldFormat cannot be invoked without 'new' (elastic#59285)
  [Visualize] Remove global state in visualize (elastic#58352)
  ...
@streamich streamich mentioned this pull request Mar 10, 2020
30 tasks
gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 10, 2020
…s/kibana into alerting/fix-flaky-instance-test

* 'alerting/fix-flaky-instance-test' of github.com:gmmorris/kibana: (176 commits)
  Generate docs from data plugin (elastic#56955)
  Fixes elastic#59513 by hiding one of the symmetric edges rather than omiting it (elastic#59514)
  Harden creation of child processes (elastic#55697)
  [Alerting] replace watcher http APIs used by index threshold Alerting (elastic#59475)
  [Maps][docs] add more details to Quantitative data driven styling docs (elastic#59553)
  chore: 🤖 hide Drilldowns in master (elastic#59698)
  [Discover] Migrate AppState/GlobalState to new app state helpers (elastic#57175)
  Use HTTP request schemas to create types, use those types in the client (elastic#59340)
  [Maps] Support categorical styling for numbers and dates (elastic#57908)
  [ML] Functional API tests - bucket span estimation with custom search.max_buckets (elastic#59665)
  Fix slm_ui setting by changing camel case back to snake case. (elastic#59663)
  removes beta tag (elastic#59618)
  [DOCS] Removed spatial references (elastic#59595)
  fix outdated docs (elastic#58729)
  [ML] Fixes bucket span estimators loading of max_buckets setting (elastic#59639)
  [ML] Refactoring anomaly detector job types (elastic#59556)
  [Upgrade Assistant] Better handling of closed indices (elastic#58890)
  additional visualizations plugin cleanup before moving to NP (elastic#59318)
  In scripted fields, unable to switch the `Type` - getting a console error which says - Class constructor DecoratedFieldFormat cannot be invoked without 'new' (elastic#59285)
  [Visualize] Remove global state in visualize (elastic#58352)
  ...
kertal added a commit that referenced this pull request Mar 10, 2020
) (#59687)

* Replace AppState

* Replace GlobalState

* Adapt functional test

* Sync initial app state to URL

* Add jest tests

* Refactoring to use use-default-behaviors="true" in kbn-top-nav

* Cleanup code remove unnecessary imports and variables

* Refactor to use syncQueryStateWithUrl & stopSyncingQueryAppStateWithStateContainer

* Remove discoverPersistedState

* Allow indexPattern switch without $route.reload()

* Remove timeRangeObj because it's not needed

* Create new getDefaultQuery in data plugin

* Simplify check for null in sync_state_with_url.ts

* Remove unused stateMonitorFactory

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
jkelastic pushed a commit to jkelastic/kibana that referenced this pull request Mar 12, 2020
…stic#57175)

* Replace AppState

* Replace GlobalState

* Adapt functional test

* Sync initial app state to URL

* Add jest tests

* Refactoring to use use-default-behaviors="true" in kbn-top-nav

* Cleanup code remove unnecessary imports and variables

* Refactor to use syncQueryStateWithUrl & stopSyncingQueryAppStateWithStateContainer

* Remove discoverPersistedState

* Allow indexPattern switch without $route.reload()

* Remove timeRangeObj because it's not needed

* Create new getDefaultQuery in data plugin

* Simplify check for null in sync_state_with_url.ts

* Remove unused stateMonitorFactory

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants