refactor: use step.executionSteps[].dataOut
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
e73f33f3db
commit
b288dc8c35
@@ -4,6 +4,7 @@ import { GraphQLJSONObject } from 'graphql-type-json';
|
|||||||
const executionStepType = new GraphQLObjectType({
|
const executionStepType = new GraphQLObjectType({
|
||||||
name: 'ExecutionStep',
|
name: 'ExecutionStep',
|
||||||
fields: {
|
fields: {
|
||||||
|
id: { type: GraphQLString },
|
||||||
executionId: { type: GraphQLString },
|
executionId: { type: GraphQLString },
|
||||||
stepId: { type: GraphQLString },
|
stepId: { type: GraphQLString },
|
||||||
status: { type: GraphQLString },
|
status: { type: GraphQLString },
|
||||||
|
@@ -33,7 +33,6 @@ const stepType = new GraphQLObjectType({
|
|||||||
parameters: { type: GraphQLJSONObject },
|
parameters: { type: GraphQLJSONObject },
|
||||||
connection: { type: ConnectionType },
|
connection: { type: ConnectionType },
|
||||||
flow: { type: FlowType },
|
flow: { type: FlowType },
|
||||||
output: { type: GraphQLJSONObject },
|
|
||||||
position: { type: GraphQLInt },
|
position: { type: GraphQLInt },
|
||||||
status: { type: GraphQLString },
|
status: { type: GraphQLString },
|
||||||
executionSteps: {
|
executionSteps: {
|
||||||
|
@@ -39,6 +39,6 @@ export const processStepWithExecutions = (steps: IStep[]): any[] => {
|
|||||||
id: step.id,
|
id: step.id,
|
||||||
// TODO: replace with step.name once introduced
|
// TODO: replace with step.name once introduced
|
||||||
name: `${index + 1}. ${step.appKey}`,
|
name: `${index + 1}. ${step.appKey}`,
|
||||||
output: process(step.output, `step.${step.id}`),
|
output: process(step.executionSteps?.[0]?.dataOut || {}, `step.${step.id}`),
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
@@ -13,6 +13,7 @@ import {
|
|||||||
useSelected,
|
useSelected,
|
||||||
useFocused,
|
useFocused,
|
||||||
} from 'slate-react';
|
} from 'slate-react';
|
||||||
|
import type { IExecutionStep, IStep } from '@automatisch/types';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
serialize,
|
serialize,
|
||||||
|
@@ -5,7 +5,13 @@ export const GET_STEP_WITH_TEST_EXECUTIONS = gql`
|
|||||||
getStepWithTestExecutions(stepId: $stepId) {
|
getStepWithTestExecutions(stepId: $stepId) {
|
||||||
id
|
id
|
||||||
appKey
|
appKey
|
||||||
output
|
executionSteps {
|
||||||
|
id
|
||||||
|
executionId
|
||||||
|
stepId
|
||||||
|
status
|
||||||
|
dataOut
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
Reference in New Issue
Block a user