diff --git a/package-lock.json b/package-lock.json index 99503cd04..6e7eb0d65 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-pre-6", + "version": "1.12.0-pre-7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-pre-6", + "version": "1.12.0-pre-7", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 5e737b1ae..4e67a8f7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-pre-6", + "version": "1.12.0-pre-7", "description": "Supporting common component library", "type": "module", "main": "dist/index.js", diff --git a/src/Shared/Components/CICDHistory/TriggerOutput.tsx b/src/Shared/Components/CICDHistory/TriggerOutput.tsx index 79690560d..08e59dde1 100644 --- a/src/Shared/Components/CICDHistory/TriggerOutput.tsx +++ b/src/Shared/Components/CICDHistory/TriggerOutput.tsx @@ -30,7 +30,7 @@ import { useAsync, useInterval, } from '../../../Common' -import { EMPTY_STATE_STATUS } from '../../constants' +import { DEPLOYMENT_STAGE_TO_NODE_MAP, EMPTY_STATE_STATUS } from '../../constants' import Artifacts from './Artifacts' import DeploymentDetailSteps from './DeploymentDetailSteps' import { DeploymentHistoryConfigDiff } from './DeploymentHistoryConfigDiff' @@ -88,8 +88,9 @@ const HistoryLogs: React.FC = ({ const paramsData = { appId, envId, - appName: `${triggerDetails.helmPackageName}.tgz`, + appName: triggerDetails.helmPackageName, workflowId: triggerDetails.id, + cdWorkflowType: DEPLOYMENT_STAGE_TO_NODE_MAP[triggerDetails.stage], } const CDBuildReportUrl = `app/cd-pipeline/workflow/download/${appId}/${envId}/${pipelineId}/${triggerId}` diff --git a/src/Shared/constants.tsx b/src/Shared/constants.tsx index d53848f04..a3f91e257 100644 --- a/src/Shared/constants.tsx +++ b/src/Shared/constants.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import { OptionType } from '@Common/Types' +import { DeploymentNodeType, OptionType } from '@Common/Types' import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType } from './types' @@ -555,3 +555,9 @@ export const Routes = { export const ENTERPRISE_SUPPORT_LINK = 'enterprise@devtron.ai' export const INVALID_LICENSE_KEY = 'inValid' + +export const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly> = { + [DeploymentStageType.DEPLOY]: DeploymentNodeType.CD, + [DeploymentStageType.POST]: DeploymentNodeType.POSTCD, + [DeploymentStageType.PRE]: DeploymentNodeType.PRECD, +}