Skip to content

Commit

Permalink
[graph] Hide filtered nodes/edges in correlation graphs
Browse files Browse the repository at this point in the history
Right now, these are simply greyed out as "disabled". However, when we
filter items from the correlation graphs, we want it to "clean up" the
graph. So, hide the affected nodes+edges from view so we can explore
just the correlated items we include in the filters.
  • Loading branch information
ckane committed Dec 12, 2024
1 parent 671eae4 commit f1a6daa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion opencti-platform/opencti-front/src/utils/Graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,10 @@ export const buildCorrelationData = (
filterAdjust.markedBy,
filterAdjust.createdBy,
);
const thisReportNodes = thisReportOriginalNodes.map((n) => R.assoc('disabled', filteredNodesIds.includes(n.id), n));
const thisReportNodes = R.filter(
(n) => !filteredNodesIds.includes(n.id),
thisReportOriginalNodes,
);
const thisReportLinkNodes = R.filter(
(n) => n[key] && n.parent_types && n[key].edges.length > 1,
thisReportNodes,
Expand Down

0 comments on commit f1a6daa

Please sign in to comment.