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

fixing maps #56706

Merged
merged 14 commits into from
Feb 12, 2020
Merged

fixing maps #56706

merged 14 commits into from
Feb 12, 2020

Conversation

ppisljar
Copy link
Member

@ppisljar ppisljar commented Feb 3, 2020

Summary

replaces two existing tile map hacks for a new one:

  • tile map now create spatial filters based on the meta information provided by esaggs function (field name, index pattern)
  • tile_map emits an event when it wants to update boundingBox or precision aggConfig parameters
  • visualize_embeddable currently reloads expression on this event (to be improved in the future)
  • geohash_agg doesn't store information about mapZoom and mapBounds
  • geohash_agg now accepts boundingBox parameter and has a default for it. the parameter is not persisted to the saved object
  • geohash_agg still stores auto precision configuration (which is actually visualization config), to-be-removed later
  • visualize_embeddable hack that added getGeohashAgg to vis.API is removed
  • visualize_renderer hack which tried to reuse existing Vis instance passed down on handlers was removed.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@ppisljar ppisljar requested review from a team as code owners February 3, 2020 23:09
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@ppisljar ppisljar force-pushed the fix/mapshacks branch 2 times, most recently from 9847312 to 47d05b8 Compare February 3, 2020 23:22
@@ -37,5 +37,5 @@ visualizationsSetup.types.registerAlias({
});

if (!showMapVisualizationTypes) {
visualizationsSetup.types.hideTypes(['region_map', 'tile_map']);
//visualizationsSetup.types.hideTypes(['region_map', 'tile_map']);
Copy link
Contributor

Choose a reason for hiding this comment

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

this line should remain so region_map and tile_map are hidden in the create new visualization menu.

Copy link
Member Author

Choose a reason for hiding this comment

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

yup, i uncommented this to help me test

Copy link
Member

@lukeelmers lukeelmers left a comment

Choose a reason for hiding this comment

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

Code LGTM pending green CI. I think we can delete the query_geohash_bounds file as a part of this, and also close #30593

@@ -46,7 +46,6 @@ import {
import { dispatchRenderComplete } from '../../../../../plugins/kibana_utils/public';
import { SavedSearch } from '../../../kibana/public/discover/np_ready/types';
import { Vis } from '../np_ready/public';
import { queryGeohashBounds } from './query_geohash_bounds';
Copy link
Member

Choose a reason for hiding this comment

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

Can we delete the query_geohash_bounds file then? I think this was the only place it was used.

@ppisljar
Copy link
Member Author

ppisljar commented Feb 4, 2020

@elasticmachine merge upstream


const defaultPrecision = 2;
const maxPrecision = parseInt(config.get('visualization:tileMap:maxPrecision'), 10) || 12;
Copy link
Member Author

Choose a reason for hiding this comment

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

all this logic was moved inside tile_map_vis (it needs to set correct precision based on zoom level)

output.params.precision = aggConfig.params.autoPrecision
? autoPrecisionVal
: getPrecision(aggConfig.params.precision);
output.params.precision = aggConfig.params.precision;
Copy link
Member Author

Choose a reason for hiding this comment

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

correct precision is calculated in tile_map_vis

@@ -117,17 +65,7 @@ export const geoHashBucketAgg = new BucketAggType<IBucketGeoHashGridAggConfig>({
write: () => {},
},
{
name: 'mapZoom',
Copy link
Member Author

Choose a reason for hiding this comment

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

mapZoom and mapCenter are no longer stored on the agg config

params: {
geo_bounding_box: {
ignore_unmapped: true,
[agg.getField().name]: params.boundingBox || defaultBoundingBox,
Copy link
Member Author

Choose a reason for hiding this comment

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

if bounding box is not set we use default (which should exclude all data)

@@ -43,6 +43,10 @@ export const createTileMapFn = () => ({
geocentroid,
});

if (geohash && geohash.accessor) {
convertedData.meta.geohash = context.columns[geohash.accessor].meta;
Copy link
Member Author

Choose a reason for hiding this comment

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

keep the geohash column meta information, so it can be used to construct filters

@@ -126,6 +136,14 @@ export const createTileMapVisualization = ({ serviceSettings, $injector }) => {
return;
}

if (
!this._geoJsonFeatureCollectionAndMeta ||
Copy link
Member Author

Choose a reason for hiding this comment

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

when data is passed in and there are no results, we try to set the boundingBox

? zoomPrecision[this.vis.getUiState().get('mapZoom')]
: getPrecision(this._kibanaMap.getGeohashPrecision());

this.vis.eventsSubject.next(updateVarsObject);
Copy link
Member Author

Choose a reason for hiding this comment

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

emit an event to request to update bounds

@thomasneirynck thomasneirynck self-requested a review February 5, 2020 14:16
Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

Thanks, code review OK, tested the visualizations.

I think there might be a bug in the coordinate maps visualizations:

It seems modifying the "precision" slider does not actual update the map after clicking update

image

Steps:

  1. Create a coordinate map viz (be sure to press update)
  2. uncheck the "change precision on map zoom" switch
  3. change the precision slider
  4. click update -> the map does not change

Note that the map does update correctly, if you also change another setting (e.g. toggle one of the other switches and press update -> change OK).

@ppisljar
Copy link
Member Author

@elasticmachine merge upstream

@ppisljar
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/discover/feature_controls/discover_security·ts.discover feature controls security global discover all privileges allow saving via the saved query management component popover with no query loaded

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:07:17]         └-: discover
[00:07:17]           └-> "before all" hook
[00:07:17]           └-: feature controls
[00:07:17]             └-> "before all" hook
[00:07:17]             └-: security
[00:07:17]               └-> "before all" hook
[00:07:17]               └-> "before all" hook
[00:07:17]                 │ info [discover/feature_controls/security] Loading "mappings.json"
[00:07:17]                 │ info [discover/feature_controls/security] Loading "data.json"
[00:07:17]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] [.kibana_1/kwGg5keeSwaFCJH4VS_3DA] deleting index
[00:07:17]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] [.kibana_2/UQG3jjmdQYKfeHCnmMaBjg] deleting index
[00:07:17]                 │ info [discover/feature_controls/security] Deleted existing index [".kibana_2",".kibana_1"]
[00:07:17]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:07:17]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:07:17]                 │ info [discover/feature_controls/security] Created index ".kibana"
[00:07:17]                 │ debg [discover/feature_controls/security] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:07:17]                 │ info [discover/feature_controls/security] Indexed 3 docs into ".kibana"
[00:07:19]                 │ info Creating index .kibana_2.
[00:07:19]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:07:19]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] updating number_of_replicas to [0] for indices [.kibana_2]
[00:07:19]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:07:19]                 │ info Reindexing .kibana to .kibana_1
[00:07:19]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:07:19]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] updating number_of_replicas to [0] for indices [.kibana_1]
[00:07:19]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:07:19]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] 9880 finished with response BulkByScrollResponse[took=40.8ms,timed_out=false,sliceId=null,updated=0,created=3,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:07:19]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] [.kibana/5lJAtrCvTX6bsh8b7BmdYA] deleting index
[00:07:19]                 │ info Migrating .kibana_1 saved objects to .kibana_2
[00:07:19]                 │ debg Migrating saved objects index-pattern:logstash-*, config:6.0.0, query:okjpgs
[00:07:19]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] [.kibana_2/79WLFHEhTJCN6VEgG_-yeQ] update_mapping [_doc]
[00:07:19]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] [.kibana_2/79WLFHEhTJCN6VEgG_-yeQ] update_mapping [_doc]
[00:07:19]                 │ info Pointing alias .kibana to .kibana_2.
[00:07:19]                 │ info Finished in 749ms.
[00:07:19]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:07:20]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] [.kibana_2/79WLFHEhTJCN6VEgG_-yeQ] update_mapping [_doc]
[00:07:21]                 │ info [logstash_functional] Loading "mappings.json"
[00:07:21]                 │ info [logstash_functional] Loading "data.json.gz"
[00:07:21]                 │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:07:21]                 │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:07:21]                 │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:07:22]                 │ debg SecurityPage.forceLogout
[00:07:22]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:07:22]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:07:23]                 │ debg Redirecting to /logout to force the logout
[00:07:23]                 │ debg Waiting on the login form to appear
[00:07:23]                 │ debg Waiting up to 100000ms for login form...
[00:07:23]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:07:23]                 │ debg browser[INFO] http://localhost:6141/logout?_t=1581541022821 350 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:07:23]                 │
[00:07:23]                 │ debg browser[INFO] http://localhost:6141/bundles/app/logout/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:26]                 │ debg browser[INFO] http://localhost:6141/built_assets/dlls/vendors_1.bundle.dll.js 103:139970 "INFO: 2020-02-12T20:57:05Z
[00:07:26]                 │        Adding connection to http://localhost:6141/elasticsearch
[00:07:26]                 │
[00:07:26]                 │      "
[00:07:26]                 │ debg browser[INFO] http://localhost:6141/login?_t=1581541022821 350 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:07:26]                 │
[00:07:26]                 │ debg browser[INFO] http://localhost:6141/bundles/app/login/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:26]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:07:27]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:07:29]                 │ debg browser[INFO] http://localhost:6141/built_assets/dlls/vendors_1.bundle.dll.js 103:139970 "INFO: 2020-02-12T20:57:08Z
[00:07:29]                 │        Adding connection to http://localhost:6141/elasticsearch
[00:07:29]                 │
[00:07:29]                 │      "
[00:07:29]               └-: global discover all privileges
[00:07:29]                 └-> "before all" hook
[00:07:29]                 └-> "before all" hook
[00:07:29]                   │ debg creating role global_discover_all_role
[00:07:29]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] added role [global_discover_all_role]
[00:07:29]                   │ debg created role global_discover_all_role
[00:07:29]                   │ debg creating user global_discover_all_user
[00:07:29]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1581538739251618997] added user [global_discover_all_user]
[00:07:29]                   │ debg created user global_discover_all_user
[00:07:29]                   │ debg navigating to login url: http://localhost:6141/login
[00:07:29]                   │ debg Navigate to: http://localhost:6141/login
[00:07:30]                   │ debg ... sleep(700) start
[00:07:30]                   │ debg browser[INFO] http://localhost:6141/login?_t=1581541029514 350 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:07:30]                   │
[00:07:30]                   │ debg browser[INFO] http://localhost:6141/bundles/app/login/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:30]                   │ debg ... sleep(700) end
[00:07:30]                   │ debg returned from get, calling refresh
[00:07:30]                   │ debg browser[INFO] http://localhost:6141/login?_t=1581541029514 350 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:07:30]                   │
[00:07:30]                   │ debg browser[INFO] http://localhost:6141/bundles/app/login/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:30]                   │ debg currentUrl = http://localhost:6141/login
[00:07:30]                   │          appUrl = http://localhost:6141/login
[00:07:30]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:07:33]                   │ debg browser[INFO] http://localhost:6141/built_assets/dlls/vendors_1.bundle.dll.js 103:139970 "INFO: 2020-02-12T20:57:12Z
[00:07:33]                   │        Adding connection to http://localhost:6141/elasticsearch
[00:07:33]                   │
[00:07:33]                   │      "
[00:07:33]                   │ debg ... sleep(501) start
[00:07:33]                   │ debg ... sleep(501) end
[00:07:33]                   │ debg in navigateTo url = http://localhost:6141/login#/
[00:07:33]                   │ debg TestSubjects.exists(statusPageContainer)
[00:07:33]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:07:36]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:07:36]                   │ debg TestSubjects.setValue(loginUsername, global_discover_all_user)
[00:07:36]                   │ debg TestSubjects.click(loginUsername)
[00:07:36]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:07:36]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:07:37]                   │ debg TestSubjects.setValue(loginPassword, global_discover_all_user-password)
[00:07:37]                   │ debg TestSubjects.click(loginPassword)
[00:07:37]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:07:37]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:07:37]                   │ debg TestSubjects.click(loginSubmit)
[00:07:37]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:07:37]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:07:37]                   │ debg Waiting up to 20000ms for logout button visible...
[00:07:37]                   │ debg TestSubjects.exists(userMenuButton)
[00:07:37]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:07:40]                   │ debg browser[INFO] http://localhost:6141/app/kibana 350 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:07:40]                   │
[00:07:40]                   │ debg browser[INFO] http://localhost:6141/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:40]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:07:40]                   │ debg browser[INFO] http://localhost:6141/built_assets/dlls/vendors_1.bundle.dll.js 103:139970 "INFO: 2020-02-12T20:57:20Z
[00:07:40]                   │        Adding connection to http://localhost:6141/elasticsearch
[00:07:40]                   │
[00:07:40]                   │      "
[00:07:41]                   │ debg TestSubjects.exists(userMenuButton)
[00:07:41]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:07:42]                   │ debg TestSubjects.exists(userMenu)
[00:07:42]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:07:44]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:07:45]                   │ debg TestSubjects.click(userMenuButton)
[00:07:45]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:07:45]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:07:45]                   │ debg Waiting up to 20000ms for user menu opened...
[00:07:45]                   │ debg TestSubjects.exists(userMenu)
[00:07:45]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:07:45]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:07:45]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:07:45]                 └-> shows discover navlink
[00:07:45]                   └-> "before each" hook: global before each
[00:07:45]                   │ debg TestSubjects.find(navDrawer)
[00:07:45]                   │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:07:45]                   └- ✓ pass  (35ms) "discover feature controls security global discover all privileges shows discover navlink"
[00:07:45]                 └-> shows save button
[00:07:45]                   └-> "before each" hook: global before each
[00:07:45]                   │ debg navigating to discover url: http://localhost:6141/app/kibana#/discover
[00:07:45]                   │ debg Navigate to: http://localhost:6141/app/kibana#/discover
[00:07:45]                   │ debg ... sleep(700) start
[00:07:45]                   │ debg browser[INFO] http://localhost:6141/app/kibana?_t=1581541044969#/discover 350 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:07:45]                   │
[00:07:45]                   │ debg browser[INFO] http://localhost:6141/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:46]                   │ debg ... sleep(700) end
[00:07:46]                   │ debg returned from get, calling refresh
[00:07:46]                   │ debg browser[INFO] http://localhost:6141/app/kibana?_t=1581541044969#/discover 350 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:07:46]                   │
[00:07:46]                   │ debg browser[INFO] http://localhost:6141/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:07:46]                   │ debg currentUrl = http://localhost:6141/app/kibana#/discover
[00:07:46]                   │          appUrl = http://localhost:6141/app/kibana#/discover
[00:07:46]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:07:49]                   │ debg TestSubjects.find(kibanaChrome)
[00:07:49]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:07:49]                   │ debg browser[INFO] http://localhost:6141/built_assets/dlls/vendors_1.bundle.dll.js 103:139970 "INFO: 2020-02-12T20:57:28Z
[00:07:49]                   │        Adding connection to http://localhost:6141/elasticsearch
[00:07:49]                   │
[00:07:49]                   │      "
[00:07:49]                   │ debg ... sleep(501) start
[00:07:49]                   │ debg ... sleep(501) end
[00:07:49]                   │ debg in navigateTo url = http://localhost:6141/app/kibana#/discover?_g=()&_a=(columns:!(_source),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:07:49]                   │ debg --- retry.try error: URL changed, waiting for it to settle
[00:07:50]                   │ debg ... sleep(501) start
[00:07:51]                   │ debg ... sleep(501) end
[00:07:51]                   │ debg in navigateTo url = http://localhost:6141/app/kibana#/discover?_g=()&_a=(columns:!(_source),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:07:51]                   │ debg TestSubjects.exists(statusPageContainer)
[00:07:51]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:07:53]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:07:54]                   │ debg TestSubjects.exists(discoverSaveButton)
[00:07:54]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=20000
[00:07:54]                   └- ✓ pass  (8.7s) "discover feature controls security global discover all privileges shows save button"
[00:07:54]                 └-> doesn't show read-only badge
[00:07:54]                   └-> "before each" hook: global before each
[00:07:54]                   │ debg TestSubjects.missingOrFail(headerBadge)
[00:07:54]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="headerBadge"]') with timeout=2500
[00:07:54]                   └- ✓ pass  (561ms) "discover feature controls security global discover all privileges doesn't show read-only badge"
[00:07:54]                 └-> Permalinks shows create short-url button
[00:07:54]                   └-> "before each" hook: global before each
[00:07:54]                   │ debg openShareMenuItem title:Permalinks
[00:07:54]                   │ debg TestSubjects.exists(shareContextMenu)
[00:07:54]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="shareContextMenu"]') with timeout=2500
[00:07:57]                   │ debg --- retry.tryForTime error: [data-test-subj="shareContextMenu"] is not displayed
[00:07:57]                   │ debg TestSubjects.click(shareTopNavButton)
[00:07:57]                   │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:07:57]                   │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:07:57]                   │ debg Find.findByCssSelector('div.euiContextMenuPanel') with timeout=10000
[00:07:57]                   │ debg TestSubjects.click(sharePanel-Permalinks)
[00:07:57]                   │ debg Find.clickByCssSelector('[data-test-subj="sharePanel-Permalinks"]') with timeout=10000
[00:07:57]                   │ debg Find.findByCssSelector('[data-test-subj="sharePanel-Permalinks"]') with timeout=10000
[00:07:57]                   │ debg Find.waitForElementStale with timeout=10000
[00:07:58]                   │ debg TestSubjects.exists(createShortUrl)
[00:07:58]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="createShortUrl"]') with timeout=120000
[00:07:58]                   │ debg TestSubjects.click(shareTopNavButton)
[00:07:58]                   │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:07:58]                   │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:07:58]                   └- ✓ pass  (3.5s) "discover feature controls security global discover all privileges Permalinks shows create short-url button"
[00:07:58]                 └-> allow saving via the saved query management component popover with no query loaded
[00:07:58]                   └-> "before each" hook: global before each
[00:07:58]                   │ debg TestSubjects.exists(saved-query-management-popover)
[00:07:58]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="saved-query-management-popover"]') with timeout=2500
[00:08:00]                   │ debg --- retry.tryForTime error: [data-test-subj="saved-query-management-popover"] is not displayed
[00:08:01]                   │ debg TestSubjects.click(saved-query-management-popover-button)
[00:08:01]                   │ debg Find.clickByCssSelector('[data-test-subj="saved-query-management-popover-button"]') with timeout=10000
[00:08:01]                   │ debg Find.findByCssSelector('[data-test-subj="saved-query-management-popover-button"]') with timeout=10000
[00:08:01]                   │ debg TestSubjects.click(saved-query-management-save-button)
[00:08:01]                   │ debg Find.clickByCssSelector('[data-test-subj="saved-query-management-save-button"]') with timeout=10000
[00:08:01]                   │ debg Find.findByCssSelector('[data-test-subj="saved-query-management-save-button"]') with timeout=10000
[00:08:01]                   │ debg TestSubjects.exists(saveQueryForm)
[00:08:01]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="saveQueryForm"]') with timeout=120000
[00:08:03]                   │ debg --- retry.tryForTime error: [data-test-subj="saveQueryForm"] is not displayed
[00:08:06]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:10]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:13]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:16]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:19]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:22]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:25]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:28]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:31]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:34]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:37]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:40]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:43]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:46]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:49]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:52]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:55]                   │ debg --- retry.tryForTime failed again with the same message...
[00:08:58]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:01]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:04]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:07]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:10]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:13]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:16]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:19]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:22]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:25]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:29]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:32]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:35]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:38]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:41]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:44]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:47]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:50]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:53]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:56]                   │ debg --- retry.tryForTime failed again with the same message...
[00:09:59]                   │ debg --- retry.tryForTime failed again with the same message...
[00:10:02]                   │ debg --- retry.tryForTime failed again with the same message...
[00:10:02]                   │ debg --- retry.try error: expected testSubject(saveQueryForm) to exist
[00:10:03]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/discover feature controls security global discover all privileges allow saving via the saved query management component popover with no query loaded.png"
[00:10:03]                   │ info Current URL is: http://localhost:6141/app/kibana#/discover?_g=()&_a=(columns:!(_source),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:10:03]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/discover feature controls security global discover all privileges allow saving via the saved query management component popover with no query loaded.html
[00:10:03]                   └- ✖ fail: "discover feature controls security global discover all privileges allow saving via the saved query management component popover with no query loaded"
[00:10:03]                   │

Stack Trace

Error: retry.try timeout: Error: expected testSubject(saveQueryForm) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/kibana/test/functional/services/test_subjects.ts:60:15)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)

History

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

@ppisljar ppisljar merged commit 5f8959c into elastic:master Feb 12, 2020
ppisljar added a commit to ppisljar/kibana that referenced this pull request Feb 12, 2020
ppisljar added a commit that referenced this pull request Feb 13, 2020
mbondyra added a commit to mbondyra/kibana that referenced this pull request Feb 13, 2020
* master: (22 commits)
  Use log4j pattern syntax (elastic#57433)
  [ML] Categorization field example endpoint tests (elastic#57471)
  [Lens] Filter out pinned filters from saved object of Lens (elastic#57197)
  Lens client side shim cleanup (elastic#56976)
  [Maps] do not show border color for icon in legend when border width is zero (elastic#57501)
  refactors 'data-providers' tests (elastic#57474)
  add `absolute` option to `getUrlForApp` (elastic#57193)
  [Telemetry] Migrate public to NP (elastic#56285)
  address flaky test where instances might have different start… (elastic#57506)
  fix(NA): support legacy plugins path in plugins (elastic#57472)
  build immutable bundles for new platform plugins (elastic#53976)
  [SIEM] [Detection Engine] Reject if duplicate rule_id in request payload (elastic#57057)
  Add autocomplete="off" for input type="password" to appease the scanners (elastic#56922)
  Use default spaces suffix for signals index if spaces disabled (elastic#57244)
  [Alerting] Create alert design cleanup (elastic#56929)
  Management Api - add to migration guide (elastic#56892)
  fixing maps (elastic#56706)
  [Maps] Autocomplete for custom color palettes and custom icon palettes (elastic#56446)
  [Alerting] make actionGroup name's i18n-able (elastic#57404)
  fixed flaky test (elastic#57490)
  ...

# Conflicts:
#	src/legacy/core_plugins/telemetry/public/components/__snapshots__/telemetry_form.test.js.snap
#	src/plugins/telemetry/public/components/telemetry_management_section.tsx
@lukeelmers lukeelmers mentioned this pull request Feb 18, 2020
40 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants