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

[APM] Show license callout in ML settings #70959

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Jul 7, 2020

Closes #70694

Invalid license
image

Valid license
image

@sorenlouv sorenlouv requested a review from a team as a code owner July 7, 2020 13:40
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Jul 7, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@sorenlouv sorenlouv added release_note:skip Skip the PR/issue when compiling release notes v7.9.0 labels Jul 7, 2020
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Chrome UI Functional Tests.test/functional/apps/saved_objects_management/edit_saved_object·ts.saved objects management saved objects edition page allows to delete a saved object

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:11:47]         └-: saved objects management
[00:11:47]           └-> "before all" hook
[00:11:47]           └-: saved objects edition page
[00:11:47]             └-> "before all" hook
[00:11:47]             └-> allows to update the saved object when submitting
[00:11:47]               └-> "before each" hook: global before each
[00:11:47]               └-> "before each" hook
[00:11:47]                 │ info [saved_objects_management/edit_saved_object] Loading "mappings.json"
[00:11:47]                 │ info [saved_objects_management/edit_saved_object] Loading "data.json"
[00:11:47]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana] creating index, cause [api], templates [], shards [1]/[0]
[00:11:47]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]])." previous.health="YELLOW" reason="shards started [[.kibana][0]]"
[00:11:47]                 │ info [saved_objects_management/edit_saved_object] Created index ".kibana"
[00:11:47]                 │ debg [saved_objects_management/edit_saved_object] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:11:47]                 │ info [saved_objects_management/edit_saved_object] Indexed 4 docs into ".kibana"
[00:11:47]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana/Ee2oZGXlQbuOwEVzsKZcTA] update_mapping [_doc]
[00:11:47]                 │ debg Migrating saved objects
[00:11:47]                 │ proc [kibana]   log   [14:10:44.310] [info][savedobjects-service] Creating index .kibana_2.
[00:11:47]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:11:47]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] updating number_of_replicas to [0] for indices [.kibana_2]
[00:11:47]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:11:47]                 │ proc [kibana]   log   [14:10:44.360] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:11:47]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:11:47]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] updating number_of_replicas to [0] for indices [.kibana_1]
[00:11:47]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:11:47]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] 3632 finished with response BulkByScrollResponse[took=22ms,timed_out=false,sliceId=null,updated=0,created=4,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:11:48]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana/Ee2oZGXlQbuOwEVzsKZcTA] deleting index
[00:11:48]                 │ proc [kibana]   log   [14:10:44.689] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:11:48]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_2/kLBWJS3bQMKBLKndGYR0-Q] update_mapping [_doc]
[00:11:48]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_2/kLBWJS3bQMKBLKndGYR0-Q] update_mapping [_doc]
[00:11:48]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_2/kLBWJS3bQMKBLKndGYR0-Q] update_mapping [_doc]
[00:11:48]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_2/kLBWJS3bQMKBLKndGYR0-Q] update_mapping [_doc]
[00:11:48]                 │ proc [kibana]   log   [14:10:44.804] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:11:48]                 │ proc [kibana]   log   [14:10:44.836] [info][savedobjects-service] Finished in 527ms.
[00:11:48]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:11:49]               │ debg navigating to settings url: http://localhost:6181/app/management
[00:11:49]               │ debg navigate to: http://localhost:6181/app/management
[00:11:49]               │ debg browser[INFO] http://localhost:6181/app/management?_t=1594131046361 341 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:11:49]               │
[00:11:49]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:49]               │ debg ... sleep(700) start
[00:11:50]               │ debg ... sleep(700) end
[00:11:50]               │ debg returned from get, calling refresh
[00:11:51]               │ debg browser[INFO] http://localhost:6181/34388/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T14:10:47Z
[00:11:51]               │        Adding connection to http://localhost:6181/elasticsearch
[00:11:51]               │
[00:11:51]               │      "
[00:11:51]               │ERROR browser[SEVERE] http://localhost:6181/34388/bundles/core/core.entry.js 83:261771 TypeError: Failed to fetch
[00:11:51]               │          at Fetch._callee3$ (http://localhost:6181/34388/bundles/core/core.entry.js:34:105174)
[00:11:51]               │          at l (http://localhost:6181/34388/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:144815)
[00:11:51]               │          at Generator._invoke (http://localhost:6181/34388/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:144568)
[00:11:51]               │          at Generator.forEach.e.<computed> [as throw] (http://localhost:6181/34388/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:145172)
[00:11:51]               │          at fetch_asyncGeneratorStep (http://localhost:6181/34388/bundles/core/core.entry.js:34:99267)
[00:11:51]               │          at _throw (http://localhost:6181/34388/bundles/core/core.entry.js:34:99675)
[00:11:51]               │ debg browser[INFO] http://localhost:6181/app/management?_t=1594131046361 341 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:11:51]               │
[00:11:51]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:51]               │ debg browser[INFO] http://localhost:6181/34388/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T14:10:48Z
[00:11:51]               │        Adding connection to http://localhost:6181/elasticsearch
[00:11:51]               │
[00:11:51]               │      "
[00:11:51]               │ debg currentUrl = http://localhost:6181/app/management
[00:11:51]               │          appUrl = http://localhost:6181/app/management
[00:11:51]               │ debg TestSubjects.find(kibanaChrome)
[00:11:51]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:52]               │ debg ... sleep(501) start
[00:11:52]               │ debg ... sleep(501) end
[00:11:52]               │ debg in navigateTo url = http://localhost:6181/app/management
[00:11:52]               │ debg TestSubjects.exists(statusPageContainer)
[00:11:52]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:11:55]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:11:55]               │ debg TestSubjects.click(objects)
[00:11:55]               │ debg Find.clickByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:11:55]               │ debg Find.findByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:11:55]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:55]               │ debg --- retry.try error: Waiting
[00:11:56]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:58]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:11:59]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:12:01]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:12:02]               │ debg TestSubjects.find(savedObjectsTable)
[00:12:02]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:12:02]               │ debg navigateToUrl http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:02]               │ debg currentUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:02]               │          appUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:02]               │ debg TestSubjects.find(kibanaChrome)
[00:12:02]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:12:02]               │ debg browser[INFO] http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist?_t=1594131058830 341 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:12:02]               │
[00:12:02]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:03]               │ debg TestSubjects.exists(savedObjectEditSave)
[00:12:03]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="savedObjectEditSave"]') with timeout=120000
[00:12:03]               │ debg browser[INFO] http://localhost:6181/34388/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T14:10:59Z
[00:12:03]               │        Adding connection to http://localhost:6181/elasticsearch
[00:12:03]               │
[00:12:03]               │      "
[00:12:03]               │ debg TestSubjects.getAttribute(savedObjects-editField-title, value)
[00:12:03]               │ debg TestSubjects.find(savedObjects-editField-title)
[00:12:03]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:12:03]               │ debg TestSubjects.setValue(savedObjects-editField-title, Edited Dashboard)
[00:12:03]               │ debg TestSubjects.click(savedObjects-editField-title)
[00:12:03]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:12:03]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:12:03]               │ debg TestSubjects.setValue(savedObjects-editField-description, Some description)
[00:12:03]               │ debg TestSubjects.click(savedObjects-editField-description)
[00:12:03]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:12:03]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:12:03]               │ debg TestSubjects.find(savedObjectEditSave)
[00:12:03]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectEditSave"]') with timeout=10000
[00:12:04]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:12:05]               │ debg --- retry.try error: Waiting
[00:12:05]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:12:08]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:12:08]               │ debg TestSubjects.find(savedObjectsTable)
[00:12:08]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:12:08]               │ debg navigateToUrl http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:08]               │ debg currentUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:08]               │          appUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:08]               │ debg TestSubjects.find(kibanaChrome)
[00:12:08]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:12:09]               │ debg TestSubjects.getAttribute(savedObjects-editField-title, value)
[00:12:09]               │ debg TestSubjects.find(savedObjects-editField-title)
[00:12:09]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:12:09]               │ debg browser[INFO] http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist?_t=1594131065078 341 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:12:09]               │
[00:12:09]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:09]               │ debg browser[INFO] http://localhost:6181/34388/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T14:11:06Z
[00:12:09]               │        Adding connection to http://localhost:6181/elasticsearch
[00:12:09]               │
[00:12:09]               │      "
[00:12:10]               │ debg TestSubjects.getAttribute(savedObjects-editField-description, value)
[00:12:10]               │ debg TestSubjects.find(savedObjects-editField-description)
[00:12:10]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:12:10]               └- ✓ pass  (20.3s) "saved objects management saved objects edition page allows to update the saved object when submitting"
[00:12:10]             └-> "after each" hook
[00:12:10]               │ info [saved_objects_management/edit_saved_object] Unloading indices from "mappings.json"
[00:12:10]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_1/ONemvA7CR6m9ueyWBfTPaw] deleting index
[00:12:10]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_2/kLBWJS3bQMKBLKndGYR0-Q] deleting index
[00:12:10]               │ info [saved_objects_management/edit_saved_object] Deleted existing index [".kibana_2",".kibana_1"]
[00:12:10]               │ info [saved_objects_management/edit_saved_object] Unloading indices from "data.json"
[00:12:10]             └-> allows to delete a saved object
[00:12:10]               └-> "before each" hook: global before each
[00:12:10]               └-> "before each" hook
[00:12:10]                 │ info [saved_objects_management/edit_saved_object] Loading "mappings.json"
[00:12:10]                 │ info [saved_objects_management/edit_saved_object] Loading "data.json"
[00:12:10]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana] creating index, cause [api], templates [], shards [1]/[0]
[00:12:10]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]])." previous.health="YELLOW" reason="shards started [[.kibana][0]]"
[00:12:10]                 │ info [saved_objects_management/edit_saved_object] Created index ".kibana"
[00:12:10]                 │ debg [saved_objects_management/edit_saved_object] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:12:10]                 │ info [saved_objects_management/edit_saved_object] Indexed 4 docs into ".kibana"
[00:12:10]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana/hfhShlftQVGrU_iyDbDH1Q] update_mapping [_doc]
[00:12:10]                 │ debg Migrating saved objects
[00:12:10]                 │ proc [kibana]   log   [14:11:06.830] [info][savedobjects-service] Creating index .kibana_2.
[00:12:10]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:12:10]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] updating number_of_replicas to [0] for indices [.kibana_2]
[00:12:10]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:12:10]                 │ proc [kibana]   log   [14:11:06.881] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:12:10]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:12:10]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] updating number_of_replicas to [0] for indices [.kibana_1]
[00:12:10]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:12:10]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] 3875 finished with response BulkByScrollResponse[took=21.4ms,timed_out=false,sliceId=null,updated=0,created=4,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:12:10]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana/hfhShlftQVGrU_iyDbDH1Q] deleting index
[00:12:10]                 │ proc [kibana]   log   [14:11:07.210] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:12:10]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_2/IJ9fpHVORcWQYtIwqNP-oA] update_mapping [_doc]
[00:12:10]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_2/IJ9fpHVORcWQYtIwqNP-oA] update_mapping [_doc]
[00:12:10]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_2/IJ9fpHVORcWQYtIwqNP-oA] update_mapping [_doc]
[00:12:10]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594129287105783833] [.kibana_2/IJ9fpHVORcWQYtIwqNP-oA] update_mapping [_doc]
[00:12:10]                 │ proc [kibana]   log   [14:11:07.336] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:12:10]                 │ proc [kibana]   log   [14:11:07.375] [info][savedobjects-service] Finished in 546ms.
[00:12:10]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:12:12]               │ debg navigateToUrl http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:12]               │ debg browser[INFO] http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist?_t=1594131068883 341 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:12:12]               │
[00:12:12]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:12]               │ debg currentUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:12]               │          appUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:12]               │ debg TestSubjects.find(kibanaChrome)
[00:12:12]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:12:13]               │ debg TestSubjects.find(savedObjectEditDelete)
[00:12:13]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectEditDelete"]') with timeout=10000
[00:12:13]               │ debg browser[INFO] http://localhost:6181/34388/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T14:11:09Z
[00:12:13]               │        Adding connection to http://localhost:6181/elasticsearch
[00:12:13]               │
[00:12:13]               │      "
[00:12:13]               │ debg Clicking modal confirm
[00:12:13]               │ debg TestSubjects.exists(confirmModalTitleText)
[00:12:13]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="confirmModalTitleText"]') with timeout=2500
[00:12:14]               │ debg TestSubjects.click(confirmModalConfirmButton)
[00:12:14]               │ debg Find.clickByCssSelector('[data-test-subj="confirmModalConfirmButton"]') with timeout=10000
[00:12:14]               │ debg Find.findByCssSelector('[data-test-subj="confirmModalConfirmButton"]') with timeout=10000
[00:12:14]               │ debg TestSubjects.exists(confirmModalTitleText)
[00:12:14]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="confirmModalTitleText"]') with timeout=2500
[00:12:16]               │ debg browser[INFO] http://localhost:6181/34388/bundles/core/core.entry.js 83:262850 "Detected an unhandled Promise rejection.
[00:12:16]               │      TypeError: Cannot read property 'attributes' of undefined"
[00:12:16]               │ERROR browser[SEVERE] http://localhost:6181/34388/bundles/plugin/savedObjectsManagement/1.plugin.js 5:34045 Uncaught TypeError: Cannot read property 'attributes' of undefined
[00:12:16]               │ debg --- retry.tryForTime error: [data-test-subj="confirmModalTitleText"] is not displayed
[00:12:17]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:12:19]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:12:20]               │ debg TestSubjects.find(savedObjectsTable)
[00:12:20]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:12:30]               │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/saved objects management saved objects edition page allows to delete a saved object.png"
[00:12:30]               │ info Current URL is: http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:30]               │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/saved objects management saved objects edition page allows to delete a saved object.html
[00:12:30]               └- ✖ fail: "saved objects management saved objects edition page allows to delete a saved object"
[00:12:30]               │

Stack Trace

{ TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="savedObjectsTable"])
Wait timed out after 10045ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7) name: 'TimeoutError', remoteStacktrace: '' }

Build metrics

✅ unchanged

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

@sorenlouv sorenlouv merged commit 030daf8 into elastic:master Jul 8, 2020
@sorenlouv sorenlouv deleted the show-license-callout-for-ml branch July 8, 2020 00:28
sorenlouv added a commit to sorenlouv/kibana that referenced this pull request Jul 8, 2020

export const AnomalyDetection = () => {
const license = useLicense();
const hasValidLicense = license?.isActive && license?.hasAtLeast('platinum');
Copy link
Contributor

Choose a reason for hiding this comment

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

We have this method in service maps, maybe we should put it in some utils:

export function isValidPlatinumLicense(license: ILicense) {
return license.isActive && license.hasAtLeast('platinum');
}

Copy link
Member Author

Choose a reason for hiding this comment

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

imo that's a slight overabstraction of something that's pretty trivial in the first place.
If this logic grows I think it could make sense.

gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 8, 2020
* master: (36 commits)
  fixed api url in example plugin (elastic#70934)
  [data.search.aggs]: Remove remaining client dependencies (elastic#70251)
  [Security Solution][Endpoint] Fix base64 download bug and adopt new user artifact/manifest format (elastic#70998)
  [Security Solution][Exceptions] - Exception Modal Part I (elastic#70639)
  [SIEM][Detection Engine][Lists] Adds additional data types to value based lists
  [SIEM][Detection Engine][Lists] Removes feature flag for lists
  [APM] Show license callout in ML settings (elastic#70959)
  Migrate service settings test to jest (elastic#70992)
  [APM] Add cloud attributes to data telemetry (elastic#71008)
  Fix breadcrumb on panels for visibility / round corners (elastic#71010)
  Improve search typescript (elastic#69333)
  [savedObjects field count] run in baseline job (elastic#70999)
  [Security Solution] [Timeline] Timeline manager tweaks (elastic#69988)
  [Endpoint] Support redirect from Policy Details to Ingest when user initiates Edit Policy from Datasource Edit page (elastic#70874)
  [APM] Add API tests (elastic#70740)
  [Security Solution][Exceptions] - Tie server and client code together (elastic#70918)
  [Audit Logging] Add AuditTrail service (elastic#69278)
  [Usage Collection] Ensure no type duplicates (elastic#70946)
  [Security Solution] [Timeline] Bugfix for timeline row actions disappear sometimes (elastic#70958)
  [CI] Add pipeline task queue framework and merge workers into one (elastic#64011)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Anomaly detection: Show license prompt on Settings page
5 participants