Skip to content

Commit

Permalink
Workspace deletion (#5823)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Chvalyuk <[email protected]>
Co-authored-by: Tim Roes <[email protected]>
Co-authored-by: perangel <[email protected]>
Co-authored-by: Joey Marshment-Howell <[email protected]>
Co-authored-by: Serhii Chvaliuk <[email protected]>
Co-authored-by: Baz <[email protected]>
Co-authored-by: Jimmy Ma <[email protected]>
Co-authored-by: Malik Diarra <[email protected]>
  • Loading branch information
8 people committed May 8, 2023
1 parent bb0fc25 commit 0c2e414
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ public void deleteWorkspace(final WorkspaceIdRequestBody workspaceIdRequestBody)
for (final SourceRead sourceRead : sourceHandler.listSourcesForWorkspace(workspaceIdRequestBody).getSources()) {
sourceHandler.deleteSource(sourceRead);
}

persistedWorkspace.withTombstone(true);
persistStandardWorkspace(persistedWorkspace);
}
Expand All @@ -155,7 +154,7 @@ public WorkspaceReadList listWorkspaces() throws JsonValidationException, IOExce
return new WorkspaceReadList().workspaces(reads);
}

public WorkspaceReadList listWorkspacesPaginated(ListResourcesForWorkspacesRequestBody listResourcesForWorkspacesRequestBody)
public WorkspaceReadList listWorkspacesPaginated(final ListResourcesForWorkspacesRequestBody listResourcesForWorkspacesRequestBody)
throws IOException {
final List<StandardWorkspace> standardWorkspaces = configRepository.listStandardWorkspacesPaginated(new ResourcesQueryPaginated(
listResourcesForWorkspacesRequestBody.getWorkspaceIds(),
Expand Down

0 comments on commit 0c2e414

Please sign in to comment.