Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor: prevent disconnected handles from executing when input template edge is hidden #6132

Merged
merged 5 commits into from
Feb 6, 2025

Conversation

Cristhianzl
Copy link
Member

This pull request includes changes to the src/frontend/src/utils/reactflowUtils.ts file to enhance the handling of edges in the React Flow utility functions. The most important changes include the addition of a new function to filter hidden field edges and the integration of this function into the existing edge cleaning process.

Enhancements to edge handling:

…lter out edges based on hidden fields in node templates
@Cristhianzl Cristhianzl requested a review from anovazzi1 February 5, 2025 16:27
@Cristhianzl Cristhianzl self-assigned this Feb 5, 2025
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Feb 5, 2025
@Cristhianzl Cristhianzl added DO NOT MERGE Don't Merge this PR and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Feb 5, 2025
@dosubot dosubot bot added the enhancement New feature or request label Feb 5, 2025
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed enhancement New feature or request labels Feb 5, 2025
…accept targetNode directly instead of nodes array to improve code readability and maintainability
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Feb 5, 2025
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed refactor Maintenance tasks and housekeeping labels Feb 5, 2025
Copy link
Contributor

@anovazzi1 anovazzi1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already iterate through nodes and edges, no need to iterate twice, let's do this check on the first iteration

@Cristhianzl Cristhianzl requested a review from anovazzi1 February 6, 2025 19:41
Copy link
Contributor

@anovazzi1 anovazzi1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 6, 2025
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed refactor Maintenance tasks and housekeeping labels Feb 6, 2025
@Cristhianzl Cristhianzl enabled auto-merge February 6, 2025 20:21
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed refactor Maintenance tasks and housekeeping labels Feb 6, 2025
@ogabrielluiz ogabrielluiz removed the DO NOT MERGE Don't Merge this PR label Feb 6, 2025
@Cristhianzl Cristhianzl added this pull request to the merge queue Feb 6, 2025
Merged via the queue into main with commit 0b7368e Feb 6, 2025
22 checks passed
@Cristhianzl Cristhianzl deleted the cz/fix-handle-hidden branch February 6, 2025 20:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
lgtm This PR has been approved by a maintainer refactor Maintenance tasks and housekeeping size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants