File tree Expand file tree Collapse file tree
x-pack/plugins/security_solution/public/resolver Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,15 +141,6 @@ interface UserSelectedRelatedEventCategory {
141141 } ;
142142}
143143
144- /**
145- * This action should dispatch to indicate that the user chose to focus
146- * on examining alerts related to a particular ResolverEvent
147- */
148- interface UserSelectedRelatedAlerts {
149- readonly type : 'userSelectedRelatedAlerts' ;
150- readonly payload : ResolverEvent ;
151- }
152-
153144export type ResolverAction =
154145 | CameraAction
155146 | DataAction
@@ -160,7 +151,6 @@ export type ResolverAction =
160151 | UserSelectedResolverNode
161152 | UserRequestedRelatedEventData
162153 | UserSelectedRelatedEventCategory
163- | UserSelectedRelatedAlerts
164154 | AppDetectedNewIdFromQueryParams
165155 | AppDisplayedDifferentPanel
166156 | AppDetectedMissingEventData ;
Original file line number Diff line number Diff line change @@ -132,15 +132,15 @@ export const Resolver = React.memo(function Resolver({
132132 projectionMatrix = { projectionMatrix }
133133 />
134134 ) ) }
135- { [ ...processNodePositions ] . map ( ( [ processEvent , position ] , index ) => {
135+ { [ ...processNodePositions ] . map ( ( [ processEvent , position ] ) => {
136136 const adjacentNodeMap = processToAdjacencyMap . get ( processEvent ) ;
137137 if ( ! adjacentNodeMap ) {
138138 // This should never happen
139139 throw new Error ( 'Issue calculating adjacency node map.' ) ;
140140 }
141141 return (
142142 < ProcessEventDot
143- key = { index }
143+ key = { processEntityId }
144144 position = { position }
145145 projectionMatrix = { projectionMatrix }
146146 event = { processEvent }
Original file line number Diff line number Diff line change @@ -401,13 +401,6 @@ const ProcessEventDotComponents = React.memo(
401401 } ) ;
402402 } , [ dispatch , selfId ] ) ;
403403
404- const handleRelatedAlertsRequest = useCallback ( ( ) => {
405- dispatch ( {
406- type : 'userSelectedRelatedAlerts' ,
407- payload : event ,
408- } ) ;
409- } , [ dispatch , event ] ) ;
410-
411404 const history = useHistory ( ) ;
412405 const urlSearch = history . location . search ;
413406
@@ -624,22 +617,16 @@ const ProcessEventDotComponents = React.memo(
624617 } }
625618 >
626619 < EuiFlexItem grow = { false } className = "related-dropdown" >
627- < NodeSubMenu
628- count = { grandTotal }
629- buttonBorderColor = { labelButtonFill }
630- buttonFill = { colorMap . resolverBackground }
631- menuAction = { handleRelatedEventRequest }
632- menuTitle = { subMenuAssets . relatedEvents . title }
633- optionsWithActions = { relatedEventStatusOrOptions }
634- />
635- </ EuiFlexItem >
636- < EuiFlexItem grow = { false } >
637- < NodeSubMenu
638- buttonBorderColor = { labelButtonFill }
639- buttonFill = { colorMap . resolverBackground }
640- menuTitle = { subMenuAssets . relatedAlerts . title }
641- menuAction = { handleRelatedAlertsRequest }
642- />
620+ { grandTotal > 0 && (
621+ < NodeSubMenu
622+ count = { grandTotal }
623+ buttonBorderColor = { labelButtonFill }
624+ buttonFill = { colorMap . resolverBackground }
625+ menuAction = { handleRelatedEventRequest }
626+ menuTitle = { subMenuAssets . relatedEvents . title }
627+ optionsWithActions = { relatedEventStatusOrOptions }
628+ />
629+ ) }
643630 </ EuiFlexItem >
644631 </ EuiFlexGroup >
645632 </ StyledActionsContainer >
Original file line number Diff line number Diff line change @@ -31,11 +31,6 @@ export const subMenuAssets = {
3131 menuError : i18n . translate ( 'xpack.securitySolution.endpoint.resolver.relatedRetrievalError' , {
3232 defaultMessage : 'There was an error retrieving related events.' ,
3333 } ) ,
34- relatedAlerts : {
35- title : i18n . translate ( 'xpack.securitySolution.endpoint.resolver.relatedAlerts' , {
36- defaultMessage : 'Related Alerts' ,
37- } ) ,
38- } ,
3934 relatedEvents : {
4035 title : i18n . translate ( 'xpack.securitySolution.endpoint.resolver.relatedEvents' , {
4136 defaultMessage : 'Events' ,
You can’t perform that action at this time.
0 commit comments