Deprecate workspace datasoure (#16507)

This commit is contained in:
Weiko
2025-12-11 18:27:49 +01:00
committed by GitHub
parent 3dd2684254
commit 083a038f8a
39 changed files with 200 additions and 1929 deletions
@@ -93,9 +93,9 @@ describe('GoogleAPIsService', () => {
return {};
}),
getDataSourceForWorkspace: jest
getGlobalWorkspaceDataSource: jest
.fn()
.mockImplementation(() => mockWorkspaceDataSource),
.mockResolvedValue(mockWorkspaceDataSource),
executeInWorkspaceContext: jest
.fn()
.mockImplementation((_authContext: any, fn: () => any) => fn()),
@@ -126,9 +126,7 @@ export class GoogleAPIsService {
);
const workspaceDataSource =
await this.globalWorkspaceOrmManager.getDataSourceForWorkspace(
workspaceId,
);
await this.globalWorkspaceOrmManager.getGlobalWorkspaceDataSource();
await workspaceDataSource.transaction(
async (manager: WorkspaceEntityManager) => {
@@ -92,9 +92,9 @@ describe('MicrosoftAPIsService', () => {
return {};
}),
getDataSourceForWorkspace: jest
getGlobalWorkspaceDataSource: jest
.fn()
.mockImplementation(() => mockWorkspaceDataSource),
.mockResolvedValue(mockWorkspaceDataSource),
executeInWorkspaceContext: jest
.fn()
.mockImplementation((_authContext: any, fn: () => any) => fn()),
@@ -107,9 +107,7 @@ export class MicrosoftAPIsService {
);
const workspaceDataSource =
await this.globalWorkspaceOrmManager.getDataSourceForWorkspace(
workspaceId,
);
await this.globalWorkspaceOrmManager.getGlobalWorkspaceDataSource();
await workspaceDataSource.transaction(
async (manager: WorkspaceEntityManager) => {