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

[Fleet] Add loading spinner to page headers #79568

Merged
merged 2 commits into from
Oct 6, 2020

Conversation

jen-huang
Copy link
Contributor

Summary

Fixes #79449. Replaces Policy {id} with a loading spinner when agent policy details is being loaded. I found that the agent detail page had a similar issue, so applied the same to that page header.

@jen-huang jen-huang added bug Fixes for quality problems that affect the customer experience v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 Team:Fleet Team label for Observability Data Collection Fleet team labels Oct 5, 2020
@jen-huang jen-huang requested a review from a team October 5, 2020 21:00
@jen-huang jen-huang self-assigned this Oct 5, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@@ -97,8 +97,10 @@ export const AgentDetailsPage: React.FunctionComponent = () => {
<EuiFlexItem>
<EuiText>
<h1>
{typeof agentData?.item?.local_metadata?.host === 'object' &&
typeof agentData?.item?.local_metadata?.host?.hostname === 'string' ? (
{isLoading ? (
Copy link
Member

Choose a reason for hiding this comment

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

we use pollIntervalMs on the agent page so you should probably use isInitialRequest too to avoid the hostname to blink

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch! thanks, I've updated

@@ -114,8 +116,7 @@ export const AgentDetailsPage: React.FunctionComponent = () => {
</EuiFlexItem>
</EuiFlexGroup>
),
/* eslint-disable-next-line react-hooks/exhaustive-deps */
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/spaces_only/tests/alerting/execution_status·ts.alerting api integration spaces only Alerting executionStatus should be able to find over all the fields

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601938748041330408] [.kibana_1/QT-cDpPZRcycTvgHmwp85A] update_mapping [_doc]
[00:00:00]         └-: alerting api integration spaces only
[00:00:00]           └-> "before all" hook
[00:00:38]           └-: Alerting
[00:00:38]             └-> "before all" hook
[00:00:38]             └-> "before all" hook
[00:00:38]               │ debg creating space
[00:00:38]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601938748041330408] [.kibana_2/V2oQSo7wR22y2ohuatdp9w] update_mapping [_doc]
[00:00:39]               │ debg created space
[00:00:39]               │ debg creating space
[00:00:40]               │ debg created space
[00:02:35]             └-: executionStatus
[00:02:35]               └-> "before all" hook
[00:02:35]               └-> should be "pending" for newly created alert
[00:02:35]                 └-> "before each" hook: global before each
[00:02:36]                 └- ✓ pass  (1.1s) "alerting api integration spaces only Alerting executionStatus should be "pending" for newly created alert"
[00:02:36]               └-> should eventually be "ok" for no-op alert
[00:02:36]                 └-> "before each" hook: global before each
[00:02:36]                 │ proc [kibana]   log   [00:01:21.472] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:21.470Z","end":"2020-10-06T00:01:21.470Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"25a055b1-c0fc-4bed-8be5-b175b61f1021","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.noop:25a055b1-c0fc-4bed-8be5-b175b61f1021: 'abc'","@timestamp":"2020-10-06T00:01:21.470Z","ecs":{"version":"1.5.0"}}
[00:02:39]                 │ proc [kibana]   log   [00:01:24.476] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:24.475Z","end":"2020-10-06T00:01:24.475Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"59e2a62b-cf56-4c47-a58e-3400cda32518","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.noop:59e2a62b-cf56-4c47-a58e-3400cda32518: 'abc'","@timestamp":"2020-10-06T00:01:24.475Z","ecs":{"version":"1.5.0"}}
[00:02:39]                 └- ✓ pass  (3.6s) "alerting api integration spaces only Alerting executionStatus should eventually be "ok" for no-op alert"
[00:02:39]               └-> should eventually be "active" for firing alert
[00:02:39]                 └-> "before each" hook: global before each
[00:02:42]                 │ proc [kibana]   log   [00:01:27.484] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:27.480Z","end":"2020-10-06T00:01:27.480Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc'","@timestamp":"2020-10-06T00:01:27.480Z","ecs":{"version":"1.5.0"}}
[00:02:42]                 │ proc [kibana]   log   [00:01:27.485] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"new-instance"},"kibana":{"alerting":{"instance_id":"instance"},"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc' created new instance: 'instance'","@timestamp":"2020-10-06T00:01:27.481Z","ecs":{"version":"1.5.0"}}
[00:02:42]                 │ proc [kibana]   log   [00:01:27.486] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"active-instance"},"kibana":{"alerting":{"instance_id":"instance"},"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc' active instance: 'instance'","@timestamp":"2020-10-06T00:01:27.482Z","ecs":{"version":"1.5.0"}}
[00:02:42]                 │ proc [kibana]   log   [00:01:27.492] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:27.491Z","end":"2020-10-06T00:01:27.491Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"59e2a62b-cf56-4c47-a58e-3400cda32518","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.noop:59e2a62b-cf56-4c47-a58e-3400cda32518: 'abc'","@timestamp":"2020-10-06T00:01:27.491Z","ecs":{"version":"1.5.0"}}
[00:02:42]                 └- ✓ pass  (3.0s) "alerting api integration spaces only Alerting executionStatus should eventually be "active" for firing alert"
[00:02:42]               └-> should eventually be "error" for an error alert
[00:02:42]                 └-> "before each" hook: global before each
[00:02:45]                 │ proc [kibana]   log   [00:01:30.478] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:30.476Z","end":"2020-10-06T00:01:30.476Z","duration":0,"outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"6663904e-f63f-45c8-bf35-5a7e49659897","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert execution failure: test.throw:6663904e-f63f-45c8-bf35-5a7e49659897: 'abc'","error":{"message":"this alert is intended to fail"},"@timestamp":"2020-10-06T00:01:30.476Z","ecs":{"version":"1.5.0"}}
[00:02:45]                 │ proc [kibana]   log   [00:01:30.482] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:30.480Z","end":"2020-10-06T00:01:30.480Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc'","@timestamp":"2020-10-06T00:01:30.480Z","ecs":{"version":"1.5.0"}}
[00:02:45]                 │ proc [kibana]   log   [00:01:30.482] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"active-instance"},"kibana":{"alerting":{"instance_id":"instance"},"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc' active instance: 'instance'","@timestamp":"2020-10-06T00:01:30.480Z","ecs":{"version":"1.5.0"}}
[00:02:45]                 │ proc [kibana]   log   [00:01:30.490] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:30.488Z","end":"2020-10-06T00:01:30.488Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"59e2a62b-cf56-4c47-a58e-3400cda32518","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.noop:59e2a62b-cf56-4c47-a58e-3400cda32518: 'abc'","@timestamp":"2020-10-06T00:01:30.488Z","ecs":{"version":"1.5.0"}}
[00:02:45]                 └- ✓ pass  (3.0s) "alerting api integration spaces only Alerting executionStatus should eventually be "error" for an error alert"
[00:02:45]               └-> should eventually have error reason "execute" when appropriate
[00:02:45]                 └-> "before each" hook: global before each
[00:02:46]                 │ proc [kibana]   log   [00:01:31.382] [error][alerting][alerts][plugins][plugins] Executing Alert "6663904e-f63f-45c8-bf35-5a7e49659897" has resulted in Error: this alert is intended to fail
[00:02:48]                 │ proc [kibana]   log   [00:01:33.488] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:33.484Z","end":"2020-10-06T00:01:33.484Z","duration":0,"outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"6663904e-f63f-45c8-bf35-5a7e49659897","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert execution failure: test.throw:6663904e-f63f-45c8-bf35-5a7e49659897: 'abc'","error":{"message":"this alert is intended to fail"},"@timestamp":"2020-10-06T00:01:33.484Z","ecs":{"version":"1.5.0"}}
[00:02:48]                 │ proc [kibana]   log   [00:01:33.488] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:33.486Z","end":"2020-10-06T00:01:33.486Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"59e2a62b-cf56-4c47-a58e-3400cda32518","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.noop:59e2a62b-cf56-4c47-a58e-3400cda32518: 'abc'","@timestamp":"2020-10-06T00:01:33.486Z","ecs":{"version":"1.5.0"}}
[00:02:48]                 │ proc [kibana]   log   [00:01:33.492] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:33.491Z","end":"2020-10-06T00:01:33.491Z","duration":0,"outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"1a85eafb-bd62-4402-bd6e-438a080c1a07","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert execution failure: test.throw:1a85eafb-bd62-4402-bd6e-438a080c1a07: 'abc'","error":{"message":"this alert is intended to fail"},"@timestamp":"2020-10-06T00:01:33.491Z","ecs":{"version":"1.5.0"}}
[00:02:48]                 │ proc [kibana]   log   [00:01:33.500] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:33.498Z","end":"2020-10-06T00:01:33.498Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc'","@timestamp":"2020-10-06T00:01:33.498Z","ecs":{"version":"1.5.0"}}
[00:02:48]                 │ proc [kibana]   log   [00:01:33.501] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"active-instance"},"kibana":{"alerting":{"instance_id":"instance"},"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc' active instance: 'instance'","@timestamp":"2020-10-06T00:01:33.499Z","ecs":{"version":"1.5.0"}}
[00:02:48]                 └- ✓ pass  (3.0s) "alerting api integration spaces only Alerting executionStatus should eventually have error reason "execute" when appropriate"
[00:02:48]               └-> should eventually have error reason "unknown" when appropriate
[00:02:48]                 └-> "before each" hook: global before each
[00:02:49]                 │ proc [kibana]   log   [00:01:34.415] [error][alerting][alerts][plugins][plugins] Executing Alert "6663904e-f63f-45c8-bf35-5a7e49659897" has resulted in Error: this alert is intended to fail
[00:02:49]                 │ proc [kibana]   log   [00:01:34.418] [error][alerting][alerts][plugins][plugins] Executing Alert "1a85eafb-bd62-4402-bd6e-438a080c1a07" has resulted in Error: this alert is intended to fail
[00:02:51]                 │ proc [kibana]   log   [00:01:36.497] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:36.489Z","end":"2020-10-06T00:01:36.489Z","duration":0,"outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"6663904e-f63f-45c8-bf35-5a7e49659897","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert execution failure: test.throw:6663904e-f63f-45c8-bf35-5a7e49659897: 'abc'","error":{"message":"this alert is intended to fail"},"@timestamp":"2020-10-06T00:01:36.489Z","ecs":{"version":"1.5.0"}}
[00:02:51]                 │ proc [kibana]   log   [00:01:36.497] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:36.491Z","end":"2020-10-06T00:01:36.491Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"59e2a62b-cf56-4c47-a58e-3400cda32518","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.noop:59e2a62b-cf56-4c47-a58e-3400cda32518: 'abc'","@timestamp":"2020-10-06T00:01:36.491Z","ecs":{"version":"1.5.0"}}
[00:02:51]                 │ proc [kibana]   log   [00:01:36.498] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:36.493Z","end":"2020-10-06T00:01:36.493Z","duration":0,"outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"1a85eafb-bd62-4402-bd6e-438a080c1a07","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert execution failure: test.throw:1a85eafb-bd62-4402-bd6e-438a080c1a07: 'abc'","error":{"message":"this alert is intended to fail"},"@timestamp":"2020-10-06T00:01:36.493Z","ecs":{"version":"1.5.0"}}
[00:02:51]                 │ proc [kibana]   log   [00:01:36.498] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:36.495Z","end":"2020-10-06T00:01:36.495Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc'","@timestamp":"2020-10-06T00:01:36.495Z","ecs":{"version":"1.5.0"}}
[00:02:51]                 │ proc [kibana]   log   [00:01:36.498] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"active-instance"},"kibana":{"alerting":{"instance_id":"instance"},"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc' active instance: 'instance'","@timestamp":"2020-10-06T00:01:36.495Z","ecs":{"version":"1.5.0"}}
[00:02:51]                 │ proc [kibana]   log   [00:01:36.507] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:36.504Z","end":"2020-10-06T00:01:36.505Z","duration":1000000,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"03a1233d-3095-4961-b7a1-f6909c085456","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.validation:03a1233d-3095-4961-b7a1-f6909c085456: 'abc'","@timestamp":"2020-10-06T00:01:36.505Z","ecs":{"version":"1.5.0"}}
[00:02:52]                 │ proc [kibana]   log   [00:01:37.452] [error][alerting][alerts][plugins][plugins] Executing Alert "6663904e-f63f-45c8-bf35-5a7e49659897" has resulted in Error: this alert is intended to fail
[00:02:52]                 │ proc [kibana]   log   [00:01:37.454] [error][alerting][alerts][plugins][plugins] Executing Alert "1a85eafb-bd62-4402-bd6e-438a080c1a07" has resulted in Error: this alert is intended to fail
[00:02:54]                 │ proc [kibana]   log   [00:01:39.500] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:39.489Z","end":"2020-10-06T00:01:39.490Z","duration":1000000,"outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"1a85eafb-bd62-4402-bd6e-438a080c1a07","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert execution failure: test.throw:1a85eafb-bd62-4402-bd6e-438a080c1a07: 'abc'","error":{"message":"this alert is intended to fail"},"@timestamp":"2020-10-06T00:01:39.490Z","ecs":{"version":"1.5.0"}}
[00:02:54]                 │ proc [kibana]   log   [00:01:39.501] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:39.492Z","end":"2020-10-06T00:01:39.492Z","duration":0,"outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"6663904e-f63f-45c8-bf35-5a7e49659897","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert execution failure: test.throw:6663904e-f63f-45c8-bf35-5a7e49659897: 'abc'","error":{"message":"this alert is intended to fail"},"@timestamp":"2020-10-06T00:01:39.492Z","ecs":{"version":"1.5.0"}}
[00:02:54]                 │ proc [kibana]   log   [00:01:39.502] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:39.494Z","end":"2020-10-06T00:01:39.494Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc'","@timestamp":"2020-10-06T00:01:39.494Z","ecs":{"version":"1.5.0"}}
[00:02:54]                 │ proc [kibana]   log   [00:01:39.502] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"active-instance"},"kibana":{"alerting":{"instance_id":"instance"},"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc' active instance: 'instance'","@timestamp":"2020-10-06T00:01:39.495Z","ecs":{"version":"1.5.0"}}
[00:02:54]                 │ proc [kibana]   log   [00:01:39.503] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:39.498Z","end":"2020-10-06T00:01:39.498Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"59e2a62b-cf56-4c47-a58e-3400cda32518","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.noop:59e2a62b-cf56-4c47-a58e-3400cda32518: 'abc'","@timestamp":"2020-10-06T00:01:39.498Z","ecs":{"version":"1.5.0"}}
[00:02:54]                 └- ✓ pass  (5.6s) "alerting api integration spaces only Alerting executionStatus should eventually have error reason "unknown" when appropriate"
[00:02:54]               └-> should be able to find over all the fields
[00:02:54]                 └-> "before each" hook: global before each
[00:02:55]                 │ proc [kibana]   log   [00:01:40.477] [error][alerting][alerts][plugins][plugins] Executing Alert "03a1233d-3095-4961-b7a1-f6909c085456" has resulted in Error: params invalid: [param1]: expected value of type [string] but got [number]
[00:02:55]                 │ proc [kibana]   log   [00:01:40.478] [error][alerting][alerts][plugins][plugins] Executing Alert "1a85eafb-bd62-4402-bd6e-438a080c1a07" has resulted in Error: this alert is intended to fail
[00:02:55]                 │ proc [kibana]   log   [00:01:40.480] [error][alerting][alerts][plugins][plugins] Executing Alert "6663904e-f63f-45c8-bf35-5a7e49659897" has resulted in Error: this alert is intended to fail
[00:02:57]                 │ proc [kibana]   log   [00:01:42.519] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:42.502Z","end":"2020-10-06T00:01:42.502Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc'","@timestamp":"2020-10-06T00:01:42.502Z","ecs":{"version":"1.5.0"}}
[00:02:57]                 │ proc [kibana]   log   [00:01:42.520] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"active-instance"},"kibana":{"alerting":{"instance_id":"instance"},"saved_objects":[{"rel":"primary","type":"alert","id":"0eb948e6-ae8b-41b1-98b8-665318536c1b","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"test.patternFiring:0eb948e6-ae8b-41b1-98b8-665318536c1b: 'abc' active instance: 'instance'","@timestamp":"2020-10-06T00:01:42.503Z","ecs":{"version":"1.5.0"}}
[00:02:57]                 │ proc [kibana]   log   [00:01:42.520] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:42.516Z","end":"2020-10-06T00:01:42.516Z","duration":0,"outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"6663904e-f63f-45c8-bf35-5a7e49659897","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert execution failure: test.throw:6663904e-f63f-45c8-bf35-5a7e49659897: 'abc'","error":{"message":"this alert is intended to fail"},"@timestamp":"2020-10-06T00:01:42.516Z","ecs":{"version":"1.5.0"}}
[00:02:57]                 │ proc [kibana]   log   [00:01:42.521] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:42.518Z","end":"2020-10-06T00:01:42.518Z","duration":0,"outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"be5b1d30-e811-42be-a5f3-65854f43d99f","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert execution failure: test.throw:be5b1d30-e811-42be-a5f3-65854f43d99f: 'abc'","error":{"message":"this alert is intended to fail"},"@timestamp":"2020-10-06T00:01:42.518Z","ecs":{"version":"1.5.0"}}
[00:02:57]                 │ proc [kibana]   log   [00:01:42.527] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:42.524Z","end":"2020-10-06T00:01:42.524Z","duration":0,"outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"1a85eafb-bd62-4402-bd6e-438a080c1a07","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert execution failure: test.throw:1a85eafb-bd62-4402-bd6e-438a080c1a07: 'abc'","error":{"message":"this alert is intended to fail"},"@timestamp":"2020-10-06T00:01:42.524Z","ecs":{"version":"1.5.0"}}
[00:02:57]                 │ proc [kibana]   log   [00:01:42.543] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:42.539Z","end":"2020-10-06T00:01:42.539Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"59e2a62b-cf56-4c47-a58e-3400cda32518","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.noop:59e2a62b-cf56-4c47-a58e-3400cda32518: 'abc'","@timestamp":"2020-10-06T00:01:42.539Z","ecs":{"version":"1.5.0"}}
[00:02:57]                 │ proc [kibana]   log   [00:01:42.543] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-10-06T00:01:42.541Z","end":"2020-10-06T00:01:42.541Z","duration":0,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"ff3dd4b5-8c83-44a0-b905-07153c902862","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.noop:ff3dd4b5-8c83-44a0-b905-07153c902862: 'abc'","@timestamp":"2020-10-06T00:01:42.541Z","ecs":{"version":"1.5.0"}}
[00:02:58]                 └- ✖ fail: alerting api integration spaces only Alerting executionStatus should be able to find over all the fields
[00:02:58]                 │      TypeError: Cannot destructure property `executionStatus` of 'undefined' or 'null'.
[00:02:58]                 │       at waitForFindStatus (test/alerting_api_integration/spaces_only/tests/alerting/execution_status.ts:290:52)
[00:02:58]                 │ 
[00:02:58]                 │ 

Stack Trace

TypeError: Cannot destructure property `executionStatus` of 'undefined' or 'null'.
    at waitForFindStatus (test/alerting_api_integration/spaces_only/tests/alerting/execution_status.ts:290:52)

Metrics [docs]

async chunks size

id before after diff
ingestManager 1.1MB 1.1MB +502.0B

History

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

@jen-huang jen-huang merged commit e451a4d into elastic:master Oct 6, 2020
@jen-huang jen-huang deleted the ingest/fix/79449 branch October 6, 2020 01:52
jen-huang added a commit that referenced this pull request Oct 6, 2020
* Add loading spinner to page headers

* Avoid blinking
gmmorris added a commit to gmmorris/kibana that referenced this pull request Oct 6, 2020
* master: (85 commits)
  Refactor attribute service (elastic#78414)
  [APM] Add default message to alerts. (elastic#78930)
  [Discover] Modify columns and sort when switching index pattern (elastic#74336)
  Document ts project references setup (elastic#78586)
  build all ts refs in single kbn:bootstrap (elastic#79438)
  [TSVB] Allow string fields on value count aggregation (elastic#79267)
  [SECURITY SOLUTION] Investigate EQL signal in timeline (elastic#79049)
  [Fleet] Add loading spinner to page headers (elastic#79568)
  [Security Solution][Resolver] Resolver query panel load more (elastic#79160)
  Add type row to monitor detail page. (elastic#79556)
  Remove license refresh from setup (elastic#79518)
  [docker] add reporting fonts (elastic#74806)
  [SECURITY_SOLUTION][ENDPOINT] Add info about trusted apps to the page subtitle + create flyout (elastic#79558)
  Trim Hash value before validating it (elastic#79545)
  Warn users when security is not configured (elastic#78545)
  update copy styling (elastic#79313)
  Update dependency @elastic/charts to v23.1.1 (elastic#78459)
  Introduce geo-threshold alerts (elastic#76285)
  elastic#76920 Show base breadcrumb when there is an error booting the app (elastic#79571)
  remove react-intl from kibana and keep it inside only i18n package (elastic#78956)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Ingest Manager] 'Policy id' is displayed instead of Policy name, while data is being loaded.
5 participants