Skip to content

Commit 0145121

Browse files
authored
[SearchProfiler] Set the agg treeRoot value (#61591)
1 parent 7b0c66f commit 0145121

File tree

1 file changed

+3
-0
lines changed
  • x-pack/plugins/searchprofiler/public/application/components/profile_tree

1 file changed

+3
-0
lines changed

x-pack/plugins/searchprofiler/public/application/components/profile_tree/init_data.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export function mutateAggsTimesTree(shard: Shard) {
2424
}
2525
for (const agg of shard.aggregations!) {
2626
initTree([agg], shardTime);
27+
// To make this data structure consistent with that of search we
28+
// mark each aggregation as it's own tree root.
29+
agg.treeRoot = agg;
2730
}
2831
shard.time = shardTime;
2932
}

0 commit comments

Comments
 (0)