Skip to content

Commit 8df4328

Browse files
committed
feat: add isRollbackTrigger to triggerCDNode service
1 parent 0513179 commit 8df4328

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.4.7",
3+
"version": "1.4.8",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Pages/Applications/DevtronApps/Details/CDPipeline/services.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const triggerCDNode = ({
5353
wfrId,
5454
runtimeParamsPayload,
5555
abortControllerRef,
56+
isRollbackTrigger = false,
5657
}: TriggerCDNodeServiceProps) => {
5758
const areRuntimeParamsConfigured =
5859
runtimeParamsPayload && (stageType === DeploymentNodeType.POSTCD || stageType === DeploymentNodeType.PRECD)
@@ -62,6 +63,7 @@ export const triggerCDNode = ({
6263
appId,
6364
ciArtifactId,
6465
cdWorkflowType: STAGE_MAP[stageType],
66+
isRollbackDeployment: isRollbackTrigger,
6567
...(areRuntimeParamsConfigured && runtimeParamsPayload),
6668
}
6769

src/Pages/Applications/DevtronApps/Details/CDPipeline/types.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export interface TriggerCDNodeServiceProps extends Pick<APIOptions, 'abortContro
118118
* Would be available only case of PRE/POST CD
119119
*/
120120
runtimeParamsPayload?: RuntimeParamsTriggerPayloadType
121+
isRollbackTrigger?: boolean
121122
}
122123

123124
export interface TriggerCDPipelinePayloadType
@@ -126,5 +127,6 @@ export interface TriggerCDPipelinePayloadType
126127
'pipelineId' | 'appId' | 'ciArtifactId' | 'runtimeParamsPayload' | 'deploymentWithConfig'
127128
> {
128129
cdWorkflowType: (typeof STAGE_MAP)[keyof typeof STAGE_MAP]
130+
isRollbackDeployment: boolean
129131
wfrIdForDeploymentWithSpecificTrigger?: number
130132
}

0 commit comments

Comments
 (0)