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

[Reporting] Improve TS and update Reporting usage data model #64841

Merged
merged 10 commits into from
May 4, 2020

Conversation

tsullivan
Copy link
Member

@tsullivan tsullivan commented Apr 29, 2020

Summary

  1. There are some issues with the typings in the original code. This PR adds a ReportingUsageType interface to validate the mappings for Reporting data in the telemetry mapping cluster are correct.
  2. Maintenance on the data model:
  • Per @alexfrancoeur approval, this removes the lastDay fields from the data

Checklist

For maintainers

@tsullivan tsullivan added release_note:skip Skip the PR/issue when compiling release notes v7.8.0 v8.0.0 Team:Reporting Services labels Apr 29, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-reporting-services (Team:Reporting Services)

@tsullivan tsullivan changed the title [Reporting] Stricter types for Reporting Usage data [Reporting] Updates to Reporting Usage data Apr 30, 2020
@tsullivan tsullivan requested review from TinaHeiligers and a team April 30, 2020 21:57
@tsullivan tsullivan changed the title [Reporting] Updates to Reporting Usage data [Reporting] Improve typing and update Reporting Usage data model Apr 30, 2020
@tsullivan tsullivan changed the title [Reporting] Improve typing and update Reporting Usage data model [Reporting] Improve TS and update Reporting usage data model Apr 30, 2020
@tsullivan tsullivan requested a review from joelgriffith April 30, 2020 22:03
Copy link
Contributor

@joelgriffith joelgriffith left a comment

Choose a reason for hiding this comment

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

Nice typings + tests. Reduce ftw

@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@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 not failed recently on tracked branches

[00:00:00]       │
[00:14:02]         └-: saved objects management
[00:14:02]           └-> "before all" hook
[00:14:02]           └-: saved objects edition page
[00:14:02]             └-> "before all" hook
[00:14:02]             └-> allows to update the saved object when submitting
[00:14:02]               └-> "before each" hook: global before each
[00:14:02]               └-> "before each" hook
[00:14:02]                 │ info [saved_objects_management/edit_saved_object] Loading "mappings.json"
[00:14:02]                 │ info [saved_objects_management/edit_saved_object] Loading "data.json"
[00:14:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] applying create index request using v1 templates []
[00:14:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:14:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] 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:14:02]                 │ info [saved_objects_management/edit_saved_object] Created index ".kibana"
[00:14:02]                 │ debg [saved_objects_management/edit_saved_object] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:14:02]                 │ info [saved_objects_management/edit_saved_object] Indexed 4 docs into ".kibana"
[00:14:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana/TS02JuNbREu_rRyKkR2YNg] update_mapping [_doc]
[00:14:02]                 │ debg Migrating saved objects
[00:14:02]                 │ proc [kibana]   log   [20:56:15.232] [info][savedobjects-service] Creating index .kibana_2.
[00:14:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] applying create index request using v1 templates []
[00:14:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:14:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] updating number_of_replicas to [0] for indices [.kibana_2]
[00:14:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] 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:14:03]                 │ proc [kibana]   log   [20:56:15.283] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:14:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] applying create index request using v1 templates []
[00:14:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:14:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] updating number_of_replicas to [0] for indices [.kibana_1]
[00:14:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] 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:14:03]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] 4168 finished with response BulkByScrollResponse[took=23.1ms,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:14:03]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana/TS02JuNbREu_rRyKkR2YNg] deleting index
[00:14:03]                 │ proc [kibana]   log   [20:56:15.609] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:14:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2/qCT1SoXER-eumH8Ev6CEvQ] update_mapping [_doc]
[00:14:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2/qCT1SoXER-eumH8Ev6CEvQ] update_mapping [_doc]
[00:14:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2/qCT1SoXER-eumH8Ev6CEvQ] update_mapping [_doc]
[00:14:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2/qCT1SoXER-eumH8Ev6CEvQ] update_mapping [_doc]
[00:14:03]                 │ proc [kibana]   log   [20:56:15.729] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:14:03]                 │ proc [kibana]   log   [20:56:15.763] [info][savedobjects-service] Finished in 533ms.
[00:14:03]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:14:04]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2/qCT1SoXER-eumH8Ev6CEvQ] update_mapping [_doc]
[00:14:05]               │ debg navigating to settings url: http://localhost:6181/app/kibana#/management
[00:14:05]               │ debg navigate to: http://localhost:6181/app/kibana#/management
[00:14:05]               │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1588625777291#/management 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:14:05]               │
[00:14:05]               │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:05]               │ debg ... sleep(700) start
[00:14:05]               │ debg ... sleep(700) end
[00:14:05]               │ debg returned from get, calling refresh
[00:14:06]               │ debg currentUrl = http://localhost:6181/app/kibana#/management
[00:14:06]               │          appUrl = http://localhost:6181/app/kibana#/management
[00:14:06]               │ debg TestSubjects.find(kibanaChrome)
[00:14:06]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:06]               │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1588625777291#/management 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:14:06]               │
[00:14:06]               │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:07]               │ debg TestSubjects.find(kibanaChrome)
[00:14:07]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:14:07]               │ debg browser[INFO] http://localhost:6181/32832/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-04T20:56:19Z
[00:14:07]               │        Adding connection to http://localhost:6181/elasticsearch
[00:14:07]               │
[00:14:07]               │      "
[00:14:07]               │ debg ... sleep(501) start
[00:14:07]               │ debg ... sleep(501) end
[00:14:07]               │ debg in navigateTo url = http://localhost:6181/app/kibana#/management?_g=()
[00:14:07]               │ debg TestSubjects.exists(statusPageContainer)
[00:14:07]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:14:10]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:14:10]               │ debg TestSubjects.click(objects)
[00:14:10]               │ debg Find.clickByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:14:10]               │ debg Find.findByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:14:11]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:14:11]               │ debg --- retry.try error: Waiting
[00:14:11]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:14:14]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:14:14]               │ debg TestSubjects.find(savedObjectsTable)
[00:14:14]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:14:14]               │ debg navigateToActualUrl http://localhost:6181/app/kibana#/management/kibana/objects/savedDashboards/i-exist
[00:14:14]               │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1588625787029#/management/kibana/objects/savedDashboards/i-exist 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:14:14]               │
[00:14:14]               │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:14]               │ debg currentUrl = http://localhost:6181/app/kibana#/management/kibana/objects/savedDashboards/i-exist
[00:14:14]               │          appUrl = http://localhost:6181/app/kibana#/management/kibana/objects/savedDashboards/i-exist
[00:14:14]               │ debg TestSubjects.find(kibanaChrome)
[00:14:14]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:15]               │ debg TestSubjects.exists(savedObjectEditSave)
[00:14:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="savedObjectEditSave"]') with timeout=120000
[00:14:15]               │ debg browser[INFO] http://localhost:6181/32832/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-04T20:56:27Z
[00:14:15]               │        Adding connection to http://localhost:6181/elasticsearch
[00:14:15]               │
[00:14:15]               │      "
[00:14:16]               │ debg TestSubjects.getAttribute(savedObjects-editField-title, value)
[00:14:16]               │ debg TestSubjects.find(savedObjects-editField-title)
[00:14:16]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:14:16]               │ debg TestSubjects.setValue(savedObjects-editField-title, Edited Dashboard)
[00:14:16]               │ debg TestSubjects.click(savedObjects-editField-title)
[00:14:16]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:14:16]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:14:16]               │ debg TestSubjects.setValue(savedObjects-editField-description, Some description)
[00:14:16]               │ debg TestSubjects.click(savedObjects-editField-description)
[00:14:16]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:14:16]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:14:16]               │ debg TestSubjects.find(savedObjectEditSave)
[00:14:16]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectEditSave"]') with timeout=10000
[00:14:16]               │ debg TestSubjects.find(savedObjectsTable)
[00:14:16]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:14:17]               │ debg navigateToActualUrl http://localhost:6181/app/kibana#/management/kibana/objects/savedDashboards/i-exist
[00:14:18]               │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1588625789821#/management/kibana/objects/savedDashboards/i-exist 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:14:18]               │
[00:14:18]               │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:18]               │ debg currentUrl = http://localhost:6181/app/kibana#/management/kibana/objects/savedDashboards/i-exist
[00:14:18]               │          appUrl = http://localhost:6181/app/kibana#/management/kibana/objects/savedDashboards/i-exist
[00:14:18]               │ debg TestSubjects.find(kibanaChrome)
[00:14:18]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:18]               │ debg TestSubjects.getAttribute(savedObjects-editField-title, value)
[00:14:18]               │ debg TestSubjects.find(savedObjects-editField-title)
[00:14:18]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:14:18]               │ debg browser[INFO] http://localhost:6181/32832/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-04T20:56:30Z
[00:14:18]               │        Adding connection to http://localhost:6181/elasticsearch
[00:14:18]               │
[00:14:18]               │      "
[00:14:18]               │ debg TestSubjects.getAttribute(savedObjects-editField-description, value)
[00:14:18]               │ debg TestSubjects.find(savedObjects-editField-description)
[00:14:18]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:14:18]               └- ✓ pass  (13.7s) "saved objects management saved objects edition page allows to update the saved object when submitting"
[00:14:18]             └-> "after each" hook
[00:14:18]               │ info [saved_objects_management/edit_saved_object] Unloading indices from "mappings.json"
[00:14:18]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_1/1yTNxJoMRMOIbh3NdAINmA] deleting index
[00:14:18]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2/qCT1SoXER-eumH8Ev6CEvQ] deleting index
[00:14:18]               │ info [saved_objects_management/edit_saved_object] Deleted existing index [".kibana_2",".kibana_1"]
[00:14:18]               │ info [saved_objects_management/edit_saved_object] Unloading indices from "data.json"
[00:14:18]             └-> allows to delete a saved object
[00:14:18]               └-> "before each" hook: global before each
[00:14:18]               └-> "before each" hook
[00:14:18]                 │ info [saved_objects_management/edit_saved_object] Loading "mappings.json"
[00:14:18]                 │ info [saved_objects_management/edit_saved_object] Loading "data.json"
[00:14:18]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] applying create index request using v1 templates []
[00:14:18]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:14:18]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] 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:14:18]                 │ info [saved_objects_management/edit_saved_object] Created index ".kibana"
[00:14:18]                 │ debg [saved_objects_management/edit_saved_object] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:14:18]                 │ info [saved_objects_management/edit_saved_object] Indexed 4 docs into ".kibana"
[00:14:18]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana/kD7rWNesQLKc_EeS2ID66A] update_mapping [_doc]
[00:14:18]                 │ debg Migrating saved objects
[00:14:18]                 │ proc [kibana]   log   [20:56:31.130] [info][savedobjects-service] Creating index .kibana_2.
[00:14:18]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] applying create index request using v1 templates []
[00:14:18]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:14:18]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] updating number_of_replicas to [0] for indices [.kibana_2]
[00:14:18]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] 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:14:18]                 │ proc [kibana]   log   [20:56:31.177] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:14:18]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] applying create index request using v1 templates []
[00:14:18]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:14:18]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] updating number_of_replicas to [0] for indices [.kibana_1]
[00:14:18]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] 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:14:19]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] 4400 finished with response BulkByScrollResponse[took=23ms,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:14:19]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana/kD7rWNesQLKc_EeS2ID66A] deleting index
[00:14:19]                 │ proc [kibana]   log   [20:56:31.498] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:14:19]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2/pjZQ2C-xQNq-4WN5kcxvYw] update_mapping [_doc]
[00:14:19]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2/pjZQ2C-xQNq-4WN5kcxvYw] update_mapping [_doc]
[00:14:19]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2/pjZQ2C-xQNq-4WN5kcxvYw] update_mapping [_doc]
[00:14:19]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2/pjZQ2C-xQNq-4WN5kcxvYw] update_mapping [_doc]
[00:14:19]                 │ proc [kibana]   log   [20:56:31.617] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:14:19]                 │ proc [kibana]   log   [20:56:31.658] [info][savedobjects-service] Finished in 529ms.
[00:14:19]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:14:19]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1588623606326052113] [.kibana_2/pjZQ2C-xQNq-4WN5kcxvYw] update_mapping [_doc]
[00:14:20]               │ debg navigateToActualUrl http://localhost:6181/app/kibana#/management/kibana/objects/savedDashboards/i-exist
[00:14:21]               │ debg currentUrl = http://localhost:6181/app/kibana#/management/kibana/objects/savedDashboards/i-exist
[00:14:21]               │          appUrl = http://localhost:6181/app/kibana#/management/kibana/objects/savedDashboards/i-exist
[00:14:21]               │ debg TestSubjects.find(kibanaChrome)
[00:14:21]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:22]               │ debg TestSubjects.find(savedObjectEditDelete)
[00:14:22]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectEditDelete"]') with timeout=10000
[00:14:22]               │ debg browser[INFO] http://localhost:6181/app/kibana?_t=1588625793180#/management/kibana/objects/savedDashboards/i-exist 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:14:22]               │
[00:14:22]               │ debg browser[INFO] http://localhost:6181/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:22]               │ debg browser[INFO] http://localhost:6181/32832/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-04T20:56:34Z
[00:14:22]               │        Adding connection to http://localhost:6181/elasticsearch
[00:14:22]               │
[00:14:22]               │      "
[00:14:22]               │ debg Clicking modal confirm
[00:14:22]               │ debg TestSubjects.exists(confirmModalTitleText)
[00:14:22]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="confirmModalTitleText"]') with timeout=2500
[00:14:22]               │ debg TestSubjects.click(confirmModalConfirmButton)
[00:14:22]               │ debg Find.clickByCssSelector('[data-test-subj="confirmModalConfirmButton"]') with timeout=10000
[00:14:22]               │ debg Find.findByCssSelector('[data-test-subj="confirmModalConfirmButton"]') with timeout=10000
[00:14:22]               │ debg TestSubjects.exists(confirmModalTitleText)
[00:14:22]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="confirmModalTitleText"]') with timeout=2500
[00:14:25]               │ debg browser[INFO] http://localhost:6181/32832/bundles/commons.bundle.js 0:1171762 "Detected an unhandled Promise rejection.
[00:14:25]               │      TypeError: Cannot read property 'attributes' of undefined"
[00:14:25]               │ERROR browser[SEVERE] http://localhost:6181/32832/bundles/plugin/savedObjectsManagement/5.plugin.js 5:12367 Uncaught TypeError: Cannot read property 'attributes' of undefined
[00:14:25]               │ debg --- retry.tryForTime error: [data-test-subj="confirmModalTitleText"] is not displayed
[00:14:25]               │ debg TestSubjects.find(savedObjectsTable)
[00:14:25]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:14:35]               │ 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:14:36]               │ info Current URL is: http://localhost:6181/app/kibana#/management/kibana/objects/savedDashboards/i-exist
[00:14:36]               │ 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:14:36]               └- ✖ fail: "saved objects management saved objects edition page allows to delete a saved object"
[00:14:36]               │

Stack Trace

{ TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="savedObjectsTable"])
Wait timed out after 10013ms
    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: '' }

History

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

@tsullivan tsullivan merged commit 044f89e into elastic:master May 4, 2020
@tsullivan tsullivan deleted the reporting/usage-stricter-ts branch May 4, 2020 22:20
tsullivan added a commit to tsullivan/kibana that referenced this pull request May 4, 2020
…#64841)

* Stricter types for Reporting Usage data

* Allow more type inference

* remove lastDay filter

* update ts and add test

* fix tests

* fix test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
tsullivan added a commit that referenced this pull request May 5, 2020
…#65194)

* Stricter types for Reporting Usage data

* Allow more type inference

* remove lastDay filter

* update ts and add test

* fix tests

* fix test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@sophiec20 sophiec20 added the (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead release_note:skip Skip the PR/issue when compiling release notes v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants