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

[Core][Deprecations] omit deprecationDetails if needed it in the reques #114399

Merged
merged 6 commits into from
Oct 11, 2021

Conversation

XavierM
Copy link
Contributor

@XavierM XavierM commented Oct 8, 2021

Summary

In this PR #113172, the API call fails because the request payload contains an unexpected deprecationDetails field. It looks like the deprecations client is adding this automatically.

Checklist

@XavierM XavierM added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.0.0 release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 labels Oct 8, 2021
@XavierM XavierM requested a review from a team as a code owner October 8, 2021 21:03
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@XavierM XavierM self-assigned this Oct 8, 2021
@XavierM XavierM changed the title [Deprecations] omit deprecationDetails if needed it in the reques [Core][Deprecations] omit deprecationDetails if needed it in the reques Oct 8, 2021
Comment on lines 68 to 71
body: JSON.stringify({
...body,
deprecationDetails: { domainId },
...(omitDeprecationDetails ? {} : { deprecationDetails: { domainId } }),
}),
Copy link
Contributor

@pgayvallet pgayvallet Oct 11, 2021

Choose a reason for hiding this comment

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

@Bamieh do you know why we're adding this in the first place? I suspect more endpoints may fail to validate because of this added parameter.

  • Are we documenting this anywhere?
  • Shouldn't we just remove this behavior? What is it supposed to be used for?

Copy link
Member

@Bamieh Bamieh Oct 11, 2021

Choose a reason for hiding this comment

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

The resolve API endpoint has no way of telling which deprecation domain ID the user is attempting to resolve (via UA or a direct endpoint call) unless each deprecation explicitly passed the domainId in the correctiveAction.api.body.

Is this documented?
I do mention that we pass the api.body and the context of the deprecation in the docs

The field is shown in the example route in the functional tests

Shouldn't we just remove this behavior? What is it supposed to be used for?

the domainId is the id of the plugin and it is automatically passed to each deprecation. I am passing it to the api body as well to avoid plugins requirinig to manually pass their domainId to the api if they need it.

Looking at the current depreaction routes across kibana I don't see this used yet so we can remove it completely. I am curious why not just add this object to the schema of your routes @XavierM rather than omitting it by adding extra logic.

Copy link
Contributor

@pgayvallet pgayvallet Oct 11, 2021

Choose a reason for hiding this comment

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

The resolve API endpoint has no way of telling which deprecation domain ID the user is attempting to resolve

Unless I understand

public resolveDeprecation = async (
details: DomainDeprecationDetails
): Promise<ResolveDeprecationResponse> => {

wrong, we're performing a call against the endpoint registered via DomainDeprecationDetails.correctiveActions.api. as all these info are registered by the deprecation owners, I would expect them to be self-sufficient to resolve the deprecation?

I am passing it to the api body as well to avoid plugins requirinig to manually pass their domainId to the api if they need it

Sorry, to which API? do automatic resolution endpoints need to call a deprecation API somehow after the resolution?

Copy link
Member

Choose a reason for hiding this comment

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

Here is an example how a deprecation is registered:

{
title: i18n.translate('xpack.reporting.deprecations.migrateIndexIlmPolicyActionTitle', {
defaultMessage: 'Found reporting indices managed by custom ILM policy.',
}),
level: 'warning',
message: i18n.translate('xpack.reporting.deprecations.migrateIndexIlmPolicyActionMessage', {
defaultMessage: `New reporting indices will be managed by the "{reportingIlmPolicy}" provisioned ILM policy. You must edit this policy to manage the report lifecycle. This change targets all indices prefixed with "{indexPattern}".`,
values: {
reportingIlmPolicy: ILM_POLICY_NAME,
indexPattern,
},
}),
correctiveActions: {
manualSteps: [
i18n.translate(
'xpack.reporting.deprecations.migrateIndexIlmPolicy.manualStepOneMessage',
{
defaultMessage:
'Update all reporting indices to use the "{reportingIlmPolicy}" policy using the index settings API.',
values: { reportingIlmPolicy: ILM_POLICY_NAME },
}
),
],
api: {
method: 'PUT',
path: API_MIGRATE_ILM_POLICY_URL,
},
},
},

The domainId is not passed by the plugins. It is automatically attached to the registered deprecation based on which plugin is doing this registration.

The plugins register their own routes to correct the deprecation, and since i'm providing the domainId during deprecation registration, i thought i'd also pass it to the route as well.

The correctiveAction.api is called by the deprecations service DeprecationsClient which is used by the UA

Copy link
Member

Choose a reason for hiding this comment

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

I had a zoom call with @XavierM and this approach of adding a flag LGTM for now. They are not creating their own route for resolving the deprecation so it is not possible to just pass this provided context object and allowing it in the route schema.

I think it is fine to have this flag inside correctiveActions.api.omitContextFromBody. We can revisit this in 8.x (if needed) since we can change it on a more comfortable schedule and we'll have less custom routes to resolve deprecations.

Copy link
Member

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

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

LGTM

@XavierM
Copy link
Contributor Author

XavierM commented Oct 11, 2021

@elasticmachine merge upstream

@XavierM
Copy link
Contributor Author

XavierM commented Oct 11, 2021

@elasticmachine merge upstream

@XavierM XavierM enabled auto-merge (squash) October 11, 2021 21:13
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/maps/documents_source/docvalue_fields·js.maps app documents source docvalue_fields should format date fields as epoch_millis when data driven styling is applied to a date field

Link to Jenkins

Standard Out

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

[00:00:00]     │
[00:00:00]       └-: maps app
[00:00:00]         └-> "before all" hook in "maps app"
[00:00:00]         └-> "before all" hook in "maps app"
[00:00:00]           │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "mappings.json"
[00:00:00]           │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "data.json.gz"
[00:00:00]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]           │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:00:00]           │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.22"
[00:00:00]           │ debg [x-pack/test/functional/es_archives/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:00:00]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]           │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:00:00]           │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.20"
[00:00:00]           │ debg [x-pack/test/functional/es_archives/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:00:00]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]           │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:00:00]           │ info [x-pack/test/functional/es_archives/logstash_functional] Created index "logstash-2015.09.21"
[00:00:00]           │ debg [x-pack/test/functional/es_archives/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:00:00]           │ info [o.e.c.m.MetadataMappingService] [node-01] [logstash-2015.09.21/Olxc7UvlRSCaV-LYgmLVVg] update_mapping [_doc]
[00:00:05]           │ info [o.e.c.m.MetadataMappingService] [node-01] [logstash-2015.09.20/EjP9rnc9SKCgYbCl8wCMUw] update_mapping [_doc]
[00:00:10]           │ info progress: 9322
[00:00:14]           │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:00:14]           │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:14]           │ info [x-pack/test/functional/es_archives/logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:14]           │ debg resolved import for x-pack/test/functional/fixtures/kbn_archiver/maps.json to /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/fixtures/kbn_archiver/maps.json
[00:00:14]           │ info importing 37 saved objects { space: undefined }
[00:00:14]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/MzU8OKASQU2bKF2yTPGosA] update_mapping [_doc]
[00:00:14]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/MzU8OKASQU2bKF2yTPGosA] update_mapping [_doc]
[00:00:15]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/MzU8OKASQU2bKF2yTPGosA] update_mapping [_doc]
[00:00:15]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/MzU8OKASQU2bKF2yTPGosA] update_mapping [_doc]
[00:00:15]           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/MzU8OKASQU2bKF2yTPGosA] update_mapping [_doc]
[00:00:16]           │ succ import success
[00:00:16]           │ info Delete index pattern
[00:00:16]           │ debg id: idThatDoesNotExitForESGeoGridSource
[00:00:16]           │ debg id: idThatDoesNotExitForESSearchSource
[00:00:16]           │ debg id: idThatDoesNotExitForESJoinSource
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Loading "mappings.json"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Loading "data.json"
[00:00:19]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [geo_shapes] creating index, cause [api], templates [], shards [1]/[0]
[00:00:19]           │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[geo_shapes][0]]])." previous.health="YELLOW" reason="shards started [[geo_shapes][0]]"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "geo_shapes"
[00:00:19]           │ debg [x-pack/test/functional/es_archives/maps/data] "geo_shapes" settings {"index":{"number_of_replicas":"0","number_of_shards":"1","max_result_window":"10001","max_inner_result_window":"101"}}
[00:00:19]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [drawing_data] creating index, cause [api], templates [], shards [1]/[0]
[00:00:19]           │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[drawing_data][0]]])." previous.health="YELLOW" reason="shards started [[drawing_data][0]]"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "drawing_data"
[00:00:19]           │ debg [x-pack/test/functional/es_archives/maps/data] "drawing_data" settings {"index":{"number_of_replicas":"0","number_of_shards":"1","max_result_window":"10001","max_inner_result_window":"101"}}
[00:00:19]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [meta_for_geo_shapes] creating index, cause [api], templates [], shards [1]/[0]
[00:00:19]           │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[meta_for_geo_shapes][0]]])." previous.health="YELLOW" reason="shards started [[meta_for_geo_shapes][0]]"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "meta_for_geo_shapes"
[00:00:19]           │ debg [x-pack/test/functional/es_archives/maps/data] "meta_for_geo_shapes" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:19]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [antimeridian_points] creating index, cause [api], templates [], shards [1]/[0]
[00:00:19]           │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[antimeridian_points][0]]])." previous.health="YELLOW" reason="shards started [[antimeridian_points][0]]"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "antimeridian_points"
[00:00:19]           │ debg [x-pack/test/functional/es_archives/maps/data] "antimeridian_points" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:19]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [antimeridian_shapes] creating index, cause [api], templates [], shards [1]/[0]
[00:00:19]           │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[antimeridian_shapes][0]]])." previous.health="YELLOW" reason="shards started [[antimeridian_shapes][0]]"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "antimeridian_shapes"
[00:00:19]           │ debg [x-pack/test/functional/es_archives/maps/data] "antimeridian_shapes" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:19]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [flights] creating index, cause [api], templates [], shards [1]/[0]
[00:00:19]           │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[flights][0]]])." previous.health="YELLOW" reason="shards started [[flights][0]]"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "flights"
[00:00:19]           │ debg [x-pack/test/functional/es_archives/maps/data] "flights" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:19]           │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [connections] creating index, cause [api], templates [], shards [1]/[0]
[00:00:19]           │ info [o.e.c.r.a.AllocationService] [node-01] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[connections][0]]])." previous.health="YELLOW" reason="shards started [[connections][0]]"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Created index "connections"
[00:00:19]           │ debg [x-pack/test/functional/es_archives/maps/data] "connections" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:19]           │ info [o.e.c.m.MetadataMappingService] [node-01] [meta_for_geo_shapes/3vAU84gYSRaRscY1w6tmWg] update_mapping [_doc]
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 4 docs into "geo_shapes"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 1 docs into "drawing_data"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 6 docs into "meta_for_geo_shapes"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 3 docs into "antimeridian_points"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 3 docs into "antimeridian_shapes"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 3 docs into "flights"
[00:00:19]           │ info [x-pack/test/functional/es_archives/maps/data] Indexed 4 docs into "connections"
[00:00:19]           │ debg replacing kibana config doc: {"defaultIndex":"c698b940-e149-11e8-a35a-370a8516603a"}
[00:00:20]         └-: 
[00:00:20]           └-> "before all" hook in ""
[00:00:20]           └-: documents source
[00:00:20]             └-> "before all" hook in "documents source"
[00:00:20]             └-: docvalue_fields
[00:00:20]               └-> "before all" hook for "should only fetch geo_point field and time field and nothing else when source does not have data driven styling"
[00:00:20]               └-> "before all" hook for "should only fetch geo_point field and time field and nothing else when source does not have data driven styling"
[00:00:20]                 │ debg set roles = global_maps_read,test_logstash_reader
[00:00:20]                 │ debg creating user test_user
[00:00:21]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [test_user]
[00:00:22]                 │ debg created user test_user
[00:00:22]                 │ debg Load Saved Map document example
[00:00:22]                 │ debg searchForMapWithName: document example
[00:00:22]                 │ debg gotoMapListingPage
[00:00:22]                 │ debg onMapListingPage
[00:00:22]                 │ debg TestSubjects.exists(mapLandingPage)
[00:00:22]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:00:25]                 │ debg --- retry.tryForTime error: [data-test-subj="mapLandingPage"] is not displayed
[00:00:28]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:28]                 │ debg navigateToActualUrl http://localhost:6191/app/maps/
[00:00:29]                 │ debg browser[INFO] http://localhost:6191/login?next=%2Fapp%2Fmaps%2F%3F_t%3D1633986173391 281 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:00:29]                 │
[00:00:29]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:29]                 │ debg currentUrl = http://localhost:6191/login?next=%2Fapp%2Fmaps%2F%3F_t%3D1633986173391
[00:00:29]                 │          appUrl = http://localhost:6191/app/maps/
[00:00:29]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:29]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:31]                 │ debg Found login page
[00:00:31]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:00:31]                 │ debg TestSubjects.click(loginUsername)
[00:00:31]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:31]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:32]                 │ERROR browser[SEVERE] http://localhost:6191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:32]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:00:32]                 │ debg TestSubjects.click(loginPassword)
[00:00:32]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:32]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:32]                 │ debg TestSubjects.click(loginSubmit)
[00:00:32]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:32]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:32]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:00:32]                 │ proc [kibana] [2021-10-11T21:02:56.992+00:00][INFO ][plugins.security.routes] Logging in with provider "basic" (basic)
[00:00:33]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:33]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:00:36]                 │ debg browser[INFO] http://localhost:6191/app/maps/?_t=1633986173391 281 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:00:36]                 │
[00:00:36]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:37]                 │ debg browser[INFO] http://localhost:6191/app/maps/?_t=1633986181035 281 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:00:37]                 │
[00:00:37]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:37]                 │ debg Finished login process currentUrl = http://localhost:6191/app/maps/
[00:00:37]                 │ debg onMapListingPage
[00:00:37]                 │ debg TestSubjects.exists(mapLandingPage)
[00:00:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:00:39]                 │ debg searchForItemWithName: document example
[00:00:39]                 │ debg TestSubjects.find(tableListSearchBox)
[00:00:39]                 │ debg Find.findByCssSelector('[data-test-subj="tableListSearchBox"]') with timeout=10000
[00:00:40]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:40]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:40]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:41]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:00:42]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:42]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:42]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:42]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:42]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:43]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:00:44]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:44]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:44]                 │ debg TestSubjects.click(mapListingTitleLink-document-example)
[00:00:44]                 │ debg Find.clickByCssSelector('[data-test-subj="mapListingTitleLink-document-example"]') with timeout=10000
[00:00:44]                 │ debg Find.findByCssSelector('[data-test-subj="mapListingTitleLink-document-example"]') with timeout=10000
[00:00:44]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:44]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:44]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:46]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:46]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:46]                 │ debg TestSubjects.missingOrFail(mapLandingPage)
[00:00:46]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=10000
[00:00:47]                 │ debg Wait for layers to load
[00:00:47]                 │ debg TestSubjects.find(mapLayerTOC)
[00:00:47]                 │ debg Find.findByCssSelector('[data-test-subj="mapLayerTOC"]') with timeout=10000
[00:00:48]               └-> should only fetch geo_point field and time field and nothing else when source does not have data driven styling
[00:00:48]                 └-> "before each" hook: global before each for "should only fetch geo_point field and time field and nothing else when source does not have data driven styling"
[00:00:48]                 │ debg Load Saved Map document example
[00:00:48]                 │ debg searchForMapWithName: document example
[00:00:48]                 │ debg gotoMapListingPage
[00:00:48]                 │ debg onMapListingPage
[00:00:48]                 │ debg TestSubjects.exists(mapLandingPage)
[00:00:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:00:50]                 │ debg --- retry.tryForTime error: [data-test-subj="mapLandingPage"] is not displayed
[00:00:51]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/MzU8OKASQU2bKF2yTPGosA] update_mapping [_doc]
[00:00:53]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:54]                 │ debg navigateToActualUrl http://localhost:6191/app/maps/
[00:00:54]                 │ debg browser[INFO] http://localhost:6191/app/maps/?_t=1633986198849 281 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:00:54]                 │
[00:00:54]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:54]                 │ debg currentUrl = http://localhost:6191/app/maps/
[00:00:54]                 │          appUrl = http://localhost:6191/app/maps/
[00:00:54]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:54]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:56]                 │ debg onMapListingPage
[00:00:56]                 │ debg TestSubjects.exists(mapLandingPage)
[00:00:56]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:00:56]                 │ debg searchForItemWithName: document example
[00:00:56]                 │ debg TestSubjects.find(tableListSearchBox)
[00:00:56]                 │ debg Find.findByCssSelector('[data-test-subj="tableListSearchBox"]') with timeout=10000
[00:00:57]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:57]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:58]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:00:59]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:59]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:59]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:59]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:01]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:01]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:01]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:01]                 │ debg TestSubjects.click(mapListingTitleLink-document-example)
[00:01:01]                 │ debg Find.clickByCssSelector('[data-test-subj="mapListingTitleLink-document-example"]') with timeout=10000
[00:01:01]                 │ debg Find.findByCssSelector('[data-test-subj="mapListingTitleLink-document-example"]') with timeout=10000
[00:01:01]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:01]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:02]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:02]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:03]                 │ debg TestSubjects.missingOrFail(mapLandingPage)
[00:01:03]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=10000
[00:01:04]                 │ debg Wait for layers to load
[00:01:04]                 │ debg TestSubjects.find(mapLayerTOC)
[00:01:04]                 │ debg Find.findByCssSelector('[data-test-subj="mapLayerTOC"]') with timeout=10000
[00:01:05]                 │ debg Inspector.open
[00:01:05]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:07]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:08]                 │ debg TestSubjects.click(openInspectorButton)
[00:01:08]                 │ debg Find.clickByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:01:08]                 │ debg Find.findByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:01:08]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:08]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:08]                 │ debg Open Inspector view inspectorViewChooserRequests
[00:01:08]                 │ debg TestSubjects.click(inspectorViewChooser)
[00:01:08]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:01:08]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:01:08]                 │ debg TestSubjects.click(inspectorViewChooserRequests)
[00:01:08]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:01:08]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:01:08]                 │ debg TestSubjects.click(inspectorRequestDetailResponse)
[00:01:08]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:01:08]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:01:08]                 │ debg Find.findByCssSelector('.react-monaco-editor-container') with timeout=10000
[00:01:09]                 │ debg Close Inspector
[00:01:09]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:09]                 │ debg Closing flyout inspectorPanel
[00:01:09]                 │ debg TestSubjects.find(inspectorPanel)
[00:01:09]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=10000
[00:01:09]                 │ debg Waiting up to 20000ms for flyout closed...
[00:01:09]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=1000
[00:01:10]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:10]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:10]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:13]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:13]                 └- ✓ pass  (25.5s) "maps app  documents source docvalue_fields should only fetch geo_point field and time field and nothing else when source does not have data driven styling"
[00:01:13]               └-> should only fetch geo_point field and data driven styling fields
[00:01:13]                 └-> "before each" hook: global before each for "should only fetch geo_point field and data driven styling fields"
[00:01:13]                 │ debg Load Saved Map document example with data driven styles
[00:01:13]                 │ debg searchForMapWithName: document example with data driven styles
[00:01:13]                 │ debg gotoMapListingPage
[00:01:13]                 │ debg onMapListingPage
[00:01:13]                 │ debg TestSubjects.exists(mapLandingPage)
[00:01:13]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:01:16]                 │ debg --- retry.tryForTime error: [data-test-subj="mapLandingPage"] is not displayed
[00:01:19]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:19]                 │ debg navigateToActualUrl http://localhost:6191/app/maps/
[00:01:20]                 │ debg browser[INFO] http://localhost:6191/app/maps/?_t=1633986224399 281 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:01:20]                 │
[00:01:20]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:20]                 │ debg currentUrl = http://localhost:6191/app/maps/
[00:01:20]                 │          appUrl = http://localhost:6191/app/maps/
[00:01:20]                 │ debg TestSubjects.find(kibanaChrome)
[00:01:20]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:21]                 │ debg onMapListingPage
[00:01:21]                 │ debg TestSubjects.exists(mapLandingPage)
[00:01:21]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:01:22]                 │ debg searchForItemWithName: document example with data driven styles
[00:01:22]                 │ debg TestSubjects.find(tableListSearchBox)
[00:01:22]                 │ debg Find.findByCssSelector('[data-test-subj="tableListSearchBox"]') with timeout=10000
[00:01:23]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:23]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:23]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:25]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:25]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:25]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:25]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:25]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:25]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:27]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:27]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:27]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:27]                 │ debg TestSubjects.click(mapListingTitleLink-document-example-with-data-driven-styles)
[00:01:27]                 │ debg Find.clickByCssSelector('[data-test-subj="mapListingTitleLink-document-example-with-data-driven-styles"]') with timeout=10000
[00:01:27]                 │ debg Find.findByCssSelector('[data-test-subj="mapListingTitleLink-document-example-with-data-driven-styles"]') with timeout=10000
[00:01:27]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:27]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:29]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:29]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:29]                 │ debg TestSubjects.missingOrFail(mapLandingPage)
[00:01:29]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=10000
[00:01:30]                 │ debg Wait for layers to load
[00:01:30]                 │ debg TestSubjects.find(mapLayerTOC)
[00:01:30]                 │ debg Find.findByCssSelector('[data-test-subj="mapLayerTOC"]') with timeout=10000
[00:01:31]                 │ debg Inspector.open
[00:01:31]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:31]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:34]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:34]                 │ debg TestSubjects.click(openInspectorButton)
[00:01:34]                 │ debg Find.clickByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:01:34]                 │ debg Find.findByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:01:34]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:34]                 │ debg Open Inspector view inspectorViewChooserRequests
[00:01:34]                 │ debg TestSubjects.click(inspectorViewChooser)
[00:01:34]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:01:34]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:01:34]                 │ debg TestSubjects.click(inspectorViewChooserRequests)
[00:01:34]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:01:34]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:01:34]                 │ debg TestSubjects.click(inspectorRequestDetailResponse)
[00:01:34]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:01:34]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:01:34]                 │ debg Find.findByCssSelector('.react-monaco-editor-container') with timeout=10000
[00:01:35]                 │ debg Close Inspector
[00:01:35]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:35]                 │ debg Closing flyout inspectorPanel
[00:01:35]                 │ debg TestSubjects.find(inspectorPanel)
[00:01:35]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=10000
[00:01:35]                 │ debg Waiting up to 20000ms for flyout closed...
[00:01:35]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=1000
[00:01:36]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:37]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:39]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:40]                 └- ✓ pass  (26.2s) "maps app  documents source docvalue_fields should only fetch geo_point field and data driven styling fields"
[00:01:40]               └-> should format date fields as epoch_millis when data driven styling is applied to a date field
[00:01:40]                 └-> "before each" hook: global before each for "should format date fields as epoch_millis when data driven styling is applied to a date field"
[00:01:40]                 │ debg Load Saved Map document example with data driven styles on date field
[00:01:40]                 │ debg searchForMapWithName: document example with data driven styles on date field
[00:01:40]                 │ debg gotoMapListingPage
[00:01:40]                 │ debg onMapListingPage
[00:01:40]                 │ debg TestSubjects.exists(mapLandingPage)
[00:01:40]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:01:42]                 │ debg --- retry.tryForTime error: [data-test-subj="mapLandingPage"] is not displayed
[00:01:45]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:46]                 │ debg navigateToActualUrl http://localhost:6191/app/maps/
[00:01:46]                 │ debg browser[INFO] http://localhost:6191/app/maps/?_t=1633986250595 281 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:01:46]                 │
[00:01:46]                 │ debg browser[INFO] http://localhost:6191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:46]                 │ debg currentUrl = http://localhost:6191/app/maps/
[00:01:46]                 │          appUrl = http://localhost:6191/app/maps/
[00:01:46]                 │ debg TestSubjects.find(kibanaChrome)
[00:01:46]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:47]                 │ debg onMapListingPage
[00:01:47]                 │ debg TestSubjects.exists(mapLandingPage)
[00:01:47]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=5000
[00:01:48]                 │ debg searchForItemWithName: document example with data driven styles on date field
[00:01:48]                 │ debg TestSubjects.find(tableListSearchBox)
[00:01:48]                 │ debg Find.findByCssSelector('[data-test-subj="tableListSearchBox"]') with timeout=10000
[00:01:49]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:49]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:49]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:51]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:51]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:51]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:51]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:51]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:51]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:53]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:53]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:53]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:53]                 │ debg TestSubjects.click(mapListingTitleLink-document-example-with-data-driven-styles-on-date-field)
[00:01:53]                 │ debg Find.clickByCssSelector('[data-test-subj="mapListingTitleLink-document-example-with-data-driven-styles-on-date-field"]') with timeout=10000
[00:01:53]                 │ debg Find.findByCssSelector('[data-test-subj="mapListingTitleLink-document-example-with-data-driven-styles-on-date-field"]') with timeout=10000
[00:01:53]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:53]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:53]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:55]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:55]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:56]                 │ debg TestSubjects.missingOrFail(mapLandingPage)
[00:01:56]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mapLandingPage"]') with timeout=10000
[00:01:56]                 │ debg Wait for layers to load
[00:01:56]                 │ debg TestSubjects.find(mapLayerTOC)
[00:01:56]                 │ debg Find.findByCssSelector('[data-test-subj="mapLayerTOC"]') with timeout=10000
[00:01:57]                 │ debg Inspector.open
[00:01:57]                 │ debg TestSubjects.exists(inspectorPanel)
[00:01:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:02:00]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:02:00]                 │ debg TestSubjects.click(openInspectorButton)
[00:02:00]                 │ debg Find.clickByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:02:00]                 │ debg Find.findByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:02:00]                 │ debg TestSubjects.exists(inspectorPanel)
[00:02:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:02:01]                 │ debg Open Inspector view inspectorViewChooserRequests
[00:02:01]                 │ debg TestSubjects.click(inspectorViewChooser)
[00:02:01]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:02:01]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooser"]') with timeout=10000
[00:02:01]                 │ debg TestSubjects.click(inspectorViewChooserRequests)
[00:02:01]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:02:01]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorViewChooserRequests"]') with timeout=10000
[00:02:01]                 │ debg TestSubjects.click(inspectorRequestDetailResponse)
[00:02:01]                 │ debg Find.clickByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:02:01]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorRequestDetailResponse"]') with timeout=10000
[00:02:01]                 │ debg Find.findByCssSelector('.react-monaco-editor-container') with timeout=10000
[00:02:01]                 │ debg Close Inspector
[00:02:01]                 │ debg TestSubjects.exists(inspectorPanel)
[00:02:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:02:01]                 │ debg Closing flyout inspectorPanel
[00:02:01]                 │ debg TestSubjects.find(inspectorPanel)
[00:02:01]                 │ debg Find.findByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=10000
[00:02:01]                 │ debg Waiting up to 20000ms for flyout closed...
[00:02:01]                 │ debg TestSubjects.exists(inspectorPanel)
[00:02:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=1000
[00:02:02]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:02:03]                 │ debg TestSubjects.exists(inspectorPanel)
[00:02:03]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:02:05]                 │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:02:06]                 │ info Taking screenshot "/dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/screenshots/failure/maps app  documents source docvalue_fields should format date fields as epoch_millis when data driven styling is applied to a date field.png"
[00:02:06]                 │ info Current URL is: http://localhost:6191/app/maps/map/c9277dd0-eb8f-11e9-ae47-693d6a50fb9e#?_g=(filters:!(),refreshInterval:(pause:!t,value:1000),time:(from:%272015-09-20T00:00:00.000Z%27,to:%272015-09-20T01:00:00.000Z%27))&_a=(filters:!(),query:(language:kuery,query:%27%27))
[00:02:06]                 │ info Saving page source to: /dev/shm/workspace/parallel/9/kibana/x-pack/test/functional/failure_debug/html/maps app  documents source docvalue_fields should format date fields as epoch_millis when data driven styling is applied to a date field.html
[00:02:06]                 └- ✖ fail: maps app  documents source docvalue_fields should format date fields as epoch_millis when data driven styling is applied to a date field
[00:02:06]                 │       Error: expected '1442709961071' to sort of equal '1442709321445'
[00:02:06]                 │       + expected - actual
[00:02:06]                 │ 
[00:02:06]                 │       -1442709961071
[00:02:06]                 │       +1442709321445
[00:02:06]                 │       
[00:02:06]                 │       at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:02:06]                 │       at Assertion.eql (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/expect/expect.js:244:8)
[00:02:06]                 │       at Context.<anonymous> (test/functional/apps/maps/documents_source/docvalue_fields.js:52:51)
[00:02:06]                 │       at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:02:06]                 │ 
[00:02:06]                 │ 

Stack Trace

Error: expected '1442709961071' to sort of equal '1442709321445'
    at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/expect/expect.js:244:8)
    at Context.<anonymous> (test/functional/apps/maps/documents_source/docvalue_fields.js:52:51)
    at Object.apply (/dev/shm/workspace/parallel/9/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16) {
  actual: '1442709961071',
  expected: '1442709321445',
  showDiff: true
}

Metrics [docs]

Page load bundle

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

id before after diff
core 300.5KB 300.5KB +35.0B

History

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

cc @XavierM

@XavierM XavierM merged commit a0b55b3 into elastic:master Oct 11, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 11, 2021
…es (elastic#114399)

* omit deprecationDetails if needed it

* review I

* doc update

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Oct 12, 2021
…es (#114399) (#114574)

* omit deprecationDetails if needed it

* review I

* doc update

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants