You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
options.logger.info(`Transform found: ${params.transformId}${idSuffix} already exists with state: ${transform.state}`);
61
+
options.logger.info(`Transform found: ${params.transformId}${idSuffix} already exists with state: ${transform.state}. To update this transform, please provide an idSuffix (e.g. v2)`);
returnoptions.setOutput('noUpdate',`No update required as desired Transform with new ID: '${params.transformId}${idSuffix}' equals to existing transform with ID: '${actualTransformId}'.`);
99
-
}
74
+
if(actualTransform)returnactualTransform;
75
+
// Stop all running transforms, as we expect only one transform to run
// If an existing transform exists, the transform should be stopped as we only want one transform running at a time (this is by design of how this action works, not ES)
options.logger.info(`No running Transform found with primary ID: ${params.transformId}. Creating new transform with ID: '${params.transformId}${idSuffix}'.`);
Copy file name to clipboardExpand all lines: api-builder-plugin-fn-elasticsearch/src/flow-nodes.yml
+1-9Lines changed: 1 addition & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -966,7 +966,7 @@ flow-nodes:
966
966
type: string
967
967
idSuffix:
968
968
name: Transform-ID Suffix
969
-
description: Mandatory if an existing transform is to be replaced. The Transform-ID suffix is used to generate the final Transform-ID, which is used to create the transform. This suffix is especially necessary if an existing transform is used to be replaced. Existing transforms with the primary transforms ID are searched for, stopped/deleted and a new transform with transform ID + suffix is created.
969
+
description: Mandatory if an existing transform is to be replaced. The Transform-ID suffix is used to generate the final Transform-ID, which is used to create the transform. Existing transforms with the primary transforms ID are searched for, stopped/deleted and a new transform with transform ID + suffix is created.
970
970
required: false
971
971
schema:
972
972
type: string
@@ -976,14 +976,6 @@ flow-nodes:
976
976
required: true
977
977
schema:
978
978
type: object
979
-
replaceWhenChanged:
980
-
name: Recreate only when changed
981
-
description: If set, a possibly existing transform is only replaced if the configuration is different. For this purpose, the entire transform configuration is compared. If no transform exists, this parameter is ignored and a new job is created.
982
-
required: false
983
-
initialType: boolean
984
-
schema:
985
-
default: false
986
-
type: boolean
987
979
deletePreviousTransform:
988
980
name: Delete previous transform
989
981
description: If an existing transform with the same primary ID has been found which should be replaced, this switch decides whether the old transform should be deleted. If the previous transform is running, it will be stopped automatically.
.and.to.have.property('message','Cannot replace existing transform using the same Transform-ID: \'apigw-summary-transform-hourly\'. Please provide an ID-Suffix.');
expect(value).to.equal('No update required as desired Transform with new ID: \'traffic-summary-hourly\' equals to existing transform with ID: \'apigw-summary-transform-hourly\'.');
0 commit comments