Skip to content

Commit

Permalink
Add nodes limit as a temporary workaround for upcoming release (elast…
Browse files Browse the repository at this point in the history
…ic#208654)

## Summary

We decided to add nodes limit of 100 for the upcoming release.
This decision will be revisited in 9.1 development cycle once we will
work out the grouping capability
  • Loading branch information
kfirpeled authored Jan 29, 2025
1 parent 5413e75 commit 8610da4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ export const SHOW_SEARCH_BAR_BUTTON_TOUR_STORAGE_KEY =
'securitySolution.graphInvestigation:showSearchBarButtonTour' as const;
export const TOGGLE_SEARCH_BAR_STORAGE_KEY =
'securitySolution.graphInvestigation:toggleSearchBarState' as const;

export const GRAPH_NODES_LIMIT = 100;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import useSessionStorage from 'react-use/lib/useSessionStorage';
import { Graph, isEntityNode } from '../../..';
import { type UseFetchGraphDataParams, useFetchGraphData } from '../../hooks/use_fetch_graph_data';
import { GRAPH_INVESTIGATION_TEST_ID } from '../test_ids';
import { EVENT_ID, TOGGLE_SEARCH_BAR_STORAGE_KEY } from '../../common/constants';
import { EVENT_ID, GRAPH_NODES_LIMIT, TOGGLE_SEARCH_BAR_STORAGE_KEY } from '../../common/constants';
import { Actions } from '../controls/actions';
import { AnimatedSearchBarContainer, useBorder } from './styles';
import { CONTROLLED_BY_GRAPH_INVESTIGATION_FILTER, addFilter } from './search_filters';
Expand Down Expand Up @@ -195,6 +195,7 @@ export const GraphInvestigation = memo<GraphInvestigationProps>(
start: timeRange.from,
end: timeRange.to,
},
nodesLimit: GRAPH_NODES_LIMIT,
},
options: {
refetchOnWindowFocus: false,
Expand Down

0 comments on commit 8610da4

Please sign in to comment.