Openstatus www.openstatus.dev

chore: order inactive monitors

authored by

Maximilian Kaske and committed by
Maximilian Kaske
d77fbcf3 73cc277b

+5 -2
+2
apps/web/src/components/data-table/monitor/data-table.tsx
··· 73 73 pagination, 74 74 sorting, 75 75 }, 76 + // @ts-expect-error - REMINDER: unfortunately we cannot pass a function from a RSC to a client component 77 + getRowId: (row, index) => row.monitor?.id?.toString() ?? index, 76 78 onPaginationChange: setPagination, 77 79 getPaginationRowModel: getPaginationRowModel(), 78 80 onColumnFiltersChange: setColumnFilters,
+2 -2
apps/workflows/src/scripts/tinybird.ts
··· 28 28 const date = new Date(); 29 29 date.setDate(date.getDate() - days); 30 30 const timestamp = date.getTime(); 31 - console.log(`${days}: ${timestamp}`); 31 + console.log(`${days}d back: ${timestamp}`); 32 32 return timestamp; 33 33 } 34 34 ··· 95 95 const lastTwoWeeks = calculatePastTimestamp(14); 96 96 const lastThreeMonths = calculatePastTimestamp(90); 97 97 const lastYear = calculatePastTimestamp(365); 98 - const _lastTwoYears = calculatePastTimestamp(730); 98 + // const _lastTwoYears = calculatePastTimestamp(730); 99 99 100 100 const starters = await getWorkspaceIdsByPlan("starter"); 101 101 const teams = await getWorkspaceIdsByPlan("team");
+1
packages/api/src/router/monitor.ts
··· 627 627 with: { 628 628 monitorTagsToMonitors: { with: { monitorTag: true } }, 629 629 }, 630 + orderBy: (monitor, { desc }) => [desc(monitor.active)], 630 631 }); 631 632 632 633 return z