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.
feat: implement filter node executor with support for deduplication, … #85
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
Uh oh!
There was an error while loading. Please reload this page.
feat: implement filter node executor with support for deduplication, … #85
Changes from all commits
5d1ad2eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
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.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Use a prototype-free map for arbitrary group keys.
groupMapis initialized with{}. For a normalized key such as"__proto__","constructor", or"toString", the lookup returns an inherited object or function.groupMap[key].push(item)then throws, and the executor returnssuccess: falsefor valid input.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents
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.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Wrap the
group_byswitch clause in braces.Biome reports
lint/correctness/noSwitchDeclarationsforconst groupResultat Line 206. Add a block around this case so the declaration is scoped only togroup_by.Proposed fix
📝 Committable suggestion
🧰 Tools
🪛 Biome (2.5.6)
[error] 206-206: Other switch clauses can erroneously access this declaration.
Wrap the declaration in a block to restrict its access to the switch clause.
(lint/correctness/noSwitchDeclarations)
🤖 Prompt for AI Agents
Source: Linters/SAST tools
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.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Align the
group_byoutput contract across both layers.The executor and node configuration do not publish the same result shape. This can hide grouping results from output discovery or break downstream references.
packages/nodes/src/filter/filter.executor.ts#L201-L220: define whethergroup_byuses an operation-specific shape or the common filter shape, then return the agreed fields.apps/web/app/lib/nodeConfigs/filter.action.ts#L18-L19: add output entries forgroupsMap,groupsArray, and the new metadata fields, or makeoutputSchemaoperation-aware.🧰 Tools
🪛 Biome (2.5.6)
[error] 206-206: Other switch clauses can erroneously access this declaration.
Wrap the declaration in a block to restrict its access to the switch clause.
(lint/correctness/noSwitchDeclarations)
📍 Affects 2 files
packages/nodes/src/filter/filter.executor.ts#L201-L220(this comment)apps/web/app/lib/nodeConfigs/filter.action.ts#L18-L19🤖 Prompt for AI Agents