-
Notifications
You must be signed in to change notification settings - Fork 8.2k
fix: Make sure loop inputs are properly handled in research #11029
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
Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis change adds loop input handling to node output components across multiple files. A new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touchesImportant Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 3 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (40.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #11029 +/- ##
==========================================
+ Coverage 33.09% 33.11% +0.02%
==========================================
Files 1389 1389
Lines 65699 65713 +14
Branches 9720 9729 +9
==========================================
+ Hits 21743 21764 +21
+ Misses 42842 42831 -11
- Partials 1114 1118 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
|
Hey @erichare, Are there any screenshot or testcases that can make this change easily validated |
* fix: Make sure loop inputs are properly handled in research Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * [autofix.ci] apply automated fixes * Update reactflowUtils.ts Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * Update reactflowUtils.ts Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * Revert "Update reactflowUtils.ts" This reverts commit 9c8b1d1. * Revert "Update reactflowUtils.ts" This reverts commit 6be7ab9. * Fix template Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * [autofix.ci] apply automated fixes * Update Research Translation Loop.json Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * Update reactflowUtils.ts Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --------- Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
…rating (#11042) * fix: Make sure loop inputs are properly handled in research (#11029) * fix: Make sure loop inputs are properly handled in research Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * [autofix.ci] apply automated fixes * Update reactflowUtils.ts Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * Update reactflowUtils.ts Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * Revert "Update reactflowUtils.ts" This reverts commit 9c8b1d1. * Revert "Update reactflowUtils.ts" This reverts commit 6be7ab9. * Fix template Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * [autofix.ci] apply automated fixes * Update Research Translation Loop.json Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * Update reactflowUtils.ts Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --------- Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * Update Research Translation Loop.json Co-Authored-By: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This pull request improves the handling of loop input and output types for generic nodes in the frontend. The main focus is on correctly distinguishing between standard output handles and loop input handles, ensuring proper type validation and connection logic, especially for nodes that support looping outputs.
Enhancements to output and loop input handling:
id) and the loop input handle (loopInputId) inNodeOutputParameter, ensuring that loop input handles include all relevant loop types for validation.NodeOutputFieldcomponent and its type definition to accept and use the newloopInputIdprop, so that the left handle (loop input) receives the correct identifier and type information. [1] [2] [3] [4]OutputParametercomponent to pass bothid(for the right/output handle) andloopInputId(for the left/loop input handle) toNodeOutputField, supporting more accurate handle identification and validation.Connection validation improvements:
cleanEdgesutility to ensure that, when validating connections for generic nodes, loop input handles correctly include all applicable loop types ifallows_loopis true, improving edge validation logic.Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.