improvement(migration): move credential selector automigration logic to server side#3310
Merged
icecrasher321 merged 4 commits intostagingfrom Feb 23, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
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 |
Collaborator
Author
|
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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