Uh oh!
There was an error while loading. Please reload this page.
improvement(migration): move credential selector automigration logic to server side - #3310
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryMoved credential auto-migration from client to server side, eliminating false "workflow changes detected" warnings and improving UX.
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant API as Deployed Workflow API
participant Utils as persistence/utils
participant DB as Database
Client->>API: GET /api/workflows/[id]/deployed
API->>Utils: loadDeployedWorkflowState(id)
Utils->>DB: Fetch active deployment
Utils->>DB: Fetch workspace ID
Utils->>Utils: migrateCredentialIds(blocks)
Utils->>DB: Query credentials by accountId
Utils->>Utils: Map accountId → credentialId
Utils-->>Utils: Fire-and-forget: persist migration
Utils-->>API: Return migrated blocks
API-->>Client: Return deployedState
Note over Utils,DB: Async (non-blocking)
Utils->>DB: Update workflowBlocks.subBlocks
Last reviewed commit: ff99fbe |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
icecrasher321
commented
Feb 23, 2026
bugbot run |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…to server side (simstudioai#3310) * improvement(credentials): move client side automigration to server side * fix migration func * fix tests * address bugbot
Summary
Credentials will load in on workflow load effectively then instead of selector selection. And no workflow changes detected.
Type of Change
Testing
Tested manually
Checklist