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

[Security Solution][Trusted Apps] New ArtifactEntryCard and refactor of Trusted Apps list to use it #111051

Merged

Conversation

paul-tavares
Copy link
Contributor

@paul-tavares paul-tavares commented Sep 2, 2021

Summary

  • New ArtifactEntryCard component for displaying artifacts (used only with Trusted Apps as of this PR)
  • Refactored Trusted Apps to use new Artifact Card
  • Refactored Trusted apps dev test data loader and moved Trusted Apps generator out
  • Changed setupFleetForEndpoints() data loader to return the packages that were installed
  • FormattedRelativePreferenceDate common component now allows for override of date format
  • New ActionsContextMenu component for displaying action menus behind an Icon button (lifted from Endpoint list along with ContextMenuWithRouterSupport. Will refactor Endpoint list at a later time to use it)
  • Bug fix in PaginatedContent that was causing the pagination data to be adjusted while component was still loading

olm-695-trusted-apps-new-artifact-card

Checklist

NOTE: Additional tests will be implemented for the new ArtifatEntryCard in a subsequent PR so that this is not held up (this component is a dependency for other tasks around Policy details view and support for Trusted apps by policy)

…nents + new ActionsContextMenu component + add context menu to card
@paul-tavares paul-tavares added release_note:enhancement v8.0.0 Team:Defend Workflows “EDR Workflows” sub-team of Security Solution auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 labels Sep 2, 2021
@paul-tavares paul-tavares self-assigned this Sep 2, 2021
@paul-tavares paul-tavares marked this pull request as ready for review September 8, 2021 20:00
@paul-tavares paul-tavares requested review from a team as code owners September 8, 2021 20:00
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt)

`;

export interface ArtifactEntryCardProps extends CommonProps {
item: AnyArtifact;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Although this component accepts either an ExceptionListItem (also used by Event Filters) or Trusted app item, the entire component still needs some work to be able to truly support exceptions (ex. criteria conditions and per-policy defintions)

}
`;

export interface ArtifactEntryCardProps extends CommonProps {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FYI: when you set the data-test-subj that value is used through out the sub-components as the prefix 🎉

dataTestSubj: 'policyDetailsBackLink',
}}
/>
<BackToExternalAppButton {...backLinkOptions} data-test-subj="policyDetailsBackLink" />
Copy link
Contributor Author

@paul-tavares paul-tavares Sep 8, 2021

Choose a reason for hiding this comment

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

HeaderLinkBack (prior component) does not really play well with our route paths that are generated out of the routing.ts module because it does support a pageId of the top-level security app, so I replaced it with the one we had in our common components.

Copy link
Contributor

@dasansol92 dasansol92 left a comment

Choose a reason for hiding this comment

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

Left few comments but it looks awesome! This new artifacts card component and his subcomponents will allow us to do a bunch of amazing things!! 🔥

As a suggestion, I think this pr could be split in smaller ones, it's a bit hard to review a 46 files pr (I'm the first one doing this kind of big pr's...). Maybe a first pr with the artifacts card and subcomponents, then the changes and refactors and then the last one with the change in the trusted apps grid to use the new cards. Thoughts? 😄

</EuiFlexItem>
<EuiFlexItem className="eui-textTruncate" data-test-subj={getTestId('value')}>
<TextValueDisplay bold>
<FormattedRelativePreferenceDate value={date} dateFormat="M/D/YYYY" />
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering about this. Should we use date location instead of enforce this format?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I took a note on this to talk to Bonnie about it. The format (I believe) does get adjusted for countries where the day comes before the month. Its just that in the UX design mocks she does not want the long date + time to be displayed - only the short date.

updated_at,
updated_by,
description,
entries: (entries as unknown) as ArtifactInfo['entries'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to do something special for nested conditions? I know this is not needed on this iteration, just curious

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not yet. that is part of the work that will be needed once we work on adding this to Event Filters (and possibly exceptions).

useEffect(() => {
if (pageCount > 0 && pageCount < (pagination?.pageIndex || 0) + 1) {
if (!loading && pageCount > 0 && pageCount < (pagination?.pageIndex || 0) + 1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -226,6 +231,18 @@ export const listOfPolicies: (
return isLoadedResourceState(policies) ? policies.data.items : [];
});

export const mapOfPoliciesById: (
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe starting this selector with get -> getMapOfPoliciesById

>['onChange'] = useTrustedAppsNavigateCallback(({ pageIndex, pageSize }) => ({
page_index: pageIndex,
page_size: pageSize,
}));

const handleArtifactCardProps = useMemo(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is going to return a function that needs to be memoized, should it be useCallback instead of useMemo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I use useCallback then I will not be able to keep private state - below, cachedCardProps is a private scooped object that the memoized function uses. That was the only reason I used useMemo()

@paul-tavares
Copy link
Contributor Author

@dasansol92 yeah, sorry about the big PR. I should have kept it smaller and created (as you suggest) smaller PRs for the refactoring. It might take me a bit of time to split this up now just because the card itself also uses some of the components that were refactored out of Endpoint list. Do you (others) rather have this be shrunken down?

Copy link
Contributor

@dasansol92 dasansol92 left a comment

Choose a reason for hiding this comment

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

LGTM 🔥 🚢

Copy link
Member

@joeypoon joeypoon left a comment

Choose a reason for hiding this comment

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

going to trust you and David with the context on this one. nothing to complain about with the code though 🙆‍♂️ 🚢 .

@paul-tavares paul-tavares enabled auto-merge (squash) September 9, 2021 22:40
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/spaces_only/tests/actions/enqueue·ts.alerting api integration spaces only Actions enqueue should never leaved a failed task, even if max attempts is reached

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: alerting api integration spaces only
[00:00:00]           └-> "before all" hook in "alerting api integration spaces only"
[00:00:00]           └-: Actions
[00:00:00]             └-> "before all" hook in "Actions"
[00:00:00]             └-> "before all" hook in "Actions"
[00:00:00]               │ debg creating space
[00:00:00]               │ debg created space
[00:00:00]               │ debg creating space
[00:00:01]               │ debg created space
[00:00:53]             └-: enqueue
[00:00:53]               └-> "before all" hook for "should handle enqueue request appropriately"
[00:00:53]               └-> "before all" hook for "should handle enqueue request appropriately"
[00:00:53]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana-alerting-test-data] creating index, cause [api], templates [], shards [1]/[1]
[00:00:53]               └-> should handle enqueue request appropriately
[00:00:53]                 └-> "before each" hook: global before each for "should handle enqueue request appropriately"
[00:00:54]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/oh-LDH83TNuKiLDcaKZ4og] update_mapping [_doc]
[00:00:55]                 │ debg --- retry.try error: Expected 1 but received 0.
[00:00:55]                 │ debg --- retry.try failed again with the same message...
[00:00:55]                 │ proc [kibana]   log   [21:14:42.129] [info][eventLog][plugins] event logged: {"@timestamp":"2021-09-09T21:14:42.128Z","event":{"provider":"actions","action":"execute-start","start":"2021-09-09T21:14:42.127Z"},"kibana":{"task":{"scheduled":"2021-09-09T21:14:41.335Z","schedule_delay":792000000},"saved_objects":[{"rel":"primary","type":"action","id":"f1704380-11b2-11ec-8142-2f621b7eaea0","type_id":"test.index-record","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"message":"action started: test.index-record:f1704380-11b2-11ec-8142-2f621b7eaea0: My action","ecs":{"version":"1.8.0"}}
[00:00:55]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana-alerting-test-data/kmlKFsbKQiqWOedp3hq6FA] update_mapping [_doc]
[00:00:56]                 │ proc [kibana]   log   [21:14:42.356] [info][eventLog][plugins] event logged: {"@timestamp":"2021-09-09T21:14:42.355Z","event":{"provider":"actions","action":"execute","start":"2021-09-09T21:14:42.127Z","end":"2021-09-09T21:14:42.355Z","duration":228000000,"outcome":"success"},"kibana":{"task":{"scheduled":"2021-09-09T21:14:41.335Z","schedule_delay":792000000},"saved_objects":[{"rel":"primary","type":"action","id":"f1704380-11b2-11ec-8142-2f621b7eaea0","type_id":"test.index-record","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"message":"action executed: test.index-record:f1704380-11b2-11ec-8142-2f621b7eaea0: My action","ecs":{"version":"1.8.0"}}
[00:00:56]                 └- ✓ pass  (3.0s) "alerting api integration spaces only Actions enqueue should handle enqueue request appropriately"
[00:00:56]               └-> should cleanup task after a failure
[00:00:56]                 └-> "before each" hook: global before each for "should cleanup task after a failure"
[00:00:58]                 │ debg --- retry.try error: Expected 1 but received 0.
[00:00:58]                 │ debg --- retry.try failed again with the same message...
[00:00:59]                 │ debg --- retry.try failed again with the same message...
[00:00:59]                 │ debg --- retry.try failed again with the same message...
[00:01:00]                 │ debg --- retry.try failed again with the same message...
[00:01:00]                 │ debg --- retry.try failed again with the same message...
[00:01:01]                 │ debg --- retry.try failed again with the same message...
[00:01:01]                 │ debg --- retry.try failed again with the same message...
[00:01:01]                 │ proc [kibana]   log   [21:14:48.140] [info][eventLog][plugins] event logged: {"@timestamp":"2021-09-09T21:14:48.139Z","event":{"provider":"actions","action":"execute-start","start":"2021-09-09T21:14:48.139Z"},"kibana":{"task":{"scheduled":"2021-09-09T21:14:44.365Z","schedule_delay":3774000000},"saved_objects":[{"rel":"primary","type":"action","id":"f33488c0-11b2-11ec-8142-2f621b7eaea0","type_id":"test.failing","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"message":"action started: test.failing:f33488c0-11b2-11ec-8142-2f621b7eaea0: My action","ecs":{"version":"1.8.0"}}
[00:01:02]                 │ proc [kibana]   log   [21:14:48.366] [warning][actions][plugins] action execution failure: test.failing:f33488c0-11b2-11ec-8142-2f621b7eaea0: My action: an error occurred while running the action executor: expected failure for .kibana-alerting-test-data actions-enqueue-2:space1:f33488c0-11b2-11ec-8142-2f621b7eaea0
[00:01:02]                 │ proc [kibana]   log   [21:14:48.368] [info][eventLog][plugins] event logged: {"@timestamp":"2021-09-09T21:14:48.367Z","event":{"provider":"actions","action":"execute","start":"2021-09-09T21:14:48.139Z","end":"2021-09-09T21:14:48.366Z","duration":227000000,"outcome":"failure"},"kibana":{"task":{"scheduled":"2021-09-09T21:14:44.365Z","schedule_delay":3774000000},"saved_objects":[{"rel":"primary","type":"action","id":"f33488c0-11b2-11ec-8142-2f621b7eaea0","type_id":"test.failing","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"message":"action execution failure: test.failing:f33488c0-11b2-11ec-8142-2f621b7eaea0: My action","error":{"message":"an error occurred while running the action executor: expected failure for .kibana-alerting-test-data actions-enqueue-2:space1:f33488c0-11b2-11ec-8142-2f621b7eaea0"},"ecs":{"version":"1.8.0"}}
[00:01:02]                 │ proc [kibana]   log   [21:14:48.369] [error][actions][plugins] Action 'f33488c0-11b2-11ec-8142-2f621b7eaea0' failed and will not retry: an error occurred while running the action executor
[00:01:02]                 │ debg --- retry.try error: expected 1 to sort of equal 0
[00:01:02]                 │ debg --- retry.try failed again with the same message...
[00:01:03]                 │ debg --- retry.try failed again with the same message...
[00:01:03]                 │ debg --- retry.try failed again with the same message...
[00:01:04]                 └- ✓ pass  (8.2s) "alerting api integration spaces only Actions enqueue should cleanup task after a failure"
[00:01:04]               └-> should never leaved a failed task, even if max attempts is reached
[00:01:04]                 └-> "before each" hook: global before each for "should never leaved a failed task, even if max attempts is reached"
[00:01:06]                 │ debg --- retry.try error: expected 0 to sort of equal 1
[00:01:06]                 │ debg --- retry.try failed again with the same message...
[00:01:07]                 │ debg --- retry.try failed again with the same message...
[00:01:07]                 │ debg --- retry.try failed again with the same message...
[00:01:07]                 │ proc [kibana]   log   [21:14:54.145] [info][eventLog][plugins] event logged: {"@timestamp":"2021-09-09T21:14:54.144Z","event":{"provider":"actions","action":"execute-start","start":"2021-09-09T21:14:54.144Z"},"kibana":{"task":{"scheduled":"2021-09-09T21:14:52.407Z","schedule_delay":1737000000},"saved_objects":[{"rel":"primary","type":"action","id":"f811f4e0-11b2-11ec-8142-2f621b7eaea0","type_id":"test.no-attempts-rate-limit","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"message":"action started: test.no-attempts-rate-limit:f811f4e0-11b2-11ec-8142-2f621b7eaea0: My action","ecs":{"version":"1.8.0"}}
[00:01:08]                 │ proc [kibana]   log   [21:14:54.380] [warning][actions][plugins] action execution failure: test.no-attempts-rate-limit:f811f4e0-11b2-11ec-8142-2f621b7eaea0: My action: unknown error running action; retry at 2021-09-09T21:14:50.533Z
[00:01:08]                 │ proc [kibana]   log   [21:14:54.383] [info][eventLog][plugins] event logged: {"@timestamp":"2021-09-09T21:14:54.381Z","event":{"provider":"actions","action":"execute","start":"2021-09-09T21:14:54.144Z","end":"2021-09-09T21:14:54.380Z","duration":236000000,"outcome":"failure"},"kibana":{"task":{"scheduled":"2021-09-09T21:14:52.407Z","schedule_delay":1737000000},"saved_objects":[{"rel":"primary","type":"action","id":"f811f4e0-11b2-11ec-8142-2f621b7eaea0","type_id":"test.no-attempts-rate-limit","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d","version":"8.0.0"},"message":"action execution failure: test.no-attempts-rate-limit:f811f4e0-11b2-11ec-8142-2f621b7eaea0: My action","error":{"message":"unknown error running action; retry at 2021-09-09T21:14:50.533Z"},"ecs":{"version":"1.8.0"}}
[00:01:08]                 │ proc [kibana]   log   [21:14:54.384] [error][actions][plugins] Action 'f811f4e0-11b2-11ec-8142-2f621b7eaea0' failed and will not retry: undefined
[00:01:08]                 │ debg --- retry.try failed again with the same message...
[00:01:08]                 │ debg --- retry.try failed again with the same message...
[00:01:09]                 │ debg --- retry.try failed again with the same message...
[00:01:09]                 │ debg --- retry.try failed again with the same message...
[00:01:10]                 │ debg --- retry.try failed again with the same message...
[00:01:10]                 │ debg --- retry.try failed again with the same message...
[00:01:11]                 │ debg --- retry.try failed again with the same message...
[00:01:11]                 │ debg --- retry.try failed again with the same message...
[00:01:12]                 │ debg --- retry.try failed again with the same message...
[00:01:12]                 │ debg --- retry.try failed again with the same message...
[00:01:13]                 │ debg --- retry.try failed again with the same message...
[00:01:13]                 │ debg --- retry.try failed again with the same message...
[00:01:14]                 │ debg --- retry.try failed again with the same message...
[00:01:14]                 │ debg --- retry.try failed again with the same message...
[00:01:15]                 │ debg --- retry.try failed again with the same message...
[00:01:15]                 │ debg --- retry.try failed again with the same message...
[00:01:16]                 │ debg --- retry.try failed again with the same message...
[00:01:16]                 │ debg --- retry.try failed again with the same message...
[00:01:17]                 │ debg --- retry.try failed again with the same message...
[00:01:17]                 │ debg --- retry.try failed again with the same message...
[00:01:18]                 │ debg --- retry.try failed again with the same message...
[00:01:19]                 │ debg --- retry.try failed again with the same message...
[00:01:19]                 │ debg --- retry.try failed again with the same message...
[00:01:20]                 │ debg --- retry.try failed again with the same message...
[00:01:20]                 │ debg --- retry.try failed again with the same message...
[00:01:21]                 │ debg --- retry.try failed again with the same message...
[00:01:21]                 │ debg --- retry.try failed again with the same message...
[00:01:22]                 │ debg --- retry.try failed again with the same message...
[00:01:22]                 │ debg --- retry.try failed again with the same message...
[00:01:23]                 │ debg --- retry.try failed again with the same message...
[00:01:23]                 │ debg --- retry.try failed again with the same message...
[00:01:24]                 │ debg --- retry.try failed again with the same message...
[00:01:24]                 │ debg --- retry.try failed again with the same message...
[00:01:25]                 │ debg --- retry.try failed again with the same message...
[00:01:25]                 │ debg --- retry.try failed again with the same message...
[00:01:26]                 │ debg --- retry.try failed again with the same message...
[00:01:26]                 │ debg --- retry.try failed again with the same message...
[00:01:27]                 │ debg --- retry.try failed again with the same message...
[00:01:27]                 │ debg --- retry.try failed again with the same message...
[00:01:28]                 │ debg --- retry.try failed again with the same message...
[00:01:28]                 │ debg --- retry.try failed again with the same message...
[00:01:29]                 │ debg --- retry.try failed again with the same message...
[00:01:29]                 │ debg --- retry.try failed again with the same message...
[00:01:30]                 │ debg --- retry.try failed again with the same message...
[00:01:30]                 │ debg --- retry.try failed again with the same message...
[00:01:31]                 │ debg --- retry.try failed again with the same message...
[00:01:31]                 │ debg --- retry.try failed again with the same message...
[00:01:32]                 │ debg --- retry.try failed again with the same message...
[00:01:32]                 │ debg --- retry.try failed again with the same message...
[00:01:33]                 │ debg --- retry.try failed again with the same message...
[00:01:33]                 │ debg --- retry.try failed again with the same message...
[00:01:34]                 │ debg --- retry.try failed again with the same message...
[00:01:34]                 │ debg --- retry.try failed again with the same message...
[00:01:35]                 │ debg --- retry.try failed again with the same message...
[00:01:35]                 │ debg --- retry.try failed again with the same message...
[00:01:36]                 │ debg --- retry.try failed again with the same message...
[00:01:36]                 │ debg --- retry.try failed again with the same message...
[00:01:37]                 │ debg --- retry.try failed again with the same message...
[00:01:37]                 │ debg --- retry.try failed again with the same message...
[00:01:38]                 │ debg --- retry.try failed again with the same message...
[00:01:38]                 │ debg --- retry.try failed again with the same message...
[00:01:39]                 │ debg --- retry.try failed again with the same message...
[00:01:39]                 │ debg --- retry.try failed again with the same message...
[00:01:40]                 │ debg --- retry.try failed again with the same message...
[00:01:40]                 │ debg --- retry.try failed again with the same message...
[00:01:41]                 │ debg --- retry.try failed again with the same message...
[00:01:41]                 │ debg --- retry.try failed again with the same message...
[00:01:42]                 │ debg --- retry.try failed again with the same message...
[00:01:42]                 │ debg --- retry.try failed again with the same message...
[00:01:43]                 │ debg --- retry.try failed again with the same message...
[00:01:43]                 │ debg --- retry.try failed again with the same message...
[00:01:44]                 │ debg --- retry.try failed again with the same message...
[00:01:44]                 │ debg --- retry.try failed again with the same message...
[00:01:45]                 │ debg --- retry.try failed again with the same message...
[00:01:46]                 │ debg --- retry.try failed again with the same message...
[00:01:46]                 │ debg --- retry.try failed again with the same message...
[00:01:47]                 │ debg --- retry.try failed again with the same message...
[00:01:47]                 │ debg --- retry.try failed again with the same message...
[00:01:48]                 │ debg --- retry.try failed again with the same message...
[00:01:48]                 │ debg --- retry.try failed again with the same message...
[00:01:49]                 │ debg --- retry.try failed again with the same message...
[00:01:49]                 │ debg --- retry.try failed again with the same message...
[00:01:50]                 │ debg --- retry.try failed again with the same message...
[00:01:50]                 │ debg --- retry.try failed again with the same message...
[00:01:51]                 │ debg --- retry.try failed again with the same message...
[00:01:51]                 │ debg --- retry.try failed again with the same message...
[00:01:52]                 │ debg --- retry.try failed again with the same message...
[00:01:52]                 │ debg --- retry.try failed again with the same message...
[00:01:53]                 │ debg --- retry.try failed again with the same message...
[00:01:53]                 │ debg --- retry.try failed again with the same message...
[00:01:54]                 │ debg --- retry.try failed again with the same message...
[00:01:54]                 │ debg --- retry.try failed again with the same message...
[00:01:55]                 │ debg --- retry.try failed again with the same message...
[00:01:55]                 │ debg --- retry.try failed again with the same message...
[00:01:56]                 │ debg --- retry.try failed again with the same message...
[00:01:56]                 │ debg --- retry.try failed again with the same message...
[00:01:57]                 │ debg --- retry.try failed again with the same message...
[00:01:57]                 │ debg --- retry.try failed again with the same message...
[00:01:58]                 │ debg --- retry.try failed again with the same message...
[00:01:58]                 │ debg --- retry.try failed again with the same message...
[00:01:59]                 │ debg --- retry.try failed again with the same message...
[00:01:59]                 │ debg --- retry.try failed again with the same message...
[00:02:00]                 │ debg --- retry.try failed again with the same message...
[00:02:00]                 │ debg --- retry.try failed again with the same message...
[00:02:01]                 │ debg --- retry.try failed again with the same message...
[00:02:01]                 │ debg --- retry.try failed again with the same message...
[00:02:02]                 │ debg --- retry.try failed again with the same message...
[00:02:02]                 │ debg --- retry.try failed again with the same message...
[00:02:03]                 │ debg --- retry.try failed again with the same message...
[00:02:03]                 │ debg --- retry.try failed again with the same message...
[00:02:04]                 │ debg --- retry.try failed again with the same message...
[00:02:04]                 │ debg --- retry.try failed again with the same message...
[00:02:05]                 │ debg --- retry.try failed again with the same message...
[00:02:05]                 │ debg --- retry.try failed again with the same message...
[00:02:06]                 │ debg --- retry.try failed again with the same message...
[00:02:06]                 │ debg --- retry.try failed again with the same message...
[00:02:07]                 │ debg --- retry.try failed again with the same message...
[00:02:07]                 │ debg --- retry.try failed again with the same message...
[00:02:08]                 │ debg --- retry.try failed again with the same message...
[00:02:08]                 │ debg --- retry.try failed again with the same message...
[00:02:09]                 │ debg --- retry.try failed again with the same message...
[00:02:09]                 │ debg --- retry.try failed again with the same message...
[00:02:10]                 │ debg --- retry.try failed again with the same message...
[00:02:10]                 │ debg --- retry.try failed again with the same message...
[00:02:11]                 │ debg --- retry.try failed again with the same message...
[00:02:11]                 │ debg --- retry.try failed again with the same message...
[00:02:12]                 │ debg --- retry.try failed again with the same message...
[00:02:13]                 │ debg --- retry.try failed again with the same message...
[00:02:13]                 │ debg --- retry.try failed again with the same message...
[00:02:14]                 │ debg --- retry.try failed again with the same message...
[00:02:14]                 │ debg --- retry.try failed again with the same message...
[00:02:15]                 │ debg --- retry.try failed again with the same message...
[00:02:15]                 │ debg --- retry.try failed again with the same message...
[00:02:16]                 │ debg --- retry.try failed again with the same message...
[00:02:16]                 │ debg --- retry.try failed again with the same message...
[00:02:17]                 │ debg --- retry.try failed again with the same message...
[00:02:17]                 │ debg --- retry.try failed again with the same message...
[00:02:18]                 │ debg --- retry.try failed again with the same message...
[00:02:18]                 │ debg --- retry.try failed again with the same message...
[00:02:19]                 │ debg --- retry.try failed again with the same message...
[00:02:19]                 │ debg --- retry.try failed again with the same message...
[00:02:20]                 │ debg --- retry.try failed again with the same message...
[00:02:20]                 │ debg --- retry.try failed again with the same message...
[00:02:21]                 │ debg --- retry.try failed again with the same message...
[00:02:21]                 │ debg --- retry.try failed again with the same message...
[00:02:22]                 │ debg --- retry.try failed again with the same message...
[00:02:22]                 │ debg --- retry.try failed again with the same message...
[00:02:23]                 │ debg --- retry.try failed again with the same message...
[00:02:23]                 │ debg --- retry.try failed again with the same message...
[00:02:24]                 │ debg --- retry.try failed again with the same message...
[00:02:24]                 │ debg --- retry.try failed again with the same message...
[00:02:25]                 │ debg --- retry.try failed again with the same message...
[00:02:25]                 │ debg --- retry.try failed again with the same message...
[00:02:26]                 │ debg --- retry.try failed again with the same message...
[00:02:26]                 │ debg --- retry.try failed again with the same message...
[00:02:27]                 │ debg --- retry.try failed again with the same message...
[00:02:27]                 │ debg --- retry.try failed again with the same message...
[00:02:28]                 │ debg --- retry.try failed again with the same message...
[00:02:28]                 │ debg --- retry.try failed again with the same message...
[00:02:29]                 │ debg --- retry.try failed again with the same message...
[00:02:29]                 │ debg --- retry.try failed again with the same message...
[00:02:30]                 │ debg --- retry.try failed again with the same message...
[00:02:30]                 │ debg --- retry.try failed again with the same message...
[00:02:31]                 │ debg --- retry.try failed again with the same message...
[00:02:31]                 │ debg --- retry.try failed again with the same message...
[00:02:32]                 │ debg --- retry.try failed again with the same message...
[00:02:32]                 │ debg --- retry.try failed again with the same message...
[00:02:33]                 │ debg --- retry.try failed again with the same message...
[00:02:33]                 │ debg --- retry.try failed again with the same message...
[00:02:34]                 │ debg --- retry.try failed again with the same message...
[00:02:34]                 │ debg --- retry.try failed again with the same message...
[00:02:35]                 │ debg --- retry.try failed again with the same message...
[00:02:35]                 │ debg --- retry.try failed again with the same message...
[00:02:36]                 │ debg --- retry.try failed again with the same message...
[00:02:36]                 │ debg --- retry.try failed again with the same message...
[00:02:37]                 │ debg --- retry.try failed again with the same message...
[00:02:37]                 │ debg --- retry.try failed again with the same message...
[00:02:38]                 │ debg --- retry.try failed again with the same message...
[00:02:38]                 │ debg --- retry.try failed again with the same message...
[00:02:39]                 │ debg --- retry.try failed again with the same message...
[00:02:39]                 │ debg --- retry.try failed again with the same message...
[00:02:40]                 │ debg --- retry.try failed again with the same message...
[00:02:41]                 │ debg --- retry.try failed again with the same message...
[00:02:41]                 │ debg --- retry.try failed again with the same message...
[00:02:42]                 │ debg --- retry.try failed again with the same message...
[00:02:42]                 │ debg --- retry.try failed again with the same message...
[00:02:43]                 │ debg --- retry.try failed again with the same message...
[00:02:43]                 │ debg --- retry.try failed again with the same message...
[00:02:44]                 │ debg --- retry.try failed again with the same message...
[00:02:44]                 │ debg --- retry.try failed again with the same message...
[00:02:45]                 │ debg --- retry.try failed again with the same message...
[00:02:45]                 │ debg --- retry.try failed again with the same message...
[00:02:46]                 │ debg --- retry.try failed again with the same message...
[00:02:46]                 │ debg --- retry.try failed again with the same message...
[00:02:47]                 │ debg --- retry.try failed again with the same message...
[00:02:47]                 │ debg --- retry.try failed again with the same message...
[00:02:48]                 │ debg --- retry.try failed again with the same message...
[00:02:48]                 │ debg --- retry.try failed again with the same message...
[00:02:49]                 │ debg --- retry.try failed again with the same message...
[00:02:49]                 │ debg --- retry.try failed again with the same message...
[00:02:50]                 │ debg --- retry.try failed again with the same message...
[00:02:50]                 │ debg --- retry.try failed again with the same message...
[00:02:51]                 │ debg --- retry.try failed again with the same message...
[00:02:51]                 │ debg --- retry.try failed again with the same message...
[00:02:52]                 │ debg --- retry.try failed again with the same message...
[00:02:52]                 │ debg --- retry.try failed again with the same message...
[00:02:53]                 │ debg --- retry.try failed again with the same message...
[00:02:53]                 │ debg --- retry.try failed again with the same message...
[00:02:54]                 │ debg --- retry.try failed again with the same message...
[00:02:54]                 │ debg --- retry.try failed again with the same message...
[00:02:55]                 │ debg --- retry.try failed again with the same message...
[00:02:55]                 │ debg --- retry.try failed again with the same message...
[00:02:56]                 │ debg --- retry.try failed again with the same message...
[00:02:56]                 │ debg --- retry.try failed again with the same message...
[00:02:57]                 │ debg --- retry.try failed again with the same message...
[00:02:57]                 │ debg --- retry.try failed again with the same message...
[00:02:58]                 │ debg --- retry.try failed again with the same message...
[00:02:58]                 │ debg --- retry.try failed again with the same message...
[00:02:59]                 │ debg --- retry.try failed again with the same message...
[00:02:59]                 │ debg --- retry.try failed again with the same message...
[00:03:00]                 │ debg --- retry.try failed again with the same message...
[00:03:00]                 │ debg --- retry.try failed again with the same message...
[00:03:01]                 │ debg --- retry.try failed again with the same message...
[00:03:01]                 │ debg --- retry.try failed again with the same message...
[00:03:02]                 │ debg --- retry.try failed again with the same message...
[00:03:02]                 │ debg --- retry.try failed again with the same message...
[00:03:03]                 │ debg --- retry.try failed again with the same message...
[00:03:03]                 │ debg --- retry.try failed again with the same message...
[00:03:04]                 │ debg --- retry.try failed again with the same message...
[00:03:04]                 │ debg --- retry.try failed again with the same message...
[00:03:05]                 │ debg --- retry.try failed again with the same message...
[00:03:05]                 │ debg --- retry.try failed again with the same message...
[00:03:06]                 └- ✖ fail: alerting api integration spaces only Actions enqueue should never leaved a failed task, even if max attempts is reached
[00:03:06]                 │      retry.try timeout: Error: expected 0 to sort of equal 1
[00:03:06]                 │     at Assertion.assert (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:03:06]                 │     at Assertion.eql (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:244:8)
[00:03:06]                 │     at /dev/shm/workspace/parallel/12/kibana/x-pack/test/alerting_api_integration/spaces_only/tests/actions/enqueue.ts:182:91
[00:03:06]                 │     at runMicrotasks (<anonymous>)
[00:03:06]                 │     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:03:06]                 │     at runAttempt (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:03:06]                 │     at retryForSuccess (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:03:06]                 │     at RetryService.try (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry.ts:31:12)
[00:03:06]                 │     at Context.<anonymous> (/dev/shm/workspace/parallel/12/kibana/x-pack/test/alerting_api_integration/spaces_only/tests/actions/enqueue.ts:160:7)
[00:03:06]                 │     at Object.apply (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:03:06]                 │   Error: retry.try timeout: Error: expected 0 to sort of equal 1
[00:03:06]                 │       at Assertion.assert (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:03:06]                 │       at Assertion.eql (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:244:8)
[00:03:06]                 │       at /dev/shm/workspace/parallel/12/kibana/x-pack/test/alerting_api_integration/spaces_only/tests/actions/enqueue.ts:182:91
[00:03:06]                 │       at runMicrotasks (<anonymous>)
[00:03:06]                 │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:03:06]                 │       at runAttempt (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:03:06]                 │       at retryForSuccess (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:03:06]                 │       at RetryService.try (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry.ts:31:12)
[00:03:06]                 │       at Context.<anonymous> (test/alerting_api_integration/spaces_only/tests/actions/enqueue.ts:160:7)
[00:03:06]                 │       at Object.apply (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:03:06]                 │       at onFailure (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:03:06]                 │       at retryForSuccess (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:03:06]                 │       at RetryService.try (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry.ts:31:12)
[00:03:06]                 │       at Context.<anonymous> (test/alerting_api_integration/spaces_only/tests/actions/enqueue.ts:160:7)
[00:03:06]                 │       at Object.apply (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:03:06]                 │ 
[00:03:06]                 │ 

Stack Trace

Error: retry.try timeout: Error: expected 0 to sort of equal 1
    at Assertion.assert (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:244:8)
    at /dev/shm/workspace/parallel/12/kibana/x-pack/test/alerting_api_integration/spaces_only/tests/actions/enqueue.ts:182:91
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at runAttempt (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at RetryService.try (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry.ts:31:12)
    at Context.<anonymous> (test/alerting_api_integration/spaces_only/tests/actions/enqueue.ts:160:7)
    at Object.apply (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
    at onFailure (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/12/kibana/test/common/services/retry/retry.ts:31:12)
    at Context.<anonymous> (test/alerting_api_integration/spaces_only/tests/actions/enqueue.ts:160:7)
    at Object.apply (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 2391 2402 +11

Async chunks

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

id before after diff
securitySolution 6.5MB 6.5MB +10.5KB

History

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

cc @paul-tavares

@paul-tavares paul-tavares merged commit 7354027 into elastic:master Sep 9, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 9, 2021
…r of Trusted Apps list to use it (elastic#111051)

* New `ArtifactEntryCard` component
* Refactored ContextMenuItemNavByRouter and moved it to top-level components + new ActionsContextMenu component + add context menu to card
* Refactor Trusted App grid to use new ArtifactEntryCard
* new Trusted Apps generator + refactor existing of TA script to use it
* policy details support for custom back link
* bug fix: paginated content should not trigger a change to adjust paging settings unless loading is done
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Sep 10, 2021
…r of Trusted Apps list to use it (#111051) (#111811)

* New `ArtifactEntryCard` component
* Refactored ContextMenuItemNavByRouter and moved it to top-level components + new ActionsContextMenu component + add context menu to card
* Refactor Trusted App grid to use new ArtifactEntryCard
* new Trusted Apps generator + refactor existing of TA script to use it
* policy details support for custom back link
* bug fix: paginated content should not trigger a change to adjust paging settings unless loading is done

Co-authored-by: Paul Tavares <[email protected]>
@paul-tavares paul-tavares deleted the task/olm-695-new-trusted-app-card branch September 10, 2021 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed OLM Sprint release_note:enhancement Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants