Skip to content

Commit

Permalink
place related services back
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Tackett <[email protected]>
  • Loading branch information
Adam Tackett committed Jan 17, 2025
1 parent 7ee366e commit 12b46fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,11 @@ export function getServiceMapGraph(
idSelected: 'latency' | 'error_rate' | 'throughput',
ticks: number[],
currService?: string,
relatedServices?: string[],
filterByCurrService?: boolean
) {
if (!relatedServices) relatedServices = Object.keys(map);

const nodes = Object.keys(map).map((service) => {
const value = map[service][idSelected];
let styleOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export function ServiceMap({
idSelected,
ticks,
undefined,
undefined,
false // Show the entire graph without filtering
)
);
Expand All @@ -314,6 +315,7 @@ export function ServiceMap({
idSelected,
ticks,
service,
serviceMap[service]?.relatedServices,
true // Enable filtering to focus on connected nodes
);
setItems(filteredGraph);
Expand Down

0 comments on commit 12b46fd

Please sign in to comment.