Hide live capacity for inactive provisioning operations (Refs #85)
This commit is contained in:
@@ -95,8 +95,9 @@ function sourceDetails(source: Omit<ProvisioningSource, 'label' | 'href'>): Prov
|
||||
href: row ? `/maintenance?view=activity#job-${encodeURIComponent(id)}` : null };
|
||||
}
|
||||
|
||||
/** These are current pool snapshots, not a second admission/eligibility engine. */
|
||||
/** Active operations get current pool snapshots, not a second admission/eligibility engine. */
|
||||
function capacityFor(deployment: ProvisioningDeployment, evaluatedAt: string): ProvisioningCapacity {
|
||||
if (!['queued', 'waiting', 'running', 'awaiting-health'].includes(deployment.state)) return { evaluatedAt, pools: [] };
|
||||
const settings = fleetSettings();
|
||||
const pools: ProvisioningCapacity['pools'] = [];
|
||||
if (deployment.action === 'create' || deployment.action === 'rebuild') {
|
||||
|
||||
Reference in New Issue
Block a user