The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: Update time from 10 to 20 minutes for pause projects fallback (#46479)
Ali Waseem289accd7d496
diff --git a/apps/studio/lib/project-transition-state.ts b/apps/studio/lib/project-transition-state.tsindex 871533bc81d..ae46dec73ca 100644--- a/apps/studio/lib/project-transition-state.ts+++ b/apps/studio/lib/project-transition-state.ts@@ -1,6 +1,6 @@import { safeLocalStorage } from 'common'-export const FALLBACK_LONG_RUNNING_STATE_THRESHOLD_MINUTES = 10+export const FALLBACK_LONG_RUNNING_STATE_THRESHOLD_MINUTES = 20// Persist long enough for same-browser reloads, but not so long that a later transition reuses stale state.export const MAX_PERSISTED_TRANSITION_AGE_HOURS = 24diff --git a/apps/studio/lib/restore-estimate.test.ts b/apps/studio/lib/restore-estimate.test.tsindex 3ad94014e70..1f1d5bdf532 100644--- a/apps/studio/lib/restore-estimate.test.ts+++ b/apps/studio/lib/restore-estimate.test.ts@@ -11,14 +11,14 @@ describe('restore-estimate', () => {expect(estimateRestoreTimeFromSizeGb(21_000)).toBeCloseTo(723, 0)})- it('uses a 10 minute floor when size is missing or small', () => {- expect(getRestoreLongRunningThresholdMinutes()).toBe(10)- expect(getRestoreLongRunningThresholdMinutes(null)).toBe(10)- expect(getRestoreLongRunningThresholdMinutes(100)).toBe(10)+ it('uses a 20 minute floor when size is missing or small', () => {+ expect(getRestoreLongRunningThresholdMinutes()).toBe(20)+ expect(getRestoreLongRunningThresholdMinutes(null)).toBe(20)+ expect(getRestoreLongRunningThresholdMinutes(100)).toBe(20)})it('scales the long-running threshold for larger restores', () => {- expect(getRestoreLongRunningThresholdMinutes(200)).toBe(15)+ expect(getRestoreLongRunningThresholdMinutes(200)).toBe(20)expect(getRestoreLongRunningThresholdMinutes(500)).toBe(31)expect(getRestoreLongRunningThresholdMinutes(1_000)).toBe(56)})