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

[Maps] Support geometry-collection #87867

Merged
merged 3 commits into from Jan 12, 2021

Conversation

thomasneirynck
Copy link
Contributor

@thomasneirynck thomasneirynck commented Jan 11, 2021

Summary

Closes #87578

This creates a new feature for each constituent in the collection. This is necessary so the split between how points and polygon/lines are handled in Maps remains preserved (e.g. wrt. point-icon labeling or outline/fill styling). This also will label each constituent geometry separately.

To test:

In dev-tools:

PUT /example
{
  "mappings": {
    "properties": {
      "location": {
        "type": "geo_shape"
      }
    }
  }
}

POST /example/_doc
{
  "location" : {
    "type": "geometrycollection",
    "geometries": [
      {
        "type": "point",
        "coordinates": [100.0, 0.0]
      },
      {
        "type": "linestring",
        "coordinates": [ [101.0, 0.0], [102.0, 1.0] ]
      },
         {
        "type": "polygon",
        "coordinates":[ [ [101.0, 0.0], [102.0, 1.0], [103.0, 1.0], [101.0, 0.0]]]
      }
    ]
  }
}

Then create an index pattern and add as layer:

image

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@thomasneirynck thomasneirynck added [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.12.0 enhancement New value added to drive a business result labels Jan 11, 2021
@thomasneirynck thomasneirynck changed the title init [Maps] Support geometry-collection Jan 11, 2021
@thomasneirynck thomasneirynck marked this pull request as ready for review January 11, 2021 23:23
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@thomasneirynck thomasneirynck added release_note:enhancement and removed enhancement New value added to drive a business result labels Jan 11, 2021
@nreese
Copy link
Contributor

nreese commented Jan 11, 2021

How does this PR work in conjunction with issue #75894? Should #75894 be closed or should this PR get geometry collections working without breaking down into individual features?

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

LGTM
code review

@thomasneirynck thomasneirynck merged commit d321950 into elastic:master Jan 12, 2021
thomasneirynck added a commit to thomasneirynck/kibana that referenced this pull request Jan 12, 2021
@florinvirdol
Copy link

florinvirdol commented Jan 15, 2021

Hi @thomasneirynck! Great work!
The other days i was having the same issues, being unable to display GeometryCollection objects into Kibana Maps.

Will this be fixed in v7.12? If yes, when will this released?

I saw here the last release was v7.10.2.

Thank you very much!

@thomasneirynck
Copy link
Contributor Author

@florinvirdol yes, this will be scheduled for v7.12. There's no specific release date for this at this point.

And you're right, before that there will be a release of v7.11 :)

@kibanamachine
Copy link
Contributor

kibanamachine commented Jan 15, 2021

💔 Build Failed

Failed CI Steps


Test Failures

X-Pack Detection Engine API Integration Tests.x-pack/test/detection_engine_api_integration/security_and_spaces/tests/add_actions·ts.detection engine api security and spaces enabled add_actions adding actions should be able to create a new webhook action and attach it to a rule

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: detection engine api security and spaces enabled
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: add_actions
[00:00:00]             └-> "before all" hook
[00:00:00]             └-: adding actions
[00:00:00]               └-> "before all" hook
[00:00:00]               └-> should be able to create a new webhook action and attach it to a rule
[00:00:00]                 └-> "before each" hook: global before each
[00:00:00]                 └-> "before each" hook
[00:00:00]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] adding index lifecycle policy [.siem-signals-default-migration-cleanup]
[00:00:00]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] adding index lifecycle policy [.siem-signals-default]
[00:00:00]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:00:00]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:00:00]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:00:00]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.siem-signals-default-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [.siem-signals-default]
[00:00:00]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.siem-signals-default-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [.siem-signals-default]
[00:00:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] [.kibana_1/vLmgQr2sRfigVgQjBOFnRQ] update_mapping [_doc]
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] [.ds-ilm-history-5-2021.01.15-000001] creating index, cause [initialize_data_stream], templates [ilm-history], shards [1]/[0]
[00:00:00]                 │ info [o.e.c.m.MetadataCreateDataStreamService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] adding data stream [ilm-history-5] with write index [.ds-ilm-history-5-2021.01.15-000001] and backing indices []
[00:00:00]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.ds-ilm-history-5-2021.01.15-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ilm-history-ilm-policy]
[00:00:01]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.ds-ilm-history-5-2021.01.15-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [ilm-history-ilm-policy]
[00:00:01]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.ds-ilm-history-5-2021.01.15-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [ilm-history-ilm-policy]
[00:00:03]                 └- ✖ fail: detection engine api security and spaces enabled add_actions adding actions should be able to create a new webhook action and attach it to a rule
[00:00:03]                 │      Error: expected 200 "OK", got 400 "Bad Request"
[00:00:03]                 │       at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
[00:00:03]                 │       at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
[00:00:03]                 │       at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
[00:00:03]                 │       at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
[00:00:03]                 │       at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
[00:00:03]                 │       at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
[00:00:03]                 │       at /dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
[00:00:03]                 │       at IncomingMessage.<anonymous> (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:00:03]                 │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:00:03]                 │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:00:03]                 │ 
[00:00:03]                 │ 

Stack Trace

Error: expected 200 "OK", got 400 "Bad Request"
    at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
    at /dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
    at IncomingMessage.<anonymous> (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

X-Pack Detection Engine API Integration Tests.x-pack/test/detection_engine_api_integration/security_and_spaces/tests/add_actions·ts.detection engine api security and spaces enabled add_actions adding actions should be able to create a new webhook action and attach it to a rule

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: detection engine api security and spaces enabled
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: add_actions
[00:00:00]             └-> "before all" hook
[00:00:00]             └-: adding actions
[00:00:00]               └-> "before all" hook
[00:00:00]               └-> should be able to create a new webhook action and attach it to a rule
[00:00:00]                 └-> "before each" hook: global before each
[00:00:00]                 └-> "before each" hook
[00:00:00]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] adding index lifecycle policy [.siem-signals-default-migration-cleanup]
[00:00:00]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] adding index lifecycle policy [.siem-signals-default]
[00:00:00]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:00:00]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] [.ds-ilm-history-5-2021.01.15-000001] creating index, cause [initialize_data_stream], templates [ilm-history], shards [1]/[0]
[00:00:00]                   │ info [o.e.c.m.MetadataCreateDataStreamService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] adding data stream [ilm-history-5] with write index [.ds-ilm-history-5-2021.01.15-000001] and backing indices []
[00:00:00]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:00:00]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.ds-ilm-history-5-2021.01.15-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ilm-history-ilm-policy]
[00:00:00]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:00:00]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.ds-ilm-history-5-2021.01.15-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [ilm-history-ilm-policy]
[00:00:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] [.kibana_1/m0fxBwk5S7aY7Wm42tb8rw] update_mapping [_doc]
[00:00:01]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.siem-signals-default-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [.siem-signals-default]
[00:00:01]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.ds-ilm-history-5-2021.01.15-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [ilm-history-ilm-policy]
[00:00:01]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] moving index [.siem-signals-default-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [.siem-signals-default]
[00:00:04]                 └- ✖ fail: detection engine api security and spaces enabled add_actions adding actions should be able to create a new webhook action and attach it to a rule
[00:00:04]                 │      Error: expected 200 "OK", got 400 "Bad Request"
[00:00:04]                 │       at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
[00:00:04]                 │       at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
[00:00:04]                 │       at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
[00:00:04]                 │       at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
[00:00:04]                 │       at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
[00:00:04]                 │       at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
[00:00:04]                 │       at /dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
[00:00:04]                 │       at IncomingMessage.<anonymous> (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:00:04]                 │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:00:04]                 │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:00:04]                 │ 
[00:00:04]                 │ 

Stack Trace

Error: expected 200 "OK", got 400 "Bad Request"
    at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
    at /dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
    at IncomingMessage.<anonymous> (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/home_page·ts.Actions and Triggers app Home page Alerts tab navigates to an alert details page

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Actions and Triggers app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: Home page
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> "before all" hook
[00:00:00]               │ debg navigating to triggersActions url: http://localhost:61161/app/management/insightsAndAlerting/triggersActions
[00:00:00]               │ debg navigate to: http://localhost:61161/app/management/insightsAndAlerting/triggersActions
[00:00:00]               │ debg browser[INFO] http://localhost:61161/login?next=%2Fapp%2Fmanagement%2FinsightsAndAlerting%2FtriggersActions%3F_t%3D1610730091694 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:00]               │
[00:00:00]               │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:00]               │ debg ... sleep(700) start
[00:00:00]               │ debg ... sleep(700) end
[00:00:00]               │ debg returned from get, calling refresh
[00:00:01]               │ debg browser[INFO] http://localhost:61161/login?next=%2Fapp%2Fmanagement%2FinsightsAndAlerting%2FtriggersActions%3F_t%3D1610730091694 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:01]               │
[00:00:01]               │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:01]               │ debg currentUrl = http://localhost:61161/login?next=%2Fapp%2Fmanagement%2FinsightsAndAlerting%2FtriggersActions%3F_t%3D1610730091694
[00:00:01]               │          appUrl = http://localhost:61161/app/management/insightsAndAlerting/triggersActions
[00:00:01]               │ debg TestSubjects.find(kibanaChrome)
[00:00:01]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:02]               │ERROR browser[SEVERE] http://localhost:61161/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:02]               │ debg browser[INFO] http://localhost:61161/39441/bundles/core/core.entry.js 12:195912 "Detected an unhandled Promise rejection.
[00:00:02]               │      Error: Unauthorized"
[00:00:02]               │ERROR browser[SEVERE] http://localhost:61161/39441/bundles/core/core.entry.js 5:3002 
[00:00:02]               │ debg Found login page
[00:00:02]               │ debg TestSubjects.setValue(loginUsername, test_user)
[00:00:02]               │ debg TestSubjects.click(loginUsername)
[00:00:02]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:02]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:02]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:00:02]               │ debg TestSubjects.click(loginPassword)
[00:00:02]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:02]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:02]               │ debg TestSubjects.click(loginSubmit)
[00:00:02]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:02]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:03]               │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:00:03]               │ proc [kibana]   log   [17:01:34.740] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:00:03]               │ debg browser[INFO] http://localhost:61161/app/management/insightsAndAlerting/triggersActions?_t=1610730091694 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:03]               │
[00:00:03]               │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:03]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:05]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:00:06]               │ debg browser[INFO] http://localhost:61161/app/management/insightsAndAlerting/triggersActions?_t=1610730097485 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:06]               │
[00:00:06]               │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:06]               │ debg Finished login process currentUrl = http://localhost:61161/app/management/insightsAndAlerting/triggersActions
[00:00:06]               │ debg ... sleep(501) start
[00:00:07]               │ debg ... sleep(501) end
[00:00:07]               │ debg in navigateTo url = http://localhost:61161/app/management/insightsAndAlerting/triggersActions/alerts
[00:00:07]               │ debg --- retry.try error: URL changed, waiting for it to settle
[00:00:07]               │ debg ... sleep(501) start
[00:00:08]               │ debg ... sleep(501) end
[00:00:08]               │ debg in navigateTo url = http://localhost:61161/app/management/insightsAndAlerting/triggersActions/alerts
[00:00:08]               │ debg TestSubjects.exists(statusPageContainer)
[00:00:08]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:10]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:11]             └-> Loads the app
[00:00:11]               └-> "before each" hook: global before each
[00:00:11]               │ debg Checking for section heading to say Triggers and Actions.
[00:00:11]               │ debg TestSubjects.getVisibleText(appTitle)
[00:00:11]               │ debg TestSubjects.find(appTitle)
[00:00:11]               │ debg Find.findByCssSelector('[data-test-subj="appTitle"]') with timeout=10000
[00:00:11]               └- ✓ pass  (29ms) "Actions and Triggers app Home page Loads the app"
[00:00:11]             └-: Connectors tab
[00:00:11]               └-> "before all" hook
[00:00:12]             └-: Alerts tab
[00:00:12]               └-> "before all" hook
[00:00:12]               └-> renders the alerts tab
[00:00:12]                 └-> "before each" hook: global before each
[00:00:12]                 │ debg TestSubjects.click(alertsTab)
[00:00:12]                 │ debg Find.clickByCssSelector('[data-test-subj="alertsTab"]') with timeout=10000
[00:00:12]                 │ debg Find.findByCssSelector('[data-test-subj="alertsTab"]') with timeout=10000
[00:00:12]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:12]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:12]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:14]                 │ERROR browser[SEVERE] http://localhost:61161/api/alerts/_find?page=1&per_page=10&default_search_operator=AND&sort_field=name.keyword&sort_order=asc - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:00:14]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:00:14]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:14]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:14]                 │ debg TestSubjects.exists(alertsList)
[00:00:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="alertsList"]') with timeout=120000
[00:00:14]                 └- ✓ pass  (2.1s) "Actions and Triggers app Home page Alerts tab renders the alerts tab"
[00:00:14]               └-> navigates to an alert details page
[00:00:14]                 └-> "before each" hook: global before each
[00:00:14]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] [.kibana_1/JB3L8Si-S4eRtm6wFZApDg] update_mapping [_doc]
[00:00:15]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1610725633408295039] [.kibana_1/JB3L8Si-S4eRtm6wFZApDg] update_mapping [_doc]
[00:00:17]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:17]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:17]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:18]                 │ debg browser[INFO] http://localhost:61161/app/management/insightsAndAlerting/triggersActions/alerts 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:18]                 │
[00:00:18]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:18]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:00:19]                 │ERROR browser[SEVERE] http://localhost:61161/api/alerts/_find?page=1&per_page=10&default_search_operator=AND&sort_field=name.keyword&sort_order=asc - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:00:19]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:19]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:19]                 │ debg TestSubjects.exists(alertsList)
[00:00:19]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="alertsList"]') with timeout=120000
[00:00:19]                 │ debg TestSubjects.find(alertSearchField)
[00:00:19]                 │ debg Find.findByCssSelector('[data-test-subj="alertSearchField"]') with timeout=10000
[00:00:29]                 │ info Taking screenshot "/dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/screenshots/failure/Actions and Triggers app Home page Alerts tab navigates to an alert details page.png"
[00:00:29]                 │ info Current URL is: http://localhost:61161/app/management/insightsAndAlerting/triggersActions/alerts
[00:00:29]                 │ info Saving page source to: /dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/failure_debug/html/Actions and Triggers app Home page Alerts tab navigates to an alert details page.html
[00:00:29]                 └- ✖ fail: Actions and Triggers app Home page Alerts tab navigates to an alert details page
[00:00:29]                 │      TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="alertSearchField"])
[00:00:29]                 │ Wait timed out after 10008ms
[00:00:29]                 │       at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:00:29]                 │       at runMicrotasks (<anonymous>)
[00:00:29]                 │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:00:29]                 │ 
[00:00:29]                 │ 

Stack Trace

TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="alertSearchField"])
Wait timed out after 10008ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  remoteStacktrace: ''
}

and 4 more failures, only showing the first 3.

Metrics [docs]

Async chunks

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

id before after diff
maps 2.9MB 2.9MB +658.0B

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Maps] Not drawing shapes when contained within a GeometryCollection
5 participants