Skip to content
Permalink
Browse files

[Admin] FIX: warehouse view was broken (layout issue and vertices mis…

…sing)
  • Loading branch information
xhanin committed Nov 22, 2014
1 parent a32a726 commit a49f9f5fb40e614e0236d3efebf3470ebe94d88a
@@ -31,10 +31,10 @@ public void handle(RestxRequestMatch match, RestxRequest req, RestxResponse resp
List<String> nodesCode = Lists.newArrayList();
List<String> linksCode = Lists.newArrayList();
for (Name<?> name : warehouse.listNames()) {
nodesCode.add(String.format("{ \"id\": \"%s\", \"name\": \"%s\", \"type\": \"%s\" }", name.getName(), name.getSimpleName(), getType(name)));
nodesCode.add(String.format("{ \"id\": \"%s\", \"name\": \"%s\", \"type\": \"%s\" }", name.asId(), name.getSimpleName(), getType(name)));
Iterable<Name<?>> deps = warehouse.listDependencies(name);
for (Name<?> dep : deps) {
linksCode.add(String.format("{ \"origin\": \"%s\", \"target\": \"%s\" }", name.getName(), dep.asId()));
linksCode.add(String.format("{ \"origin\": \"%s\", \"target\": \"%s\" }", name.asId(), dep.asId()));
}
}

@@ -12,4 +12,9 @@ body {
width: 700px;
height: 700px;
background: #f7f7f7;
}

#warehouse .graph svg {
width: 700px;
height: 700px;
}

0 comments on commit a49f9f5

Please sign in to comment.
You can’t perform that action at this time.