From 0c2e41452b83db4f0174fd150ea9fa5969031524 Mon Sep 17 00:00:00 2001 From: keyihuang Date: Mon, 8 May 2023 08:37:27 -0700 Subject: [PATCH] Workspace deletion (#5823) Signed-off-by: Sergey Chvalyuk Co-authored-by: Tim Roes Co-authored-by: perangel Co-authored-by: Joey Marshment-Howell Co-authored-by: Serhii Chvaliuk Co-authored-by: Baz Co-authored-by: Jimmy Ma Co-authored-by: Malik Diarra --- .../io/airbyte/commons/server/handlers/WorkspacesHandler.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/airbyte-commons-server/src/main/java/io/airbyte/commons/server/handlers/WorkspacesHandler.java b/airbyte-commons-server/src/main/java/io/airbyte/commons/server/handlers/WorkspacesHandler.java index b990f6495e8..8647eeb8c37 100644 --- a/airbyte-commons-server/src/main/java/io/airbyte/commons/server/handlers/WorkspacesHandler.java +++ b/airbyte-commons-server/src/main/java/io/airbyte/commons/server/handlers/WorkspacesHandler.java @@ -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); } @@ -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 standardWorkspaces = configRepository.listStandardWorkspacesPaginated(new ResourcesQueryPaginated( listResourcesForWorkspacesRequestBody.getWorkspaceIds(),