docs: refresh M5 live gate aggregator

This commit is contained in:
HWLAB Code Queue
2026-05-22 11:52:11 +00:00
parent f933a81c83
commit 80e8a2f208
5 changed files with 471 additions and 32 deletions
+6 -2
View File
@@ -17,11 +17,15 @@ export function findDeprecatedPublicEndpoints(text) {
export function isDeprecatedEndpointAllowedInActiveReport(report, endpoint) {
const legacyEndpoint = report?.runtimeSmoke?.legacyPublicEndpoint;
const deprecatedEndpoint = report?.deprecatedEndpoints?.find?.((item) => item?.endpoint === endpoint);
return Boolean(
legacyEndpoint &&
(legacyEndpoint &&
legacyEndpoint.endpoint === endpoint &&
legacyEndpoint.status === "deprecated" &&
legacyEndpoint.activeGreenEligible === false
legacyEndpoint.activeGreenEligible === false) ||
(deprecatedEndpoint &&
String(deprecatedEndpoint.status ?? "").includes("deprecated") &&
deprecatedEndpoint.activeGreenEligible === false)
);
}