mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-03 07:49:10 +00:00
Adds support for filtering node/table by relatives
Now that they are available in the summary data.
This commit is contained in:
@@ -139,6 +139,15 @@ export function searchTopology(nodes, { prefix, query, metric, comp, value }) {
|
||||
});
|
||||
}
|
||||
|
||||
// parents and relatives
|
||||
if (node.get('parents')) {
|
||||
node.get('parents').forEach(parent => {
|
||||
const keyPath = [nodeId, 'parents', parent.get('id')];
|
||||
nodeMatches = findNodeMatch(nodeMatches, keyPath, parent.get('label'),
|
||||
query, prefix, parent.get('topologyId'));
|
||||
});
|
||||
}
|
||||
|
||||
// tables (envvars and labels)
|
||||
const tables = node.get('tables');
|
||||
if (tables) {
|
||||
|
||||
Reference in New Issue
Block a user