Merge pull request #2791 from pikasTech/fix/2744-plan-probe-summary

仅展示异常 registry probe
This commit is contained in:
Lyon
2026-07-21 22:03:15 +08:00
committed by GitHub
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"),
};
}