mirror of
https://github.com/harness/drone.git
synced 2025-05-12 23:20:10 +08:00
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:
parent
1dae31d608
commit
ec87c7933b
@ -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 }}>
|
||||||
|
Loading…
Reference in New Issue
Block a user