Permalink
Browse files

support service owner filtering (#137)

  • Loading branch information...
ala85 authored and jrsquared committed Sep 6, 2018
1 parent 3c8b3cc commit ac008213412d572aa1bf3b293a03e50c3b516e35
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/base/trafficGraph.js
View
@@ -230,6 +230,10 @@ class TrafficGraph extends EventEmitter {
const nodes = filter(this.nodes, (node) => {
const matchTargets = [node.getName()];
if (node.displayName) { matchTargets.push(node.displayName); }
// Allow to filter results based on services' owner/team defined on metadata object.
if (node.metadata && node.metadata.owner) { matchTargets.push(node.metadata.owner); }
if (node.nodes) { Array.prototype.push.apply(matchTargets, node.nodes.map(n => n.name)); }
const match = (node === this.highlightedObject || matchTargets.join().toLowerCase().indexOf(searchString.toLowerCase()) !== -1);

0 comments on commit ac00821

Please sign in to comment.