Remove versions from logicFunction (#17540)
## Summary - Remove `latestVersion` and `publishedVersions` columns from `LogicFunction` entity - Remove version parameter from logic function execution, build, and source code retrieval - Update all related services, DTOs, utilities, and tests - Add database migration to drop the version columns
This commit is contained in:
-2
@@ -49,7 +49,6 @@ export class CreateLogicFunctionActionHandlerService extends WorkspaceMigrationR
|
||||
private async buildAndSaveLogicFunction(logicFunction: FlatLogicFunction) {
|
||||
const draftFileFolder = getLogicFunctionFolderOrThrow({
|
||||
flatLogicFunction: logicFunction,
|
||||
version: 'draft',
|
||||
});
|
||||
|
||||
if (isDefined(logicFunction?.code)) {
|
||||
@@ -69,7 +68,6 @@ export class CreateLogicFunctionActionHandlerService extends WorkspaceMigrationR
|
||||
}
|
||||
await this.functionBuildService.buildAndUpload({
|
||||
flatLogicFunction: logicFunction,
|
||||
version: 'draft',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
-2
@@ -82,14 +82,12 @@ export class UpdateLogicFunctionActionHandlerService extends WorkspaceMigrationR
|
||||
}) {
|
||||
const fileFolder = getLogicFunctionFolderOrThrow({
|
||||
flatLogicFunction,
|
||||
version: 'draft',
|
||||
});
|
||||
|
||||
await this.fileStorageService.writeFolder(code, fileFolder);
|
||||
|
||||
await this.functionBuildService.buildAndUpload({
|
||||
flatLogicFunction,
|
||||
version: 'draft',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user