feat(hub): retire WDMI projects from error reporting (BIT-24704)
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

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]>
This commit is contained in:
David SantosandCursor committed 2026-06-08 14:26:06 +00:00
1 parent ea41eb2205
commit 8773f12b25
24 files changed
+196 -1858

No files matched your search

@@ -0,0 +1,5 @@
-- Irreversible: WDMI project rows and incident history were purged in the up migration (BIT-24704).
-- Re-onboarding WDMI slugs is intentionally blocked in ingest-api (`retiredProjects.ts`).
BEGIN;
COMMIT;
@@ -0,0 +1,29 @@
BEGIN;
-- Retire WDMI-family projects from the hub (BIT-24704).
-- Slug families: wdmi, wdmi-*, *-wdmi, crm-wdmi*.
UPDATE er_ingest_keys k
INNER JOIN er_projects p ON p.id = k.project_id
SET k.status = 'revoked',
k.revoked_at = NOW(6)
WHERE LOWER(p.slug) = 'wdmi'
OR LOWER(p.slug) LIKE 'wdmi-%'
OR LOWER(p.slug) LIKE '%-wdmi'
OR LOWER(p.slug) LIKE 'crm-wdmi%';
UPDATE er_collector_sources cs
INNER JOIN er_projects p ON p.id = cs.project_id
SET cs.is_active = FALSE
WHERE LOWER(p.slug) = 'wdmi'
OR LOWER(p.slug) LIKE 'wdmi-%'
OR LOWER(p.slug) LIKE '%-wdmi'
OR LOWER(p.slug) LIKE 'crm-wdmi%';
DELETE FROM er_projects
WHERE LOWER(slug) = 'wdmi'
OR LOWER(slug) LIKE 'wdmi-%'
OR LOWER(slug) LIKE '%-wdmi'
OR LOWER(slug) LIKE 'crm-wdmi%';
COMMIT;