Skip to content

Commit

Permalink
[Admin] FIX: warehouse view was broken (layout issue and vertices mis…
Browse files Browse the repository at this point in the history
…sing)
  • Loading branch information
xhanin committed Dec 21, 2014
1 parent a32a726 commit a49f9f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.