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

[7.x] [Security Solution][Exceptions] - Fixes exceptions builder UI where invalid values can cause overwrites of other values (#90634) #92749

Merged
merged 2 commits into from
Feb 25, 2021

Conversation

yctercero
Copy link
Contributor

Backports the following commits to 7.x:

…nvalid values can cause overwrites of other values (elastic#90634)

### Summary

This PR is a follow-up to elastic#89066 - which fixed the same issue occurring with indicator match lists UI. The lack of stable ids for exception item entries resulted in some funky business by where invalid values could overwrite other values when deleting entries in the builder.
@yctercero yctercero enabled auto-merge (squash) February 25, 2021 02:36
@yctercero
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack Accessibility Tests.x-pack/test/accessibility/apps/dashboard_edit_panel·ts.Dashboard Edit Panel can clone panel

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:04:15]         └-: Dashboard Edit Panel
[00:04:15]           └-> "before all" hook for "can open menu"
[00:04:15]           └-> "before all" hook for "can open menu"
[00:04:15]             │ info [dashboard/drilldowns] Loading "mappings.json"
[00:04:15]             │ info [dashboard/drilldowns] Loading "data.json"
[00:04:15]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_pre6.5.0_001/qqJhRGHsSqC21LoI5hQedw] deleting index
[00:04:15]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_001/3hjbbEjtTcagysD30zt1zw] deleting index
[00:04:15]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_task_manager_7.13.0_001/yFF4bsPOSZKdLCfNQtFutA] deleting index
[00:04:15]             │ info [dashboard/drilldowns] Deleted existing index ".kibana_task_manager_7.13.0_001"
[00:04:15]             │ info [dashboard/drilldowns] Deleted existing index ".kibana_pre6.5.0_001"
[00:04:15]             │ info [dashboard/drilldowns] Deleted existing index ".kibana_7.13.0_001"
[00:04:15]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:04:15]             │ info [dashboard/drilldowns] Created index ".kibana"
[00:04:15]             │ debg [dashboard/drilldowns] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:04:15]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana/Gxv3LdeRSgqTTUhkMB-CMg] update_mapping [_doc]
[00:04:16]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana/Gxv3LdeRSgqTTUhkMB-CMg] update_mapping [_doc]
[00:04:16]             │ info [dashboard/drilldowns] Indexed 12 docs into ".kibana"
[00:04:16]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana/Gxv3LdeRSgqTTUhkMB-CMg] update_mapping [_doc]
[00:04:16]             │ debg Migrating saved objects
[00:04:16]             │ proc [kibana]   log   [05:48:09.004] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET
[00:04:16]             │ proc [kibana]   log   [05:48:09.015] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK
[00:04:16]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_task_manager_7.13.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:04:16]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] updating number_of_replicas to [0] for indices [.kibana_task_manager_7.13.0_001]
[00:04:16]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] adding block write to indices [[.kibana/Gxv3LdeRSgqTTUhkMB-CMg]]
[00:04:16]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] completed adding block write to indices [.kibana]
[00:04:16]             │ proc [kibana]   log   [05:48:09.162] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY
[00:04:16]             │ proc [kibana]   log   [05:48:09.198] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET
[00:04:16]             │ proc [kibana]   log   [05:48:09.230] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE
[00:04:16]             │ proc [kibana]   log   [05:48:09.231] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 233ms
[00:04:16]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:04:16]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:04:16]             │ proc [kibana]   log   [05:48:09.337] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX
[00:04:16]             │ proc [kibana]   log   [05:48:09.358] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK
[00:04:16]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] 6871 finished with response BulkByScrollResponse[took=77.3ms,timed_out=false,sliceId=null,updated=0,created=12,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:16]             │ proc [kibana]   log   [05:48:09.477] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE
[00:04:16]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana/Gxv3LdeRSgqTTUhkMB-CMg] deleting index
[00:04:16]             │ proc [kibana]   log   [05:48:09.554] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK
[00:04:16]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] adding block write to indices [[.kibana_pre6.5.0_001/UaB1sg1uR_WGD6msA5j0VA]]
[00:04:16]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:04:16]             │ proc [kibana]   log   [05:48:09.627] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:04:16]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:04:16]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] updating number_of_replicas to [0] for indices [.kibana_7.13.0_reindex_temp]
[00:04:16]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.13.0_reindex_temp][0]]]).
[00:04:16]             │ proc [kibana]   log   [05:48:09.736] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:04:16]             │ proc [kibana]   log   [05:48:09.750] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:04:16]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] 6910 finished with response BulkByScrollResponse[took=31.6ms,timed_out=false,sliceId=null,updated=0,created=12,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:17]             │ proc [kibana]   log   [05:48:09.866] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:04:17]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] adding block write to indices [[.kibana_7.13.0_reindex_temp/4P8fXQbRSuGt3ZC_tFfA2w]]
[00:04:17]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] completed adding block write to indices [.kibana_7.13.0_reindex_temp]
[00:04:17]             │ proc [kibana]   log   [05:48:09.949] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:04:17]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] applying create index request using existing index [.kibana_7.13.0_reindex_temp] metadata
[00:04:17]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:04:17]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] updating number_of_replicas to [0] for indices [.kibana_7.13.0_001]
[00:04:17]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_001/aCuDDT-nTKuOi5VAbvAAQg] create_mapping [_doc]
[00:04:17]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.13.0_001][0]]]).
[00:04:17]             │ proc [kibana]   log   [05:48:10.140] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:04:17]             │ proc [kibana]   log   [05:48:10.173] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> OUTDATED_DOCUMENTS_TRANSFORM
[00:04:17]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_001/aCuDDT-nTKuOi5VAbvAAQg] update_mapping [_doc]
[00:04:17]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_001/aCuDDT-nTKuOi5VAbvAAQg] update_mapping [_doc]
[00:04:17]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_001/aCuDDT-nTKuOi5VAbvAAQg] update_mapping [_doc]
[00:04:17]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_001/aCuDDT-nTKuOi5VAbvAAQg] update_mapping [_doc]
[00:04:18]             │ proc [kibana]   log   [05:48:11.022] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_TRANSFORM -> OUTDATED_DOCUMENTS_SEARCH
[00:04:18]             │ proc [kibana]   log   [05:48:11.040] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:04:18]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_001/aCuDDT-nTKuOi5VAbvAAQg] update_mapping [_doc]
[00:04:18]             │ proc [kibana]   log   [05:48:11.125] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:04:18]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] 6981 finished with response BulkByScrollResponse[took=41.1ms,timed_out=false,sliceId=null,updated=12,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:18]             │ proc [kibana]   log   [05:48:11.234] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:04:18]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_reindex_temp/4P8fXQbRSuGt3ZC_tFfA2w] deleting index
[00:04:18]             │ proc [kibana]   log   [05:48:11.294] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:04:18]             │ proc [kibana]   log   [05:48:11.295] [info][savedobjects-service] [.kibana] Migration completed after 2300ms
[00:04:18]             │ debg [dashboard/drilldowns] Migrated Kibana index after loading Kibana data
[00:04:18]             │ debg [dashboard/drilldowns] Ensured that default space exists in .kibana
[00:04:18]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:04:18]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_001/aCuDDT-nTKuOi5VAbvAAQg] update_mapping [_doc]
[00:04:20]             │ info [logstash_functional] Loading "mappings.json"
[00:04:20]             │ info [logstash_functional] Loading "data.json.gz"
[00:04:20]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:04:20]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]]).
[00:04:20]             │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:04:20]             │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:04:20]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:04:20]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]]).
[00:04:20]             │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:04:20]             │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:04:20]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:04:20]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]]).
[00:04:20]             │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:04:20]             │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:04:30]             │ info progress: 7526
[00:04:36]             │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:04:36]             │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:04:36]             │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:04:36]             │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:04:37]             │ debg navigating to dashboard url: http://localhost:6151/app/dashboards#/list
[00:04:37]             │ debg navigate to: http://localhost:6151/app/dashboards#/list
[00:04:37]             │ debg browser[INFO] http://localhost:6151/app/dashboards?_t=1614232110080#/list 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:04:37]             │
[00:04:37]             │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:37]             │ debg ... sleep(700) start
[00:04:38]             │ debg ... sleep(700) end
[00:04:38]             │ debg returned from get, calling refresh
[00:04:38]             │ debg browser[INFO] http://localhost:6151/app/dashboards?_t=1614232110080#/list 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:04:38]             │
[00:04:38]             │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:39]             │ debg currentUrl = http://localhost:6151/app/dashboards#/list
[00:04:39]             │          appUrl = http://localhost:6151/app/dashboards#/list
[00:04:39]             │ debg TestSubjects.find(kibanaChrome)
[00:04:39]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:39]             │ debg ... sleep(501) start
[00:04:40]             │ debg ... sleep(501) end
[00:04:40]             │ debg in navigateTo url = http://localhost:6151/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:04:40]             │ debg TestSubjects.exists(statusPageContainer)
[00:04:40]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:42]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:43]             │ debg Load Saved Dashboard Dashboard with Pie Chart
[00:04:43]             │ debg gotoDashboardLandingPage
[00:04:43]             │ debg onDashboardLandingPage
[00:04:43]             │ debg TestSubjects.exists(dashboardLandingPage)
[00:04:43]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=5000
[00:04:43]             │ debg searchForItemWithName: Dashboard with Pie Chart
[00:04:43]             │ debg TestSubjects.find(tableListSearchBox)
[00:04:43]             │ debg Find.findByCssSelector('[data-test-subj="tableListSearchBox"]') with timeout=10000
[00:04:44]             │ debg isGlobalLoadingIndicatorVisible
[00:04:44]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:04:44]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:04:45]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:04:46]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:04:46]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:04:46]             │ debg TestSubjects.click(dashboardListingTitleLink-Dashboard-with-Pie-Chart)
[00:04:46]             │ debg Find.clickByCssSelector('[data-test-subj="dashboardListingTitleLink-Dashboard-with-Pie-Chart"]') with timeout=10000
[00:04:46]             │ debg Find.findByCssSelector('[data-test-subj="dashboardListingTitleLink-Dashboard-with-Pie-Chart"]') with timeout=10000
[00:04:46]             │ debg isGlobalLoadingIndicatorVisible
[00:04:46]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:04:46]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:04:46]             │ debg browser[INFO] http://localhost:6151/app/dashboards#/view/41e77910-69d9-11ea-a14d-e341629a29e6?_g=(filters:!()) 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:04:46]             │
[00:04:46]             │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:48]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:04:48]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:04:48]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:04:48]             │ debg TestSubjects.missingOrFail(dashboardLandingPage)
[00:04:48]             │ debg Find.waitForDeletedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=10000
[00:04:49]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.async-search] creating index, cause [api], templates [], shards [1]/[0]
[00:04:49]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.async-search][0]]]).
[00:04:49]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614229113295947188] [.kibana_7.13.0_001/aCuDDT-nTKuOi5VAbvAAQg] update_mapping [_doc]
[00:04:49]             │ debg TestSubjects.click(dashboardEditMode)
[00:04:49]             │ debg Find.clickByCssSelector('[data-test-subj="dashboardEditMode"]') with timeout=10000
[00:04:49]             │ debg Find.findByCssSelector('[data-test-subj="dashboardEditMode"]') with timeout=10000
[00:04:49]           └-> can open menu
[00:04:49]             └-> "before each" hook: global before each for "can open menu"
[00:04:49]             │ debg openContextMenu(undefined
[00:04:49]             │ debg TestSubjects.exists(embeddablePanelContextMenuOpen)
[00:04:49]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="embeddablePanelContextMenuOpen"]') with timeout=2500
[00:04:52]             │ debg --- retry.tryForTime error: [data-test-subj="embeddablePanelContextMenuOpen"] is not displayed
[00:04:52]             │ debg toggleContextMenu
[00:04:52]             │ debg TestSubjects.moveMouseTo(dashboardPanelTitle)
[00:04:52]             │ debg TestSubjects.find(dashboardPanelTitle)
[00:04:52]             │ debg Find.findByCssSelector('[data-test-subj="dashboardPanelTitle"]') with timeout=10000
[00:04:53]             │ debg TestSubjects.find(embeddablePanelToggleMenuIcon)
[00:04:53]             │ debg Find.findByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]') with timeout=10000
[00:04:53]             │ debg TestSubjects.exists(embeddablePanelContextMenuOpen)
[00:04:53]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="embeddablePanelContextMenuOpen"]') with timeout=120000
[00:04:54]             └- ✓ pass  (4.5s) "Dashboard Edit Panel can open menu"
[00:04:54]           └-> can clone panel
[00:04:54]             └-> "before each" hook: global before each for "can clone panel"
[00:04:54]             │ debg clonePanel(Visualization PieChart)
[00:04:54]             │ debg TestSubjects.find(embeddablePanelHeading-VisualizationPieChart)
[00:04:54]             │ debg Find.findByCssSelector('[data-test-subj="embeddablePanelHeading-VisualizationPieChart"]') with timeout=10000
[00:04:54]             │ debg openContextMenu([object Object]
[00:04:54]             │ debg TestSubjects.exists(embeddablePanelContextMenuOpen)
[00:04:54]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="embeddablePanelContextMenuOpen"]') with timeout=2500
[00:04:54]             │ debg TestSubjects.click(embeddablePanelAction-clonePanel)
[00:04:54]             │ debg Find.clickByCssSelector('[data-test-subj="embeddablePanelAction-clonePanel"]') with timeout=10000
[00:04:54]             │ debg Find.findByCssSelector('[data-test-subj="embeddablePanelAction-clonePanel"]') with timeout=10000
[00:04:54]             │ debg TestSubjects.find(globalToastList)
[00:04:54]             │ debg Find.findByCssSelector('[data-test-subj="globalToastList"]') with timeout=10000
[00:04:55]             │ info Taking screenshot "/dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/screenshots/failure/Dashboard Edit Panel can clone panel.png"
[00:04:55]             │ info Current URL is: http://localhost:6151/app/dashboards#/view/41e77910-69d9-11ea-a14d-e341629a29e6?_g=(filters:!())&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:%27%27),tags:!(),timeRestore:!t,title:%27Dashboard%20with%20Pie%20Chart%27,viewMode:edit)
[00:04:55]             │ info Saving page source to: /dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/failure_debug/html/Dashboard Edit Panel can clone panel.html
[00:04:55]             └- ✖ fail: Dashboard Edit Panel can clone panel
[00:04:55]             │      StaleElementReferenceError: stale element reference: element is not attached to the page document
[00:04:55]             │   (Session info: headless chrome=88.0.4324.182)
[00:04:55]             │       at Object.throwDecodedError (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/error.js:550:15)
[00:04:55]             │       at parseHttpResponse (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:565:13)
[00:04:55]             │       at Executor.execute (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:491:26)
[00:04:55]             │       at runMicrotasks (<anonymous>)
[00:04:55]             │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:04:55]             │       at Task.exec (/dev/shm/workspace/parallel/5/kibana/test/functional/services/remote/prevent_parallel_calls.ts:29:22)
[00:04:55]             │ 
[00:04:55]             │ 

Stack Trace

StaleElementReferenceError: stale element reference: element is not attached to the page document
  (Session info: headless chrome=88.0.4324.182)
    at Object.throwDecodedError (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/error.js:550:15)
    at parseHttpResponse (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:565:13)
    at Executor.execute (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:491:26)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Task.exec (/dev/shm/workspace/parallel/5/kibana/test/functional/services/remote/prevent_parallel_calls.ts:29:22) {
  remoteStacktrace: '#0 0x56087f245199 <unknown>\n'
}

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
lists 130 131 +1

Async chunks

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

id before after diff
securitySolution 7.7MB 7.7MB +1.2KB

Page load bundle

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

id before after diff
lists 143.5KB 145.2KB +1.7KB
securitySolution 234.9KB 235.8KB +948.0B
total +2.6KB

History

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

@yctercero yctercero merged commit 6fd1f95 into elastic:7.x Feb 25, 2021
@yctercero yctercero deleted the backport/7.x/pr-90634 branch October 13, 2021 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants