fix(kbs): legacy subblock id migration + CI check#3425
fix(kbs): legacy subblock id migration + CI check#3425icecrasher321 merged 3 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Refactors workflow loading to run a single Adds a CI step and new script ( Written by Cursor Bugbot for commit 47fcf4a. Configure here. |
Greptile SummaryThis PR fixes a regression where a renamed subblock ID ( Key changes:
Summary: The core migration logic is sound and well-tested. The CI guardrail introduces helpful validation but has two regex fragility issues that should be addressed to ensure the check is truly reliable. Confidence Score: 3/5
Sequence DiagramsequenceDiagram
participant Client
participant utils as persistence/utils.ts
participant credMigrate as migrateCredentialIds
participant sbMigrate as migrateSubblockIds
participant DB as workflowBlocks (DB)
Client->>utils: loadWorkflowFromNormalizedTables(workflowId)
utils->>DB: fetch blocks
DB-->>utils: raw blocks
utils->>credMigrate: migrateCredentialIds(blocks)
credMigrate-->>utils: credMigratedBlocks
utils->>sbMigrate: migrateSubblockIds(credMigratedBlocks)
sbMigrate-->>utils: anyMigrated (boolean)
alt anyMigrated = true
utils->>DB: fire-and-forget update ALL blocks (subBlocks + updatedAt)
Note over utils,DB: ⚠ Updates every block, not just migrated ones
end
utils-->>Client: return assembled workflow state
Client->>utils: loadDeployedWorkflowState(workflowId)
utils->>DB: fetch deployment blob
DB-->>utils: JSON state
utils->>credMigrate: migrateCredentialIds(blocks)
credMigrate-->>utils: credMigratedBlocks
utils->>sbMigrate: migrateSubblockIds(credMigratedBlocks)
Note over utils,sbMigrate: Migration applied in-memory only — not persisted
utils-->>Client: return migrated state
Last reviewed commit: 8e116d6 |
|
@cursor review |
Summary
Type of Change
Testing
Tested on old commits.
Checklist