Allow bulk records for manual trigger (#14725)

https://github.com/user-attachments/assets/d6c565eb-9a29-4830-9396-5f979c8caa7b

- Added a new component for manual trigger (mostly duplicated from
previous one). Will remove the old one once all data are migrated
- Updated schema output so the current item of the iterator can be typed

Todo left:
- migrate old triggers
- add an util to search iterator output. Today current item fields will
be displayed as not found
- set new manual triggers for workflow runs
This commit is contained in:
Thomas Trompette
2025-09-26 14:17:40 +02:00
committed by GitHub
parent 584389e17f
commit 2c34e1fb8a
52 changed files with 882 additions and 73 deletions
@@ -2,6 +2,7 @@ import { Field, InputType } from '@nestjs/graphql';
import graphqlTypeJson from 'graphql-type-json';
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
import { type WorkflowAction } from 'src/modules/workflow/workflow-executor/workflow-actions/types/workflow-action.type';
import { type WorkflowTrigger } from 'src/modules/workflow/workflow-trigger/types/workflow-trigger.type';
@@ -12,4 +13,10 @@ export class ComputeStepOutputSchemaInput {
nullable: false,
})
step: WorkflowTrigger | WorkflowAction;
@Field(() => UUIDScalarType, {
description: 'Workflow version ID',
nullable: false,
})
workflowVersionId: string;
}
@@ -37,11 +37,12 @@ export class WorkflowBuilderResolver {
@Mutation(() => graphqlTypeJson)
async computeStepOutputSchema(
@AuthWorkspace() { id: workspaceId }: Workspace,
@Args('input') { step }: ComputeStepOutputSchemaInput,
@Args('input') { step, workflowVersionId }: ComputeStepOutputSchemaInput,
): Promise<OutputSchema> {
return this.workflowSchemaWorkspaceService.computeStepOutputSchema({
step,
workspaceId,
workflowVersionId,
});
}
}