8726 workflow add a test button in workflow code step (#9016)
- add test button to workflow code step - add test tab to workflow code step https://github.com/user-attachments/assets/e180a827-7321-49a2-8026-88490c557da2  
This commit is contained in:
@ -55,7 +55,7 @@ export class BaseGraphQLError extends GraphQLError {
|
||||
}
|
||||
|
||||
if (extensions?.extensions) {
|
||||
throw Error(
|
||||
throw new Error(
|
||||
'Pass extensions directly as the third argument of the ApolloError constructor: `new ' +
|
||||
'ApolloError(message, code, {myExt: value})`, not `new ApolloError(message, code, ' +
|
||||
'{extensions: {myExt: value}})`',
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
export const BASE_TYPESCRIPT_PROJECT_INPUT_SCHEMA = {
|
||||
a: null,
|
||||
b: null,
|
||||
};
|
||||
@ -17,11 +17,4 @@ export class UpdateWorkflowVersionStepInput {
|
||||
nullable: false,
|
||||
})
|
||||
step: WorkflowAction;
|
||||
|
||||
@Field(() => Boolean, {
|
||||
description: 'Boolean to check if we need to update stepOutput',
|
||||
nullable: true,
|
||||
defaultValue: true,
|
||||
})
|
||||
shouldUpdateStepOutput: boolean;
|
||||
}
|
||||
|
||||
@ -37,17 +37,12 @@ export class WorkflowVersionStepResolver {
|
||||
async updateWorkflowVersionStep(
|
||||
@AuthWorkspace() { id: workspaceId }: Workspace,
|
||||
@Args('input')
|
||||
{
|
||||
step,
|
||||
workflowVersionId,
|
||||
shouldUpdateStepOutput,
|
||||
}: UpdateWorkflowVersionStepInput,
|
||||
{ step, workflowVersionId }: UpdateWorkflowVersionStepInput,
|
||||
): Promise<WorkflowActionDTO> {
|
||||
return this.workflowVersionStepWorkspaceService.updateWorkflowVersionStep({
|
||||
workspaceId,
|
||||
workflowVersionId,
|
||||
step,
|
||||
shouldUpdateStepOutput,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user