From 48df4566111b476d97be264d2a3233474db2e6c0 Mon Sep 17 00:00:00 2001 From: Davit Date: Thu, 12 Oct 2023 09:47:02 +0400 Subject: [PATCH] bulkdeployments --- src/components/BulkDeployments/index.tsx | 5 +++++ src/lib/query/BulkDeploymentById.js | 1 + 2 files changed, 6 insertions(+) diff --git a/src/components/BulkDeployments/index.tsx b/src/components/BulkDeployments/index.tsx index e6d05296..2db907ec 100644 --- a/src/components/BulkDeployments/index.tsx +++ b/src/components/BulkDeployments/index.tsx @@ -2,6 +2,7 @@ import React, { FC } from 'react'; import CancelDeployment from 'components/CancelDeployment'; import { getDeploymentDuration } from 'components/Deployment'; +import HoverTag from 'components/HoverTag'; import DeploymentLink from 'components/link/Deployment'; import DeploymentsLink from 'components/link/Deployments'; import ProjectLink from 'components/link/Project'; @@ -19,6 +20,7 @@ interface BulkDeploymentsProps { priority: string; status: string; created: string; + buildStep?: string; environment: { openshiftProjectName: string; name: string; @@ -72,6 +74,9 @@ const BulkDeployments: FC = ({ deployments }) => (
{moment.utc(deployment.created).local().format('DD MMM YYYY, HH:mm:ss (Z)')}
{deployment.status.charAt(0).toUpperCase() + deployment.status.slice(1)} + {!['complete', 'cancelled', 'failed'].includes(deployment.status) && deployment.buildStep && ( + + )}
{getDeploymentDuration(deployment)}
diff --git a/src/lib/query/BulkDeploymentById.js b/src/lib/query/BulkDeploymentById.js index ee4280c0..b06bf3d0 100644 --- a/src/lib/query/BulkDeploymentById.js +++ b/src/lib/query/BulkDeploymentById.js @@ -7,6 +7,7 @@ export default gql` name status created + buildStep started completed buildLog