Skip to content

Commit

Permalink
Workspace deletion (#5823)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Co-authored-by: Tim Roes <tim@airbyte.io>
Co-authored-by: perangel <angel@airbyte.io>
Co-authored-by: Joey Marshment-Howell <josephkmh@users.noreply.github.com>
Co-authored-by: Serhii Chvaliuk <grubberr@gmail.com>
Co-authored-by: Baz <oleksandr.bazarnov@globallogic.com>
Co-authored-by: Jimmy Ma <gosusnp@users.noreply.github.com>
Co-authored-by: Malik Diarra <malik@airbyte.io>
  • 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.