Files
errors.bitreport.pt/ingest-api/src/lib/retiredProjects.ts
T
David SantosandCursor 8773f12b25
CI / Validate Docker build (pull_request) Failing after 12m46s
CI / Lint and typecheck admin-ui (pull_request) Failing after 13m16s
CI / Test api (pull_request) Failing after 13m20s
CI / Test ingest-api (pull_request) Successful in 15m35s
feat(hub): retire WDMI projects from error reporting (BIT-24704)
Block ingest for retired WDMI slugs, purge project data via migration,
remove WDMI runbooks, and add offboard-project helper for future retirements.

Co-authored-by: Cursor <[email protected]>
2026-06-08 14:26:06 +00:00

28 lines
675 B
TypeScript

/**
* Projects removed from the error reporting hub (BIT-24704).
* Ingest must reject these slugs even if a project row or key is recreated by mistake.
*/
export const RETIRED_PROJECT_SLUGS = new Set([
"wdmi",
"wdmi-store",
"crm-wdmi",
"wdmi-ubuntu",
]);
export function isRetiredProjectSlug(slug: string): boolean {
const _normalized = slug.trim().toLowerCase();
if (_normalized === "") {
return false;
}
if (RETIRED_PROJECT_SLUGS.has(_normalized)) {
return true;
}
if (_normalized.startsWith("wdmi-") || _normalized.endsWith("-wdmi")) {
return true;
}
if (_normalized.startsWith("crm-wdmi")) {
return true;
}
return false;
}