Skip to content

Commit

Permalink
deprecate import / export endpoints (#16175)
Browse files Browse the repository at this point in the history
* deprecate import / export endpoints

* remove fe deps on import / export

* additional fe clean up
  • Loading branch information
cgardens committed Sep 6, 2022
1 parent 11692b9 commit ce201bc
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 766 deletions.
94 changes: 0 additions & 94 deletions airbyte-api/src/main/openapi/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2212,100 +2212,6 @@ paths:
schema:
type: string
format: binary
/v1/deployment/export:
post:
tags:
- deployment
summary: Export Airbyte Configuration and Data Archive
operationId: exportArchive
responses:
"200":
description: Successful operation
content:
application/x-gzip:
schema:
$ref: "#/components/schemas/AirbyteArchive"
/v1/deployment/import:
post:
tags:
- deployment
summary: Import Airbyte Configuration and Data Archive
operationId: importArchive
requestBody:
content:
application/x-gzip:
schema:
$ref: "#/components/schemas/AirbyteArchive"
required: true
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/ImportRead"
/v1/deployment/export_workspace:
post:
tags:
- deployment
summary: Export Airbyte Workspace Configuration
operationId: exportWorkspace
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/WorkspaceIdRequestBody"
required: true
responses:
"200":
description: Successful operation
content:
application/x-gzip:
schema:
$ref: "#/components/schemas/AirbyteArchive"
/v1/deployment/upload_archive_resource:
post:
tags:
- deployment
summary: Upload a GZIP archive tarball and stage it in the server's cache as a temporary resource
operationId: uploadArchiveResource
requestBody:
content:
application/x-gzip:
schema:
$ref: "#/components/schemas/AirbyteArchive"
required: true
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UploadRead"
/v1/deployment/import_into_workspace:
post:
tags:
- deployment
summary: >
Import Airbyte Configuration into Workspace (this operation might change ids of imported
configurations). Note, in order to use this api endpoint, you might need to upload a
temporary archive resource with 'deployment/upload_archive_resource' first
operationId: importIntoWorkspace
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/ImportRequestBody"
required: true
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/ImportRead"
"404":
$ref: "#/components/responses/NotFoundResponse"
/v1/attempt/set_workflow_in_attempt:
post:
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
import io.airbyte.api.model.generated.DestinationSearch;
import io.airbyte.api.model.generated.DestinationUpdate;
import io.airbyte.api.model.generated.HealthCheckRead;
import io.airbyte.api.model.generated.ImportRead;
import io.airbyte.api.model.generated.ImportRequestBody;
import io.airbyte.api.model.generated.InternalOperationResult;
import io.airbyte.api.model.generated.JobDebugInfoRead;
import io.airbyte.api.model.generated.JobIdRequestBody;
Expand Down Expand Up @@ -86,7 +84,6 @@
import io.airbyte.api.model.generated.SourceReadList;
import io.airbyte.api.model.generated.SourceSearch;
import io.airbyte.api.model.generated.SourceUpdate;
import io.airbyte.api.model.generated.UploadRead;
import io.airbyte.api.model.generated.WebBackendConnectionCreate;
import io.airbyte.api.model.generated.WebBackendConnectionRead;
import io.airbyte.api.model.generated.WebBackendConnectionReadList;
Expand Down Expand Up @@ -845,33 +842,6 @@ public WebBackendWorkspaceStateResult webBackendGetWorkspaceState(final WebBacke
return execute(() -> webBackendConnectionsHandler.getWorkspaceState(webBackendWorkspaceState));
}

// ARCHIVES

@Override
public File exportArchive() {
return execute(archiveHandler::exportData);
}

@Override
public ImportRead importArchive(final File archiveFile) {
return execute(() -> archiveHandler.importData(archiveFile));
}

@Override
public File exportWorkspace(final WorkspaceIdRequestBody workspaceIdRequestBody) {
return execute(() -> archiveHandler.exportWorkspace(workspaceIdRequestBody));
}

@Override
public UploadRead uploadArchiveResource(final File archiveFile) {
return execute(() -> archiveHandler.uploadArchiveResource(archiveFile));
}

@Override
public ImportRead importIntoWorkspace(final ImportRequestBody importRequestBody) {
return execute(() -> archiveHandler.importIntoWorkspace(importRequestBody));
}

@Override
public InternalOperationResult setWorkflowInAttempt(final SetWorkflowInAttemptRequestBody requestBody) {
return execute(() -> attemptHandler.setWorkflowInAttempt(requestBody));
Expand Down
71 changes: 0 additions & 71 deletions airbyte-webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion airbyte-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"query-string": "^6.13.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-dropzone": "^11.5.3",
"react-helmet": "6.1.0",
"react-intl": "^5.24.8",
"react-lazylog": "^4.5.3",
Expand Down
79 changes: 0 additions & 79 deletions airbyte-webapp/src/components/FileDropZone/FileDropZone.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions airbyte-webapp/src/components/FileDropZone/index.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions airbyte-webapp/src/core/ApiServices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useConfig } from "config";
import { OperationService } from "./domain/connection";
import { DestinationDefinitionService } from "./domain/connector/DestinationDefinitionService";
import { SourceDefinitionService } from "./domain/connector/SourceDefinitionService";
import { DeploymentService } from "./domain/deployment/DeploymentService";
import { HealthService } from "./health/HealthService";
import { RequestMiddleware } from "./request/RequestMiddleware";
import { useGetService, useInjectServices } from "./servicesProvider";
Expand All @@ -18,7 +17,6 @@ export const ApiServices: React.FC = React.memo(({ children }) => {
() => ({
SourceDefinitionService: new SourceDefinitionService(config.apiUrl, middlewares),
DestinationDefinitionService: new DestinationDefinitionService(config.apiUrl, middlewares),
DeploymentService: new DeploymentService(config.apiUrl, middlewares),
OperationService: new OperationService(config.apiUrl, middlewares),
HealthService: new HealthService(config.apiUrl, middlewares),
}),
Expand Down
13 changes: 0 additions & 13 deletions airbyte-webapp/src/core/domain/deployment/DeploymentService.ts

This file was deleted.

0 comments on commit ce201bc

Please sign in to comment.