Skip to content

Commit

Permalink
invana management label filters added
Browse files Browse the repository at this point in the history
  • Loading branch information
rrmerugu committed May 30, 2021
1 parent 9d5ef03 commit 1277e0e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/serializers/invana-engine.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import DeSerializerBase from "./base";
import {STUDIO_SETTINGS} from "../settings";


export default class InvanaEngineDeSerializer extends DeSerializerBase {
Expand Down Expand Up @@ -26,9 +27,9 @@ export default class InvanaEngineDeSerializer extends DeSerializerBase {
let _this = this;
data.forEach(function (d) {
if (ignoreManagement) {
if (d.type === "g:Vertex" && d.label !== "InvanaManagement") {
if (d.type === "g:Vertex" && d.label !== STUDIO_SETTINGS.MANAGEMENT_VERTEX_LABEL) {
vertices.push(d);
} else if (d.type === "g:Edge" && d.label !== "InvanaManagement") {
} else if (d.type === "g:Edge" && d.label !== STUDIO_SETTINGS.MANAGEMENT_VERTEX_LABEL) {
edges.push(_this.convertEdge2Json(d));
}
} else {
Expand All @@ -39,8 +40,6 @@ export default class InvanaEngineDeSerializer extends DeSerializerBase {
}
}
});


return {"nodes": vertices, "links": edges};
}

Expand Down

0 comments on commit 1277e0e

Please sign in to comment.