Skip to content

Commit

Permalink
Merge pull request #3661 from eclipse/3589-fix
Browse files Browse the repository at this point in the history
Revert WorkspaceService#getByNamespace functionality
  • Loading branch information
Michail Kuznetsov committed Jan 11, 2017
2 parents 6ad6ea4 + 7453402 commit a3acaf6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public List<WorkspaceImpl> getByNamespace(String namespace) throws ServerExcepti
requireNonNull(namespace, "Required non-null namespace");
final List<WorkspaceImpl> workspaces = workspaceDao.getByNamespace(namespace);
for (WorkspaceImpl workspace : workspaces) {
workspace.setStatus(runtimes.getStatus(workspace.getId()));
normalizeState(workspace);
}
return workspaces;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,6 @@ private RuntimeDescriptor createAndMockDescriptor(WorkspaceImpl workspace, Works
throws ServerException, NotFoundException, ConflictException {
RuntimeDescriptor descriptor = createDescriptor(workspace, status);
when(runtimes.get(workspace.getId())).thenReturn(descriptor);
when(runtimes.getStatus(workspace.getId())).thenReturn(status);
return descriptor;
}

Expand Down

0 comments on commit a3acaf6

Please sign in to comment.