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
@@ -10,8 +10,6 @@ const DEFAULT_LOGIC_FUNCTION_GQL_FIELDS = `
name
description
runtime
latestVersion
publishedVersions
createdAt
updatedAt
`;
@@ -3,7 +3,6 @@ import gql from 'graphql-tag';
export type ExecuteLogicFunctionFactoryInput = {
id: string;
payload: Record<string, unknown>;
version?: string;
};
const DEFAULT_EXECUTION_RESULT_GQL_FIELDS = `
@@ -29,9 +28,6 @@ export const executeLogicFunctionQueryFactory = ({
}
`,
variables: {
input: {
...input,
version: input.version ?? 'latest',
},
input,
},
});
@@ -7,8 +7,6 @@ export type PublishLogicFunctionFactoryInput = {
const DEFAULT_LOGIC_FUNCTION_GQL_FIELDS = `
id
name
latestVersion
publishedVersions
`;
export const publishLogicFunctionQueryFactory = ({
@@ -14,7 +14,6 @@ const DEFAULT_LOGIC_FUNCTION_GQL_FIELDS = `
id
name
description
latestVersion
`;
export const updateLogicFunctionQueryFactory = ({