From 795065810d98c42f207fab856730762008f6553d Mon Sep 17 00:00:00 2001 From: Narciso Date: Thu, 13 Aug 2026 10:27:02 -0400 Subject: [PATCH] chore: trim multi-line comments to single lines Tightens a handful of two-line comments left over from earlier iterations (Health tab / failed-deployment classification) down to one line each, no behavior change. --- packages/server/src/services/deployment.ts | 12 ++++-------- packages/server/src/services/server-health.ts | 3 +-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/packages/server/src/services/deployment.ts b/packages/server/src/services/deployment.ts index 3d5a5915d..cf6b3b7b4 100644 --- a/packages/server/src/services/deployment.ts +++ b/packages/server/src/services/deployment.ts @@ -944,8 +944,7 @@ export const findAllDeploymentsCentralized = async ( }); }; -// Kept separate from getApplicationIdsInOrg/getComposeIdsInOrg above to avoid -// touching that existing code path; adds projectId/environmentId filtering. +// Kept separate from getApplicationIdsInOrg/getComposeIdsInOrg to avoid touching that path. type FailedDeploymentIdFilters = { projectId?: string; environmentId?: string }; async function getApplicationIdsForFailedDeployments( @@ -1038,8 +1037,7 @@ async function mapWithConcurrency( export type FailedDeploymentFilters = z.infer; -// Same org-wide scope as findAllDeploymentsCentralized, narrowed to failed -// deployments, each tagged with a classifyFailure() guess from its log tail. +// Same org-wide scope as findAllDeploymentsCentralized, narrowed to failed deployments. export const findFailedDeploymentsCentralized = async ( orgId: string, accessedServices: string[] | null, @@ -1063,8 +1061,7 @@ export const findFailedDeploymentsCentralized = async ( return []; } - // createdAt is stored as text via toISOString(); normalize the filters the - // same way so the string range comparison below stays valid. + // createdAt is stored as text via toISOString(); normalize filters the same way. const dateFrom = filters.dateFrom ? new Date(filters.dateFrom).toISOString() : undefined; @@ -1093,8 +1090,7 @@ export const findFailedDeploymentsCentralized = async ( limit: 200, }); - // Skip further attempts to a server once it's timed out once, so a batch - // of failures on one unreachable host doesn't pay the SSH timeout N times. + // Skip a server again once it's timed out, so one dead host doesn't cost N SSH timeouts. const deadServers = new Set(); return mapWithConcurrency( failed, diff --git a/packages/server/src/services/server-health.ts b/packages/server/src/services/server-health.ts index 5da66a511..a7d5a21a2 100644 --- a/packages/server/src/services/server-health.ts +++ b/packages/server/src/services/server-health.ts @@ -219,8 +219,7 @@ const getNetworksIpUsage = async ( return rows.sort((a, b) => (b.percentUsed ?? -1) - (a.percentUsed ?? -1)); }; -// Sums Application memoryReservation/cpuReservation (bytes/NanoCPUs, see -// calculateResources in utils/docker/utils.ts). Compose has no such columns. +// Sums Application memoryReservation/cpuReservation; Compose has no such columns. export const getReservationSummary = async ( orgId: string, serverId?: string,