-
由 Will Chen 提交于
#1784 <!-- CURSOR_SUMMARY --> > [!NOTE] > After reverting to a previous version, automatically deploy all Supabase edge functions; failures are logged as warnings without blocking the revert. > > - **Version Revert Flow (`src/ipc/handlers/version_handlers.ts`)**: > - After revert, re-deploy all Supabase edge functions when `app.supabaseProjectId` is present via `deployAllSupabaseFunctions`. > - Aggregate deployment errors into `warningMessage` (non-blocking); logs successes/failures. > - Initialize `warningMessage` to an empty string. > - **Supabase Utilities (`src/supabase_admin/supabase_utils.ts`)**: > - Add `deployAllSupabaseFunctions`: scans `supabase/functions/*`, ensures `index.ts`, reads content, calls `deploySupabaseFunctions`, logs, collects errors; skips if directory missing. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit c29333c0f951b60b4e80da0b46cf0287d03bdae1. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Automatically re-deploys Supabase edge functions after restoring a previous app version to keep functions in sync with reverted code. Deployment failures surface as warnings and do not block the revert. - **New Features** - Re-deploy all Supabase edge functions on version revert when an app has a Supabase project ID. - Added deployAllSupabaseFunctions: scans supabase/functions, deploys each index.ts sequentially, skips missing files, collects errors, and logs warnings. <sup>Written for commit c29333c0f951b60b4e80da0b46cf0287d03bdae1. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->