Skip to content

Commit 17e617b

Browse files
Merge pull request #720 from devtron-labs/fix/chart-download-file-name-and-runner-param
fix: chart download type in pre/post deployment history
2 parents c24bf63 + 0032b0e commit 17e617b

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.10.0-patch-7-ng",
3+
"version": "1.10.0-patch-8-ng",
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
@@ -44,7 +44,7 @@ import { DeploymentHistoryConfigDiff } from './DeploymentHistoryConfigDiff'
4444
import { GitChanges, Scroller } from './History.components'
4545
import Artifacts from './Artifacts'
4646
import TriggerDetails from './TriggerDetails'
47-
import { EMPTY_STATE_STATUS } from '../../constants'
47+
import { DEPLOYMENT_STAGE_TO_NODE_MAP, EMPTY_STATE_STATUS } from '../../constants'
4848
import './cicdHistory.scss'
4949

5050
const HistoryLogs: React.FC<HistoryLogsProps> = ({
@@ -85,8 +85,9 @@ const HistoryLogs: React.FC<HistoryLogsProps> = ({
8585
const paramsData = {
8686
appId,
8787
envId,
88-
appName: `${triggerDetails.helmPackageName}.tgz`,
88+
appName: triggerDetails.helmPackageName,
8989
workflowId: triggerDetails.id,
90+
cdWorkflowType: DEPLOYMENT_STAGE_TO_NODE_MAP[triggerDetails.stage],
9091
}
9192

9293
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
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType } from './types'
1919

2020
export const ARTIFACT_STATUS = {
@@ -537,3 +537,9 @@ export const Routes = {
537537
export const ENTERPRISE_SUPPORT_LINK = 'enterprise@devtron.ai'
538538

539539
export const INVALID_LICENSE_KEY = 'inValid'
540+
541+
export const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>> = {
542+
[DeploymentStageType.DEPLOY]: DeploymentNodeType.CD,
543+
[DeploymentStageType.POST]: DeploymentNodeType.POSTCD,
544+
[DeploymentStageType.PRE]: DeploymentNodeType.PRECD,
545+
}

0 commit comments

Comments
 (0)