From 23a9f8ad8c68cf827b573aceccc03fa69d5c8b7c Mon Sep 17 00:00:00 2001 From: Simone Cavalli Date: Thu, 11 Jun 2026 06:26:24 +0200 Subject: [PATCH] feat(07-unified-service-catalog): add net-new services informational check to validation script - Check 6: Count of services with migrated_from IS NULL (net-new rows created via /admin/catalog after migration) - Printed as informational line at the end of validation output - Does not fail validation if count is zero (expected for fresh test runs) Co-Authored-By: Claude Haiku 4.5 --- scripts/validate-services-migration.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/validate-services-migration.ts b/scripts/validate-services-migration.ts index 20fccbb..70bad65 100644 --- a/scripts/validate-services-migration.ts +++ b/scripts/validate-services-migration.ts @@ -99,6 +99,13 @@ async function validate() { console.log("PASS: no duplicate names in services"); } + // Check 6: informational — count of net-new (non-migrated) services + const [netNew] = await db + .select({ n: sql`count(*)::int` }) + .from(services) + .where(sql`migrated_from IS NULL`); + console.log(`INFO: ${netNew.n} net-new services created post-migration (migrated_from IS NULL)`); + console.log(`\n${failures === 0 ? "ALL CHECKS PASSED" : `${failures} CHECK(S) FAILED`}`); process.exit(failures === 0 ? 0 : 1); }