Skip to content

Commit

Permalink
If redeployment is still happening (endpoint status is still pending)…
Browse files Browse the repository at this point in the history
…, the current deployment history shall be in Deployed status
  • Loading branch information
Arief Rahmansyah committed Oct 20, 2023
1 parent 7a32f96 commit 1b9eee4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/pages/version/HistoryDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ const DeploymentStatus = ({
if (status === "running" || status === "serving") {
if (
deployment.id === deployedRevision.id &&
(endpointStatus === "running" || endpointStatus === "serving")
(endpointStatus === "pending" ||
endpointStatus === "running" ||
endpointStatus === "serving")
) {
return <EuiHealth color="success">Deployed</EuiHealth>;
}
Expand Down Expand Up @@ -92,7 +94,6 @@ const RevisionPanel = ({ deployments, deploymentsLoaded, endpoint }) => {
{deployment.id === deployedRevision.id && (
<EuiBadge color="default">Current</EuiBadge>
)}
{/* {JSON.stringify(deployment.id)} */}
</>
),
},
Expand Down

0 comments on commit 1b9eee4

Please sign in to comment.