fix(copilot): handle negated operation conditions in block config extraction#3282
fix(copilot): handle negated operation conditions in block config extraction#3282waleedlatif1 merged 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryFixed a bug where the copilot's Key Changes:
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[extractInputsFromSubBlocks] --> B{Has operation?}
B -->|Yes| C[Evaluate condition]
B -->|No| D[Include field]
C --> E{Is condition a function?}
E -->|Yes| F["Call with { operation }"]
E -->|No| G[Use condition as-is]
F --> H[matchesOperation]
G --> H
H --> I{field === operation?}
I -->|Yes| J[Check if op in values]
I -->|No| K[Return false]
J --> L{Has not flag?}
L -->|Yes| M[Return negated result]
L -->|No| N[Return included result]
M --> O{Matches?}
N --> O
K --> O
O -->|Yes| D
O -->|No| P[Skip field]
Last reviewed commit: 619cc14 |
Additional Comments (1)
|
|
@greptile |
|
@cursor review |
Summary
extractInputsFromSubBlocksto pass operation context to function-based conditionsmatchesOperationto properly handlenot: trueoperation conditionsType of Change
Testing
Tested manually
Checklist