Skip to content

Commit

Permalink
bulkdeployments
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDarsa committed Oct 12, 2023
1 parent d461448 commit 48df456
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/BulkDeployments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -19,6 +20,7 @@ interface BulkDeploymentsProps {
priority: string;
status: string;
created: string;
buildStep?: string;
environment: {
openshiftProjectName: string;
name: string;
Expand Down Expand Up @@ -72,6 +74,9 @@ const BulkDeployments: FC<BulkDeploymentsProps> = ({ deployments }) => (
<div className="started">{moment.utc(deployment.created).local().format('DD MMM YYYY, HH:mm:ss (Z)')}</div>
<div className={`status ${deployment.status}`}>
{deployment.status.charAt(0).toUpperCase() + deployment.status.slice(1)}
{!['complete', 'cancelled', 'failed'].includes(deployment.status) && deployment.buildStep && (
<HoverTag text={`Step: ${deployment.buildStep}`} />
)}
</div>
<div className="duration">{getDeploymentDuration(deployment)}</div>
<div>
Expand Down
1 change: 1 addition & 0 deletions src/lib/query/BulkDeploymentById.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default gql`
name
status
created
buildStep
started
completed
buildLog
Expand Down

0 comments on commit 48df456

Please sign in to comment.