improvement(selectors): remove dead semantic fallback code#3454
improvement(selectors): remove dead semantic fallback code#3454icecrasher321 merged 6 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Tightens workflow persistence migrations by requiring a non-optional Written by Cursor Bugbot for commit ddb2d85. Configure here. |
Greptile SummaryThis PR removes dead code from Key changes:
The simplification is well-reasoned; the patterns map was genuinely redundant given that Confidence Score: 4/5
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A([resolveValueForDisplay]) --> B{value is string\nand non-empty?}
B -- No --> C[Return displayLabel=formatValueForDisplay\nresolved=false]
B -- Yes --> D[getBlock + find subBlockConfig]
D --> E{subBlockConfig\nfound?}
E -- No\n[NEW: early return] --> F[Return displayLabel=formatValueForDisplay\nresolved=false]
E -- Yes --> G[getSemanticFallback\ntitle ?? id]
G --> H{Credential\nfield?}
H -- Yes --> I[resolveCredential]
I --> J{label\nfound?}
J -- Yes --> K[Return label, resolved=true]
J -- No --> L[Return semanticFallback, resolved=true]
H -- No --> M{workflow-selector?}
M -- Yes --> N[resolveWorkflow]
N --> O{label\nfound?}
O -- Yes --> K
O -- No --> L
M -- No --> P{mcp-tool-selector?}
P -- Yes --> Q[extractMcpToolName]
Q --> K
P -- No --> R{Hydration-required\ntype?}
R -- Yes --> S[resolveSelectorValue]
S --> T{label\nfound?}
T -- Yes --> K
T -- No --> L
R -- No --> U{isUuid or\nSlack ID?}
U -- Yes --> L
U -- No --> V{CREDENTIAL_SET\nprefix?}
V -- Yes --> W[resolveCredential]
W --> K
V -- No --> X[Return formatValueForDisplay\nresolved=false]
|
|
bugbot run |
apps/sim/app/api/workflows/[id]/deployments/[version]/revert/route.ts
Outdated
Show resolved
Hide resolved
bf083f1 to
ddb2d85
Compare
|
bugbot run |
Summary
Type of Change
Testing
Tested manually
Checklist