Skip to content

Commit 7e61249

Browse files
Merge pull request #723 from devtron-labs/fix-ng-changes-develop-sync
fix: derive helmPackageName from BE
2 parents 74e8a7d + 8204b00 commit 7e61249

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
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.12.0-pre-6",
3+
"version": "1.12.0-pre-7",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/CICDHistory/TriggerOutput.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
useAsync,
3131
useInterval,
3232
} from '../../../Common'
33-
import { EMPTY_STATE_STATUS } from '../../constants'
33+
import { DEPLOYMENT_STAGE_TO_NODE_MAP, EMPTY_STATE_STATUS } from '../../constants'
3434
import Artifacts from './Artifacts'
3535
import DeploymentDetailSteps from './DeploymentDetailSteps'
3636
import { DeploymentHistoryConfigDiff } from './DeploymentHistoryConfigDiff'
@@ -88,8 +88,9 @@ const HistoryLogs: React.FC<HistoryLogsProps> = ({
8888
const paramsData = {
8989
appId,
9090
envId,
91-
appName: `${triggerDetails.helmPackageName}.tgz`,
91+
appName: triggerDetails.helmPackageName,
9292
workflowId: triggerDetails.id,
93+
cdWorkflowType: DEPLOYMENT_STAGE_TO_NODE_MAP[triggerDetails.stage],
9394
}
9495

9596
const CDBuildReportUrl = `app/cd-pipeline/workflow/download/${appId}/${envId}/${pipelineId}/${triggerId}`

src/Shared/constants.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { OptionType } from '@Common/Types'
17+
import { DeploymentNodeType, OptionType } from '@Common/Types'
1818

1919
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType } from './types'
2020

@@ -555,3 +555,9 @@ export const Routes = {
555555
export const ENTERPRISE_SUPPORT_LINK = 'enterprise@devtron.ai'
556556

557557
export const INVALID_LICENSE_KEY = 'inValid'
558+
559+
export const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>> = {
560+
[DeploymentStageType.DEPLOY]: DeploymentNodeType.CD,
561+
[DeploymentStageType.POST]: DeploymentNodeType.POSTCD,
562+
[DeploymentStageType.PRE]: DeploymentNodeType.PRECD,
563+
}

0 commit comments

Comments
 (0)