diff --git a/package-lock.json b/package-lock.json index 72fbaba6f..5f3dfc019 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.10.0-patch-7-ng", + "version": "1.10.0-patch-8-ng", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.10.0-patch-7-ng", + "version": "1.10.0-patch-8-ng", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 470722e11..005bbdc26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.10.0-patch-7-ng", + "version": "1.10.0-patch-8-ng", "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 4371257a8..8ec54e94d 100644 --- a/src/Shared/Components/CICDHistory/TriggerOutput.tsx +++ b/src/Shared/Components/CICDHistory/TriggerOutput.tsx @@ -44,7 +44,7 @@ import { DeploymentHistoryConfigDiff } from './DeploymentHistoryConfigDiff' import { GitChanges, Scroller } from './History.components' import Artifacts from './Artifacts' import TriggerDetails from './TriggerDetails' -import { EMPTY_STATE_STATUS } from '../../constants' +import { DEPLOYMENT_STAGE_TO_NODE_MAP, EMPTY_STATE_STATUS } from '../../constants' import './cicdHistory.scss' const HistoryLogs: React.FC = ({ @@ -85,8 +85,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 fe2f49683..be57e588b 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' export const ARTIFACT_STATUS = { @@ -537,3 +537,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, +}