docs: refresh M5 live gate aggregator
This commit is contained in:
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user