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] Show unmapped fields by default and persist setting #91783

Closed

Conversation

wylieconlon
Copy link
Contributor

@wylieconlon wylieconlon commented Feb 18, 2021

Fixes https://github.com/elastic/kibana/pull/91783/files

In the long term, we want to hide unmapped fields by default. But in the short term, this becomes a persistent setting. This lets us make the long-term change as needed.

This PR implements two main changes:

  1. The default behavior of Discover is to show unmapped fields regardless of whether data is from _source or fields
  2. When using fields, you can now toggle unmapped fields off and persist this setting

As a side effect of this, I removed migration that @majagrubic created and replaced it with a new persistable setting.

Steps to reproduce:

  1. Create an index with dynamic: false
  2. Add documents to the index
  3. View the documents in Discover

Important parts to test:

  • When using _source vs fields API from advanced settings
  • Settings are persisted on page refresh and when saving searches
  • Legacy table vs data grid
  • Loading older saved searches

Fixes #91743

Checklist

@wylieconlon wylieconlon added Feature:Discover Discover Application Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.12.0 v7.13.0 labels Feb 18, 2021
@wylieconlon wylieconlon requested review from kertal, flash1293, majagrubic and a team February 18, 2021 01:21
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@@ -87,7 +87,7 @@
on-remove-column="onRemoveColumn"
></thead>
<tbody>
<tr ng-repeat="row in hits|limitTo:limit track by row._index+row._type+row._id+row._score+row._version+row._routing"
<tr ng-repeat="row in hits|limitTo:limit track by row._index+row._type+row._id+row._score+row._version+row._routing+hideUnmapped"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a functional test for this because it was super weird to me. The cell contents don't update unless one of these properties is updated.

Copy link
Member

Choose a reason for hiding this comment

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

yes, this seems to be the concatenated variable Angular used to track updates, great that you've fixed it and even greater you've added a functional test for it 👍

*/
unmappedFieldsConfig?: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the need to change this now? If we're planning to phase-out the unmapped fields over the next few minors, this config value will have its purpose and it doesn't really affect things atm.

@@ -42,6 +42,7 @@ export async function persistSavedSearch(
sort: state.sort as SortOrder[],
columns: state.columns || [],
useNewFieldsApi: false,
hideUnmappedFields: state.hideUnmapped,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to persist this setting?

@majagrubic
Copy link
Contributor

majagrubic commented Feb 18, 2021

This feels like quite a big change. I have a more minimal version of the PR that just removes the existing migration and doesn't persist anything, that we might want to consider: #91735

@flash1293
Copy link
Contributor

If we show the switch in the UI but don't persist it I think people will be confused in some cases. Let's say someone disables this flag, unmapped fields disappear, they navigate somewhere else and back and they appear again. But if we are fine with this behavior for 7.12 I wouldn't object from my side.

Comment on lines +414 to +422
hideUnmapped: false,
};
if (savedSearch.grid) {
defaultState.grid = savedSearch.grid;
}
if (savedSearch.hideChart) {
defaultState.hideChart = savedSearch.hideChart;
}
defaultState.hideUnmapped = savedSearch.hideUnmapped;
Copy link
Member

Choose a reason for hiding this comment

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

do you think it makes sense not to set hideUnmapped in default state unless it is explicitly set in savedSearch? This way it would also not become part of the URL unless the user changes the switch. Think the currently functional failure would be fixes without editing any expect, and we would not add a variable to URL without user action.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I think that's reasonable.

@wylieconlon
Copy link
Contributor Author

@majagrubic I agree that a non-persistent setting would also make sense, but I added persistence because of the discussion yesterday about the future of this feature being off by default.

@wylieconlon
Copy link
Contributor Author

As discussed we are not going to implement this as a toggle in the UI.

@wylieconlon wylieconlon deleted the discover-default-unmapped branch February 18, 2021 16:34
@kibanamachine
Copy link
Contributor

kibanamachine commented Feb 18, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / Chrome UI Functional Tests.test/functional/apps/discover/_shared_links·ts.discover app shared links shared links with state in query permalink should allow for copying the snapshot URL

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:07:11]         └-: discover app
[00:07:11]           └-> "before all" hook in "discover app"
[00:07:11]           └-> "before all" hook in "discover app"
[00:16:52]           └-: shared links
[00:16:52]             └-> "before all" hook in "shared links"
[00:16:52]             └-: shared links with state in query
[00:16:52]               └-> "before all" hook in "shared links with state in query"
[00:16:52]               └-> "before all" hook in "shared links with state in query"
[00:16:52]                 │ debg baseUrl = http://localhost:61161
[00:16:52]                 │ debg New baseUrl = http://localhost:61161
[00:16:52]                 │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:16:52]                 │ debg load kibana index with default index pattern
[00:16:52]                 │ info [discover] Loading "mappings.json"
[00:16:52]                 │ info [discover] Loading "data.json"
[00:16:52]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/YyZP2VtxQYq5khoEofhkXw] deleting index
[00:16:52]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_pre6.5.0_001/msNjA3QrTiaaDAQ_9Bid3w] deleting index
[00:16:52]                 │ info [discover] Deleted existing index ".kibana_8.0.0_001"
[00:16:52]                 │ info [discover] Deleted existing index ".kibana_pre6.5.0_001"
[00:16:52]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:16:52]                 │ info [discover] Created index ".kibana"
[00:16:52]                 │ debg [discover] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:16:52]                 │ info [discover] Indexed 2 docs into ".kibana"
[00:16:52]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana/1s4lQDYEQ36iRCqGPZk5AQ] update_mapping [_doc]
[00:16:52]                 │ debg Migrating saved objects
[00:16:52]                 │ proc [kibana]   log   [17:38:01.530] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK
[00:16:52]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] adding block write to indices [[.kibana/1s4lQDYEQ36iRCqGPZk5AQ]]
[00:16:52]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] completed adding block write to indices [.kibana]
[00:16:52]                 │ proc [kibana]   log   [17:38:01.563] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET
[00:16:52]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:16:52]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:16:52]                 │ proc [kibana]   log   [17:38:01.617] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX
[00:16:52]                 │ proc [kibana]   log   [17:38:01.622] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK
[00:16:52]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] 9321 finished with response BulkByScrollResponse[took=14.9ms,timed_out=false,sliceId=null,updated=0,created=2,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:16:52]                 │ proc [kibana]   log   [17:38:01.727] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE
[00:16:52]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana/1s4lQDYEQ36iRCqGPZk5AQ] deleting index
[00:16:52]                 │ proc [kibana]   log   [17:38:01.756] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK
[00:16:52]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] adding block write to indices [[.kibana_pre6.5.0_001/g1XuWWWLTXq2aBCSawr-NA]]
[00:16:52]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:16:52]                 │ proc [kibana]   log   [17:38:01.792] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:16:52]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:16:52]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:16:52]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_reindex_temp][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_reindex_temp][0]]"
[00:16:52]                 │ proc [kibana]   log   [17:38:01.842] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:16:52]                 │ proc [kibana]   log   [17:38:01.846] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:16:52]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] 9360 finished with response BulkByScrollResponse[took=11.5ms,timed_out=false,sliceId=null,updated=0,created=2,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:16:53]                 │ proc [kibana]   log   [17:38:01.951] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:16:53]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] adding block write to indices [[.kibana_8.0.0_reindex_temp/WzB8qH1rRX-A-eq_e1PFfQ]]
[00:16:53]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:16:53]                 │ proc [kibana]   log   [17:38:01.988] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:16:53]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:16:53]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:16:53]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:16:53]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/HL0X9y-MRrSJLtiojC9v5Q] create_mapping
[00:16:53]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_001][0]]"
[00:16:53]                 │ proc [kibana]   log   [17:38:02.082] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:16:53]                 │ proc [kibana]   log   [17:38:02.090] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> OUTDATED_DOCUMENTS_TRANSFORM
[00:16:53]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/HL0X9y-MRrSJLtiojC9v5Q] update_mapping [_doc]
[00:16:53]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/HL0X9y-MRrSJLtiojC9v5Q] update_mapping [_doc]
[00:16:54]                 │ proc [kibana]   log   [17:38:03.021] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_TRANSFORM -> OUTDATED_DOCUMENTS_SEARCH
[00:16:54]                 │ proc [kibana]   log   [17:38:03.029] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:16:54]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/HL0X9y-MRrSJLtiojC9v5Q] update_mapping [_doc]
[00:16:54]                 │ proc [kibana]   log   [17:38:03.062] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:16:54]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] 9421 finished with response BulkByScrollResponse[took=15.6ms,timed_out=false,sliceId=null,updated=2,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:16:54]                 │ proc [kibana]   log   [17:38:03.166] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:16:54]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_reindex_temp/WzB8qH1rRX-A-eq_e1PFfQ] deleting index
[00:16:54]                 │ proc [kibana]   log   [17:38:03.199] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:16:54]                 │ proc [kibana]   log   [17:38:03.199] [info][savedobjects-service] [.kibana] Migration completed after 1673ms
[00:16:54]                 │ debg [discover] Migrated Kibana index after loading Kibana data
[00:16:54]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:16:54]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/HL0X9y-MRrSJLtiojC9v5Q] update_mapping [_doc]
[00:16:56]                 │ info [logstash_functional] Loading "mappings.json"
[00:16:56]                 │ info [logstash_functional] Loading "data.json.gz"
[00:16:56]                 │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:16:56]                 │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:16:56]                 │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:16:57]                 │ debg replacing kibana config doc: {"state:storeInSessionStorage":false}
[00:16:58]                 │ debg discover
[00:16:58]                 │ debg navigating to discover url: http://localhost:61161/app/discover#/
[00:16:58]                 │ debg navigate to: http://localhost:61161/app/discover#/
[00:16:58]                 │ debg browser[INFO] http://localhost:61161/app/discover?_t=1613669887049#/ 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:16:58]                 │
[00:16:58]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:58]                 │ debg ... sleep(700) start
[00:16:58]                 │ debg ... sleep(700) end
[00:16:58]                 │ debg returned from get, calling refresh
[00:16:59]                 │ debg browser[INFO] http://localhost:61161/app/discover?_t=1613669887049#/ 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:16:59]                 │
[00:16:59]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:16:59]                 │ debg currentUrl = http://localhost:61161/app/discover#/
[00:16:59]                 │          appUrl = http://localhost:61161/app/discover#/
[00:16:59]                 │ debg TestSubjects.find(kibanaChrome)
[00:16:59]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:16:59]                 │ debg ... sleep(501) start
[00:17:00]                 │ debg ... sleep(501) end
[00:17:00]                 │ debg in navigateTo url = http://localhost:61161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),hideUnmapped:!f,index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:17:00]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:17:00]                 │ debg ... sleep(501) start
[00:17:01]                 │ debg ... sleep(501) end
[00:17:01]                 │ debg in navigateTo url = http://localhost:61161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),hideUnmapped:!f,index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:17:01]                 │ debg TestSubjects.exists(statusPageContainer)
[00:17:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:17:03]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:17:04]                 │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:17:04]                 │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:17:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:17:04]                 │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:17:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:17:04]                 │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:17:04]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:17:04]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:17:04]                 │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:17:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:17:04]                 │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:17:04]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:17:04]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:17:04]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:17:04]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:17:04]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:17:04]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:17:04]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:17:04]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:04]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:04]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 2015 @ 18:31:44.000)
[00:17:04]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:17:04]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:04]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:05]                 │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:17:05]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:17:05]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:17:05]                 │ debg Find.waitForElementStale with timeout=10000
[00:17:05]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:17:05]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:17:05]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:17:05]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:17:05]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:17:05]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:05]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:05]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 2015 @ 06:31:44.000)
[00:17:05]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:17:05]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:05]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:05]                 │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:17:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:17:08]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:17:09]                 │ debg TestSubjects.click(querySubmitButton)
[00:17:09]                 │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:17:09]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:17:09]                 │ debg Find.waitForElementStale with timeout=10000
[00:17:09]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:17:09]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:17:09]                 │ debg ... sleep(1000) start
[00:17:10]                 │ debg ... sleep(1000) end
[00:17:10]                 │ debg TestSubjects.click(shareTopNavButton)
[00:17:10]                 │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:17:10]                 │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:17:12]               └-: permalink
[00:17:12]                 └-> "before all" hook for "should allow for copying the snapshot URL"
[00:17:12]                 └-> should allow for copying the snapshot URL
[00:17:12]                   └-> "before each" hook: global before each for "should allow for copying the snapshot URL"
[00:17:12]                   │ debg TestSubjects.exists(sharePanel-Permalinks)
[00:17:12]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="sharePanel-Permalinks"]') with timeout=2500
[00:17:14]                   │ debg --- retry.tryForTime error: [data-test-subj="sharePanel-Permalinks"] is not displayed
[00:17:15]                   │ debg TestSubjects.getAttribute(copyShareUrlButton, data-share-url, tryTimeout=120000, findTimeout=10000)
[00:17:15]                   │ debg TestSubjects.find(copyShareUrlButton)
[00:17:15]                   │ debg Find.findByCssSelector('[data-test-subj="copyShareUrlButton"]') with timeout=10000
[00:17:15]                   │ info Taking screenshot "/dev/shm/workspace/parallel/16/kibana/test/functional/screenshots/failure/discover app shared links shared links with state in query permalink should allow for copying the snapshot URL.png"
[00:17:15]                   │ info Current URL is: http://localhost:61161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-19T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(),filters:!(),hideUnmapped:!f,index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:17:15]                   │ info Saving page source to: /dev/shm/workspace/parallel/16/kibana/test/functional/failure_debug/html/discover app shared links shared links with state in query permalink should allow for copying the snapshot URL.html
[00:17:15]                   └- ✖ fail: discover app shared links shared links with state in query permalink should allow for copying the snapshot URL
[00:17:15]                   │      Error: expected 'http://localhost:61161/app/discover?_t=TIMESTAMP#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:\'2015-09-19T06:31:44.000Z\',to:\'2015-09-23T18:31:44.000Z\'))&_a=(columns:!(),filters:!(),hideUnmapped:!f,index:\'logstash-*\',interval:auto,query:(language:kuery,query:\'\'),sort:!(!(\'@timestamp\',desc)))' to equal 'http://localhost:61161/app/discover?_t=TIMESTAMP#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:\'2015-09-19T06:31:44.000Z\',to:\'2015-09-23T18:31:44.000Z\'))&_a=(columns:!(),filters:!(),index:\'logstash-*\',interval:auto,query:(language:kuery,query:\'\'),sort:!(!(\'@timestamp\',desc)))'
[00:17:15]                   │       at Assertion.assert (packages/kbn-expect/expect.js:100:11)
[00:17:15]                   │       at Assertion.be.Assertion.equal (packages/kbn-expect/expect.js:227:8)
[00:17:15]                   │       at Assertion.be (packages/kbn-expect/expect.js:69:22)
[00:17:15]                   │       at Context.<anonymous> (test/functional/apps/discover/_shared_links.ts:85:69)
[00:17:15]                   │       at runMicrotasks (<anonymous>)
[00:17:15]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:17:15]                   │       at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:17:15]                   │ 
[00:17:15]                   │ 

Stack Trace

Error: expected 'http://localhost:61161/app/discover?_t=TIMESTAMP#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:\'2015-09-19T06:31:44.000Z\',to:\'2015-09-23T18:31:44.000Z\'))&_a=(columns:!(),filters:!(),hideUnmapped:!f,index:\'logstash-*\',interval:auto,query:(language:kuery,query:\'\'),sort:!(!(\'@timestamp\',desc)))' to equal 'http://localhost:61161/app/discover?_t=TIMESTAMP#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:\'2015-09-19T06:31:44.000Z\',to:\'2015-09-23T18:31:44.000Z\'))&_a=(columns:!(),filters:!(),index:\'logstash-*\',interval:auto,query:(language:kuery,query:\'\'),sort:!(!(\'@timestamp\',desc)))'
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (packages/kbn-expect/expect.js:227:8)
    at Assertion.be (packages/kbn-expect/expect.js:69:22)
    at Context.<anonymous> (test/functional/apps/discover/_shared_links.ts:85:69)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Kibana Pipeline / general / Chrome UI Functional Tests.test/functional/apps/discover/_shared_links·ts.discover app shared links shared links with state in query permalink should allow for copying the snapshot URL

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:07:12]         └-: discover app
[00:07:12]           └-> "before all" hook in "discover app"
[00:07:12]           └-> "before all" hook in "discover app"
[00:17:15]           └-: shared links
[00:17:15]             └-> "before all" hook in "shared links"
[00:17:15]             └-: shared links with state in query
[00:17:15]               └-> "before all" hook in "shared links with state in query"
[00:17:15]               └-> "before all" hook in "shared links with state in query"
[00:17:15]                 │ debg baseUrl = http://localhost:61161
[00:17:15]                 │ debg New baseUrl = http://localhost:61161
[00:17:15]                 │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:17:16]                 │ debg load kibana index with default index pattern
[00:17:16]                 │ info [discover] Loading "mappings.json"
[00:17:16]                 │ info [discover] Loading "data.json"
[00:17:16]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/YIJdomIDRQO5NLld-5zhcg] deleting index
[00:17:16]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_pre6.5.0_001/05mUgomAQjKaWHh--aZd1Q] deleting index
[00:17:16]                 │ info [discover] Deleted existing index ".kibana_8.0.0_001"
[00:17:16]                 │ info [discover] Deleted existing index ".kibana_pre6.5.0_001"
[00:17:16]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:17:16]                 │ info [discover] Created index ".kibana"
[00:17:16]                 │ debg [discover] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:17:16]                 │ info [discover] Indexed 2 docs into ".kibana"
[00:17:16]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana/FIUAA4hXQeGoMCc0wsUVAw] update_mapping [_doc]
[00:17:16]                 │ debg Migrating saved objects
[00:17:16]                 │ proc [kibana]   log   [17:19:33.700] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK
[00:17:16]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] adding block write to indices [[.kibana/FIUAA4hXQeGoMCc0wsUVAw]]
[00:17:16]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] completed adding block write to indices [.kibana]
[00:17:16]                 │ proc [kibana]   log   [17:19:33.731] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET
[00:17:16]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:17:16]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:17:16]                 │ proc [kibana]   log   [17:19:33.783] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX
[00:17:16]                 │ proc [kibana]   log   [17:19:33.787] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK
[00:17:16]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] 9316 finished with response BulkByScrollResponse[took=15.2ms,timed_out=false,sliceId=null,updated=0,created=2,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:17:16]                 │ proc [kibana]   log   [17:19:33.892] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE
[00:17:16]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana/FIUAA4hXQeGoMCc0wsUVAw] deleting index
[00:17:16]                 │ proc [kibana]   log   [17:19:33.922] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK
[00:17:16]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] adding block write to indices [[.kibana_pre6.5.0_001/m5k11-JVTsKQKaZo4eDbsA]]
[00:17:16]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:17:16]                 │ proc [kibana]   log   [17:19:33.958] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:17:16]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:17:16]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:17:16]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_reindex_temp][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_reindex_temp][0]]"
[00:17:16]                 │ proc [kibana]   log   [17:19:34.018] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:17:16]                 │ proc [kibana]   log   [17:19:34.022] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:17:16]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] 9357 finished with response BulkByScrollResponse[took=11.7ms,timed_out=false,sliceId=null,updated=0,created=2,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:17:16]                 │ proc [kibana]   log   [17:19:34.128] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:17:16]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] adding block write to indices [[.kibana_8.0.0_reindex_temp/ddeX28DzQ2qqNbd8MkZ0NQ]]
[00:17:16]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:17:16]                 │ proc [kibana]   log   [17:19:34.166] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:17:16]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:17:16]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:17:16]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:17:16]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/m3pxvEEKRveMJLDC0eAKYg] create_mapping
[00:17:16]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_001][0]]"
[00:17:16]                 │ proc [kibana]   log   [17:19:34.263] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:17:16]                 │ proc [kibana]   log   [17:19:34.271] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> OUTDATED_DOCUMENTS_TRANSFORM
[00:17:16]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/m3pxvEEKRveMJLDC0eAKYg] update_mapping [_doc]
[00:17:16]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/m3pxvEEKRveMJLDC0eAKYg] update_mapping [_doc]
[00:17:17]                 │ proc [kibana]   log   [17:19:35.199] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_TRANSFORM -> OUTDATED_DOCUMENTS_SEARCH
[00:17:17]                 │ proc [kibana]   log   [17:19:35.206] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:17:17]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/m3pxvEEKRveMJLDC0eAKYg] update_mapping [_doc]
[00:17:17]                 │ proc [kibana]   log   [17:19:35.242] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:17:17]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] 9420 finished with response BulkByScrollResponse[took=15.3ms,timed_out=false,sliceId=null,updated=2,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:17:17]                 │ proc [kibana]   log   [17:19:35.348] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:17:17]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_reindex_temp/ddeX28DzQ2qqNbd8MkZ0NQ] deleting index
[00:17:17]                 │ proc [kibana]   log   [17:19:35.391] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:17:17]                 │ proc [kibana]   log   [17:19:35.392] [info][savedobjects-service] [.kibana] Migration completed after 1696ms
[00:17:17]                 │ debg [discover] Migrated Kibana index after loading Kibana data
[00:17:17]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:17:18]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1613666101785584638] [.kibana_8.0.0_001/m3pxvEEKRveMJLDC0eAKYg] update_mapping [_doc]
[00:17:19]                 │ info [logstash_functional] Loading "mappings.json"
[00:17:19]                 │ info [logstash_functional] Loading "data.json.gz"
[00:17:19]                 │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:17:19]                 │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:17:19]                 │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:17:20]                 │ debg replacing kibana config doc: {"state:storeInSessionStorage":false}
[00:17:21]                 │ debg discover
[00:17:21]                 │ debg navigating to discover url: http://localhost:61161/app/discover#/
[00:17:21]                 │ debg navigate to: http://localhost:61161/app/discover#/
[00:17:22]                 │ debg browser[INFO] http://localhost:61161/app/discover?_t=1613668779231#/ 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:17:22]                 │
[00:17:22]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:22]                 │ debg ... sleep(700) start
[00:17:22]                 │ debg ... sleep(700) end
[00:17:22]                 │ debg returned from get, calling refresh
[00:17:23]                 │ debg browser[INFO] http://localhost:61161/app/discover?_t=1613668779231#/ 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:17:23]                 │
[00:17:23]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:17:23]                 │ debg currentUrl = http://localhost:61161/app/discover#/
[00:17:23]                 │          appUrl = http://localhost:61161/app/discover#/
[00:17:23]                 │ debg TestSubjects.find(kibanaChrome)
[00:17:23]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:17:23]                 │ debg ... sleep(501) start
[00:17:23]                 │ debg ... sleep(501) end
[00:17:23]                 │ debg in navigateTo url = http://localhost:61161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),hideUnmapped:!f,index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:17:23]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:17:24]                 │ debg ... sleep(501) start
[00:17:24]                 │ debg ... sleep(501) end
[00:17:24]                 │ debg in navigateTo url = http://localhost:61161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),hideUnmapped:!f,index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:17:24]                 │ debg TestSubjects.exists(statusPageContainer)
[00:17:24]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:17:27]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:17:27]                 │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:17:27]                 │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:17:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:17:27]                 │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:17:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:17:27]                 │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:17:27]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:17:27]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:17:28]                 │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:17:28]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:17:28]                 │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:17:28]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:17:28]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:17:28]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:17:28]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:17:28]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:17:28]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:17:28]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:17:28]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:28]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:28]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 2015 @ 18:31:44.000)
[00:17:28]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:17:28]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:28]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:29]                 │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:17:29]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:17:29]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:17:29]                 │ debg Find.waitForElementStale with timeout=10000
[00:17:29]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:17:29]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:17:29]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:17:29]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:17:29]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:17:29]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:29]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:29]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 2015 @ 06:31:44.000)
[00:17:29]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:17:29]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:29]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:17:29]                 │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:17:29]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:17:32]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:17:33]                 │ debg TestSubjects.click(querySubmitButton)
[00:17:33]                 │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:17:33]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:17:33]                 │ debg Find.waitForElementStale with timeout=10000
[00:17:33]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:17:33]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:17:33]                 │ debg ... sleep(1000) start
[00:17:34]                 │ debg ... sleep(1000) end
[00:17:34]                 │ debg TestSubjects.click(shareTopNavButton)
[00:17:34]                 │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:17:34]                 │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:17:36]               └-: permalink
[00:17:36]                 └-> "before all" hook for "should allow for copying the snapshot URL"
[00:17:36]                 └-> should allow for copying the snapshot URL
[00:17:36]                   └-> "before each" hook: global before each for "should allow for copying the snapshot URL"
[00:17:36]                   │ debg TestSubjects.exists(sharePanel-Permalinks)
[00:17:36]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="sharePanel-Permalinks"]') with timeout=2500
[00:17:39]                   │ debg --- retry.tryForTime error: [data-test-subj="sharePanel-Permalinks"] is not displayed
[00:17:39]                   │ debg TestSubjects.getAttribute(copyShareUrlButton, data-share-url, tryTimeout=120000, findTimeout=10000)
[00:17:39]                   │ debg TestSubjects.find(copyShareUrlButton)
[00:17:39]                   │ debg Find.findByCssSelector('[data-test-subj="copyShareUrlButton"]') with timeout=10000
[00:17:39]                   │ info Taking screenshot "/dev/shm/workspace/parallel/16/kibana/test/functional/screenshots/failure/discover app shared links shared links with state in query permalink should allow for copying the snapshot URL.png"
[00:17:39]                   │ info Current URL is: http://localhost:61161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-19T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(),filters:!(),hideUnmapped:!f,index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:17:39]                   │ info Saving page source to: /dev/shm/workspace/parallel/16/kibana/test/functional/failure_debug/html/discover app shared links shared links with state in query permalink should allow for copying the snapshot URL.html
[00:17:39]                   └- ✖ fail: discover app shared links shared links with state in query permalink should allow for copying the snapshot URL
[00:17:39]                   │      Error: expected 'http://localhost:61161/app/discover?_t=TIMESTAMP#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:\'2015-09-19T06:31:44.000Z\',to:\'2015-09-23T18:31:44.000Z\'))&_a=(columns:!(),filters:!(),hideUnmapped:!f,index:\'logstash-*\',interval:auto,query:(language:kuery,query:\'\'),sort:!(!(\'@timestamp\',desc)))' to equal 'http://localhost:61161/app/discover?_t=TIMESTAMP#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:\'2015-09-19T06:31:44.000Z\',to:\'2015-09-23T18:31:44.000Z\'))&_a=(columns:!(),filters:!(),index:\'logstash-*\',interval:auto,query:(language:kuery,query:\'\'),sort:!(!(\'@timestamp\',desc)))'
[00:17:39]                   │       at Assertion.assert (packages/kbn-expect/expect.js:100:11)
[00:17:39]                   │       at Assertion.be.Assertion.equal (packages/kbn-expect/expect.js:227:8)
[00:17:39]                   │       at Assertion.be (packages/kbn-expect/expect.js:69:22)
[00:17:39]                   │       at Context.<anonymous> (test/functional/apps/discover/_shared_links.ts:85:69)
[00:17:39]                   │       at runMicrotasks (<anonymous>)
[00:17:39]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:17:39]                   │       at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:17:39]                   │ 
[00:17:39]                   │ 

Stack Trace

Error: expected 'http://localhost:61161/app/discover?_t=TIMESTAMP#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:\'2015-09-19T06:31:44.000Z\',to:\'2015-09-23T18:31:44.000Z\'))&_a=(columns:!(),filters:!(),hideUnmapped:!f,index:\'logstash-*\',interval:auto,query:(language:kuery,query:\'\'),sort:!(!(\'@timestamp\',desc)))' to equal 'http://localhost:61161/app/discover?_t=TIMESTAMP#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:\'2015-09-19T06:31:44.000Z\',to:\'2015-09-23T18:31:44.000Z\'))&_a=(columns:!(),filters:!(),index:\'logstash-*\',interval:auto,query:(language:kuery,query:\'\'),sort:!(!(\'@timestamp\',desc)))'
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (packages/kbn-expect/expect.js:227:8)
    at Assertion.be (packages/kbn-expect/expect.js:69:22)
    at Context.<anonymous> (test/functional/apps/discover/_shared_links.ts:85:69)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Async chunks

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

id before after diff
discover 409.4KB 409.3KB -106.0B

Page load bundle

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

id before after diff
discover 79.5KB 79.5KB +18.0B

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.12.0 v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discover] Show unmapped fields in field list and docs regardless of data fetching
6 participants