Adds support for filtering node/table by relatives

Now that they are available in the summary data.
This commit is contained in:
Simon Howe
2016-08-09 18:20:43 +02:00
parent d06547e596
commit fc2fcfb298
5 changed files with 27 additions and 6 deletions

View File

@@ -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) {