File tree Expand file tree Collapse file tree 3 files changed +3
-14
lines changed
Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,7 @@ const deleteStep: MutationResolvers['deleteStep'] = async (
4040 }
4141
4242 const stepIds = steps . map ( ( step ) => step . id )
43-
44- /**
45- * NOTE: do not delete execution steps
46- * The deletion causes RDS CPU Utilisation to spike
47- */
48- // await Step.relatedQuery('executionSteps', trx).for(stepIds).delete()
43+ await Step . relatedQuery ( 'executionSteps' , trx ) . for ( stepIds ) . delete ( )
4944 await Step . query ( trx ) . findByIds ( stepIds ) . delete ( )
5045
5146 await steps [ 0 ] . flow
Original file line number Diff line number Diff line change @@ -25,13 +25,7 @@ export async function getTestExecutionSteps(
2525
2626 if ( flow . testExecution && ! ignoreTestExecutionId ) {
2727 const testExecutionSteps = flow . testExecution . executionSteps
28-
29- /**
30- * NOTE: filters out test execution steps for steps that have been deleted
31- */
32- testExecutionSteps
33- . filter ( ( e ) => e . step )
34- . sort ( ( a , b ) => a . step . position - b . step . position )
28+ testExecutionSteps . sort ( ( a , b ) => a . step . position - b . step . position )
3529
3630 /**
3731 * Sanity check to ensure not more than 1 execution step per step is returned
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const testStep = async (options: TestStepOptions): Promise<TestStepResult> => {
3838
3939 const testExecutionSteps = await getTestExecutionSteps ( flow . id )
4040 const testActionExecutionSteps = testExecutionSteps . filter (
41- ( executionStep ) => executionStep . step && executionStep . step . isAction ,
41+ ( executionStep ) => executionStep . step . isAction ,
4242 )
4343
4444 /**
You can’t perform that action at this time.
0 commit comments