Skip to content

Commit

Permalink
remove related alerts references
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelolo24 committed Jun 26, 2020
1 parent 69b2353 commit 670e623
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
10 changes: 0 additions & 10 deletions x-pack/plugins/security_solution/public/resolver/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,6 @@ interface UserSelectedRelatedEventCategory {
};
}

/**
* This action should dispatch to indicate that the user chose to focus
* on examining alerts related to a particular ResolverEvent
*/
interface UserSelectedRelatedAlerts {
readonly type: 'userSelectedRelatedAlerts';
readonly payload: ResolverEvent;
}

export type ResolverAction =
| CameraAction
| DataAction
Expand All @@ -160,7 +151,6 @@ export type ResolverAction =
| UserSelectedResolverNode
| UserRequestedRelatedEventData
| UserSelectedRelatedEventCategory
| UserSelectedRelatedAlerts
| AppDetectedNewIdFromQueryParams
| AppDisplayedDifferentPanel
| AppDetectedMissingEventData;
Original file line number Diff line number Diff line change
Expand Up @@ -414,13 +414,6 @@ const ProcessEventDotComponents = React.memo(
});
}, [dispatch, selfId]);

const handleRelatedAlertsRequest = useCallback(() => {
dispatch({
type: 'userSelectedRelatedAlerts',
payload: event,
});
}, [dispatch, event]);

const history = useHistory();
const urlSearch = history.location.search;

Expand Down Expand Up @@ -648,14 +641,6 @@ const ProcessEventDotComponents = React.memo(
/>
)}
</EuiFlexItem>
<EuiFlexItem grow={false}>
<NodeSubMenu
buttonBorderColor={labelButtonFill}
buttonFill={colorMap.resolverBackground}
menuTitle={subMenuAssets.relatedAlerts.title}
menuAction={handleRelatedAlertsRequest}
/>
</EuiFlexItem>
</EuiFlexGroup>
</StyledActionsContainer>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ export const subMenuAssets = {
menuError: i18n.translate('xpack.securitySolution.endpoint.resolver.relatedRetrievalError', {
defaultMessage: 'There was an error retrieving related events.',
}),
relatedAlerts: {
title: i18n.translate('xpack.securitySolution.endpoint.resolver.relatedAlerts', {
defaultMessage: 'Related Alerts',
}),
},
relatedEvents: {
title: i18n.translate('xpack.securitySolution.endpoint.resolver.relatedEvents', {
defaultMessage: 'Events',
Expand Down

0 comments on commit 670e623

Please sign in to comment.