Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 3 additions & 2 deletions src/Shared/Components/CICDHistory/TriggerOutput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HistoryLogsProps> = ({
Expand Down Expand Up @@ -85,8 +85,9 @@ const HistoryLogs: React.FC<HistoryLogsProps> = ({
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}`
Expand Down
8 changes: 7 additions & 1 deletion src/Shared/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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<Record<DeploymentStageType, DeploymentNodeType>> = {
[DeploymentStageType.DEPLOY]: DeploymentNodeType.CD,
[DeploymentStageType.POST]: DeploymentNodeType.POSTCD,
[DeploymentStageType.PRE]: DeploymentNodeType.PRECD,
}