fix: 仅展示异常 registry probe

This commit is contained in:
pikastech
2026-07-21 16:02:26 +02:00
parent a8530ad532
commit b58de4bdd5
2 changed files with 2 additions and 3 deletions
@@ -427,8 +427,7 @@ test("PaC compact release plan keeps bounded registry probe results", () => {
enabled: true,
serviceCount: 2,
statusCounts: { present: 1, missing: 1 },
services: [
{ serviceId: "api", status: "present" },
exceptions: [
{ serviceId: "worker", status: "missing" },
],
});
@@ -1726,7 +1726,7 @@ function compactRegistryProbe(value: unknown): Record<string, unknown> | null {
enabled: probe.enabled === true,
serviceCount: services.length,
statusCounts,
services,
exceptions: services.filter((service) => service.status !== "present"),
};
}