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
@@ -10,8 +10,6 @@ const DEFAULT_LOGIC_FUNCTION_GQL_FIELDS = `
|
||||
name
|
||||
description
|
||||
runtime
|
||||
latestVersion
|
||||
publishedVersions
|
||||
createdAt
|
||||
updatedAt
|
||||
`;
|
||||
|
||||
+1
-5
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
-2
@@ -7,8 +7,6 @@ export type PublishLogicFunctionFactoryInput = {
|
||||
const DEFAULT_LOGIC_FUNCTION_GQL_FIELDS = `
|
||||
id
|
||||
name
|
||||
latestVersion
|
||||
publishedVersions
|
||||
`;
|
||||
|
||||
export const publishLogicFunctionQueryFactory = ({
|
||||
|
||||
-1
@@ -14,7 +14,6 @@ const DEFAULT_LOGIC_FUNCTION_GQL_FIELDS = `
|
||||
id
|
||||
name
|
||||
description
|
||||
latestVersion
|
||||
`;
|
||||
|
||||
export const updateLogicFunctionQueryFactory = ({
|
||||
|
||||
Reference in New Issue
Block a user