From 1b9eee4294424ff761209267e72277776a8b8e30 Mon Sep 17 00:00:00 2001 From: Arief Rahmansyah Date: Fri, 20 Oct 2023 14:39:55 +0700 Subject: [PATCH] If redeployment is still happening (endpoint status is still pending), the current deployment history shall be in Deployed status --- ui/src/pages/version/HistoryDetails.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/pages/version/HistoryDetails.js b/ui/src/pages/version/HistoryDetails.js index 26726ee67..f732022f3 100644 --- a/ui/src/pages/version/HistoryDetails.js +++ b/ui/src/pages/version/HistoryDetails.js @@ -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 Deployed; } @@ -92,7 +94,6 @@ const RevisionPanel = ({ deployments, deploymentsLoaded, endpoint }) => { {deployment.id === deployedRevision.id && ( Current )} - {/* {JSON.stringify(deployment.id)} */} ), },