fix: [AH-592]: use pipeline execution id instead of execution name (#2902)

* fix: [AH-592]: use pipeline execution id instead of execution name
This commit is contained in:
Shivanand Sonnad 2024-10-29 16:55:26 +00:00 committed by Harness
parent 1dae31d608
commit ec87c7933b

View File

@ -94,7 +94,7 @@ export const ServiceListCell: CellType = ({ row }) => {
export const DeploymentPipelineCell: CellType = ({ row }) => { export const DeploymentPipelineCell: CellType = ({ row }) => {
const { original } = row const { original } = row
const { pipelineId, lastPipelineExecutionName } = original || {} const { pipelineId, lastPipelineExecutionId } = original || {}
const { getString } = useStrings() const { getString } = useStrings()
const { scope } = useAppStore() const { scope } = useAppStore()
const { getRouteToPipelineExecutionView } = useParentUtils() const { getRouteToPipelineExecutionView } = useParentUtils()
@ -107,14 +107,14 @@ export const DeploymentPipelineCell: CellType = ({ row }) => {
orgIdentifier: scope.orgIdentifier, orgIdentifier: scope.orgIdentifier,
projectIdentifier: scope.projectIdentifier, projectIdentifier: scope.projectIdentifier,
pipelineIdentifier: defaultTo(pipelineId, ''), pipelineIdentifier: defaultTo(pipelineId, ''),
executionIdentifier: defaultTo(lastPipelineExecutionName, ''), executionIdentifier: defaultTo(lastPipelineExecutionId, ''),
module: 'cd' module: 'cd'
})}> })}>
{lastPipelineExecutionName} {lastPipelineExecutionId}
</Link> </Link>
) : ( ) : (
<Text color={Color.GREY_900} font={{ variation: FontVariation.BODY }}> <Text color={Color.GREY_900} font={{ variation: FontVariation.BODY }}>
{lastPipelineExecutionName} {lastPipelineExecutionId}
</Text> </Text>
)} )}
<Text color={Color.GREY_500} font={{ variation: FontVariation.SMALL }}> <Text color={Color.GREY_500} font={{ variation: FontVariation.SMALL }}>