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:
Charles Bochet
2026-01-30 14:30:49 +01:00
committed by GitHub
parent 077cfeffca
commit 6eebf6f23a
64 changed files with 55 additions and 480 deletions
@@ -120,7 +120,6 @@ export class LogicFunctionResolver {
return await this.logicFunctionService.getLogicFunctionSourceCode(
workspaceId,
input.id,
input.version,
);
} catch (error) {
return logicFunctionGraphQLApiExceptionHandler(error);
@@ -199,13 +198,12 @@ export class LogicFunctionResolver {
@AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
) {
try {
const { id, payload, version } = input;
const { id, payload } = input;
return await this.logicFunctionService.executeOneLogicFunction({
id,
workspaceId,
payload,
version,
});
} catch (error) {
return logicFunctionGraphQLApiExceptionHandler(error);