-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix(import): fix array errors on import/export #2211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile OverviewGreptile SummaryFixed array validation errors during workflow import/export by converting empty strings to
Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant WorkflowImporter
participant NormalizeSubblockValues
participant RegenerateIds
participant CredentialExtractor
Note over User,CredentialExtractor: Import/Export Flow with Array Error Fix
User->>WorkflowImporter: Import workflow JSON
WorkflowImporter->>WorkflowImporter: Parse JSON content
WorkflowImporter->>NormalizeSubblockValues: Normalize subblock values
Note over NormalizeSubblockValues: Convert empty strings to null<br/>Prevents "Expected array, received string" errors
NormalizeSubblockValues-->>WorkflowImporter: Return normalized blocks
WorkflowImporter->>RegenerateIds: Regenerate IDs (if enabled)
RegenerateIds->>RegenerateIds: Map old IDs to new IDs
RegenerateIds->>RegenerateIds: Update blocks, edges, loops, parallels
RegenerateIds-->>WorkflowImporter: Return workflow with new IDs
WorkflowImporter-->>User: Import complete
User->>CredentialExtractor: Export/Share workflow
CredentialExtractor->>CredentialExtractor: Sanitize credentials
Note over CredentialExtractor: Clear sensitive fields with null<br/>instead of empty strings
CredentialExtractor->>CredentialExtractor: Clear OAuth credentials → null
CredentialExtractor->>CredentialExtractor: Clear secret fields → null
CredentialExtractor->>CredentialExtractor: Clear workspace-specific fields → null
CredentialExtractor-->>User: Export sanitized workflow
Note over User,CredentialExtractor: Removed Features (No longer in flow)
Note over User,CredentialExtractor: ❌ GDrive tools (list/read/request access)
Note over User,CredentialExtractor: ❌ Mermaid diagram generation
Note over User,CredentialExtractor: ❌ Google Drive picker integration
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
15 files reviewed, no comments
Summary
Fix import/export. Add copilot validation
Type of Change
Testing
Manual
Checklist