Openstatus www.openstatus.dev

😭 skip deprecated region (#1439)

* 😭

* πŸ€—

authored by

Thibault Le Ouay and committed by
GitHub
927c991c e6a0d9ae

+5 -5
+2 -2
apps/web/src/app/api/checker/cron/_cron.ts
··· 122 122 if (r.deprecated) { 123 123 // Let's uncomment this when we are ready to remove deprecated regions 124 124 // We should not use deprecated regions anymore 125 - // console.error(`Deprecated region ${region}`); 126 - // continue; 125 + console.error(`Deprecated region ${region}`); 126 + continue; 127 127 } 128 128 const response = createCronTask({ 129 129 row,
+2 -2
packages/db/script/region-migration.ts
··· 8 8 const monitors = z.array(selectMonitorSchema).parse(rawMonitors); 9 9 for (const monitor of monitors) { 10 10 const regions = monitor.regions.slice(); 11 - 12 11 // Asia Pacific 13 12 updateRegion("hkg", "sin", regions); 14 13 ··· 21 20 updateRegion("phx", "lax", regions); 22 21 updateRegion("sea", "sjc", regions); 23 22 updateRegion("yul", "yyz", regions); 23 + updateRegion("den", "dfw", regions); 24 24 25 25 // Europe 26 26 updateRegion("waw", "ams", regions); ··· 32 32 updateRegion("gig", "gru", regions); 33 33 updateRegion("scl", "gru", regions); 34 34 updateRegion("eze", "gru", regions); 35 - 36 35 const newRegions = regions.join(","); 36 + // console.log("new regions:",newRegions) 37 37 await db 38 38 .update(schema.monitor) 39 39 .set({ regions: newRegions })
+1 -1
packages/utils/index.ts
··· 263 263 location: "San Jose, California, USA", 264 264 flag: "πŸ‡ΊπŸ‡Έ", 265 265 continent: "North America", 266 - deprecated: true, 266 + deprecated: false, 267 267 provider: "fly", 268 268 }, 269 269 sea: {