Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] adds the AlertDetails page (#55671) #56598

Merged
merged 1 commit into from
Feb 3, 2020

Conversation

gmmorris
Copy link
Contributor

@gmmorris gmmorris commented Feb 3, 2020

Backports the following commits to 7.x:

This PR adds an Alerts Details page, linked from the Alerts List.

It includes:
Header containing details about the Alert.
Quick Enable / Mute buttons for the Alert
Disabled buttons to the _Edit Alert+ flyout (waiting on elastic#51545), View in App (waiting on elastic#56298) and Activity Log (waiting on elastic#51548)
@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_with_es_ssl/apps/triggers_actions_ui/connectors·ts.Actions and Triggers app Connectors should create a connector

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:29]           └-: Connectors
[00:00:29]             └-> "before all" hook
[00:00:29]             └-> "before all" hook
[00:00:29]               │ debg navigating to triggersActions url: http://localhost:6141/app/kibana#/management/kibana/triggersActions
[00:00:29]               │ debg Navigate to: http://localhost:6141/app/kibana#/management/kibana/triggersActions
[00:00:29]               │ debg ... sleep(700) start
[00:00:29]               │ debg browser[INFO] http://localhost:6141/app/kibana?_t=1580732501118#/management/kibana/triggersActions 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:00:29]               │
[00:00:29]               │ 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:00:30]               │ debg ... sleep(700) end
[00:00:30]               │ debg returned from get, calling refresh
[00:00:30]               │ debg browser[INFO] http://localhost:6141/app/kibana?_t=1580732501118#/management/kibana/triggersActions 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:00:30]               │
[00:00:30]               │ 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:00:30]               │ debg currentUrl = http://localhost:6141/app/kibana#/management/kibana/triggersActions
[00:00:30]               │          appUrl = http://localhost:6141/app/kibana#/management/kibana/triggersActions
[00:00:30]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:33]               │ debg TestSubjects.find(kibanaChrome)
[00:00:33]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:33]               │ debg browser[INFO] http://localhost:6141/built_assets/dlls/vendors_3.bundle.dll.js 516:138197 "INFO: 2020-02-03T12:21:43Z
[00:00:33]               │        Adding connection to http://localhost:6141/elasticsearch
[00:00:33]               │
[00:00:33]               │      "
[00:00:33]               │ debg ... sleep(501) start
[00:00:34]               │ debg ... sleep(501) end
[00:00:34]               │ debg in navigateTo url = http://localhost:6141/app/kibana#/management/kibana/triggersActions/alerts
[00:00:34]               │ debg TestSubjects.exists(statusPageContainer)
[00:00:34]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:36]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:37]               │ debg TestSubjects.click(connectorsTab)
[00:00:37]               │ debg Find.clickByCssSelector('[data-test-subj="connectorsTab"]') with timeout=10000
[00:00:37]               │ debg Find.findByCssSelector('[data-test-subj="connectorsTab"]') with timeout=10000
[00:00:37]             └-> should create a connector
[00:00:37]               └-> "before each" hook: global before each
[00:00:37]               │ debg Find.findByCssSelector('[data-test-subj="createActionButton"],[data-test-subj="createFirstActionButton"]') with timeout=10000
[00:00:37]               │ debg TestSubjects.click(.server-log-card)
[00:00:37]               │ debg Find.clickByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:00:37]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:00:47]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:00:47]               │      Wait timed out after 10009ms
[00:00:48]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:00:58]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:00:58]               │      Wait timed out after 10040ms
[00:00:58]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:01:08]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:01:08]               │      Wait timed out after 10017ms
[00:01:09]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:01:19]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:01:19]               │      Wait timed out after 10008ms
[00:01:19]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:01:29]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:01:29]               │      Wait timed out after 10050ms
[00:01:30]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:01:40]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:01:40]               │      Wait timed out after 10031ms
[00:01:40]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:01:50]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:01:50]               │      Wait timed out after 10042ms
[00:01:51]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:02:01]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:02:01]               │      Wait timed out after 10047ms
[00:02:01]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:02:11]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:02:11]               │      Wait timed out after 10045ms
[00:02:12]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:02:22]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:02:22]               │      Wait timed out after 10033ms
[00:02:22]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:02:32]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:02:32]               │      Wait timed out after 10008ms
[00:02:33]               │ debg Find.findByCssSelector('[data-test-subj=".server-log-card"]') with timeout=10000
[00:02:43]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
[00:02:43]               │      Wait timed out after 10045ms
[00:02:43]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Actions and Triggers app Connectors should create a connector.png"
[00:02:44]               │ info Current URL is: http://localhost:6141/app/kibana#/management/kibana/triggersActions/connectors
[00:02:44]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Actions and Triggers app Connectors should create a connector.html
[00:02:44]               └- ✖ fail: "Actions and Triggers app Connectors should create a connector"
[00:02:44]               │

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj=".server-log-card"])
Wait timed out after 10045ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:841:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    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)

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

@gmmorris gmmorris merged commit 755c36f into elastic:7.x Feb 3, 2020
@gmmorris gmmorris deleted the backport/7.x/pr-55671 branch February 3, 2020 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants