Skip to content
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

fix: Handle group nodes in graph sorting #3929

Merged
merged 8 commits into from
Sep 27, 2024
Merged

fix: Handle group nodes in graph sorting #3929

merged 8 commits into from
Sep 27, 2024

Conversation

ogabrielluiz
Copy link
Contributor

  • Added get_root_of_group_node function to identify the root of a group node.
  • Updated sort_up_to_vertex to use get_root_of_group_node for handling group nodes.
  • Modified __filter_vertices to pass parent_node_map to sort_up_to_vertex.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 26, 2024
@github-actions github-actions bot added the bug Something isn't working label Sep 26, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-3929.dmtpw4p5recq1.amplifyapp.com

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 26, 2024
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

@ogabrielluiz ogabrielluiz enabled auto-merge (squash) September 26, 2024 18:24
ogabrielluiz and others added 4 commits September 27, 2024 09:10
- Added `get_root_of_group_node` function to identify the root of a group node.
- Updated `sort_up_to_vertex` to use `get_root_of_group_node` for handling group nodes.
- Modified `__filter_vertices` to pass `parent_node_map` to `sort_up_to_vertex`.
@ogabrielluiz ogabrielluiz merged commit b34a7c7 into main Sep 27, 2024
29 checks passed
@ogabrielluiz ogabrielluiz deleted the fix/groupnode branch September 27, 2024 15:26
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
* Fix: Handle group nodes in graph sorting

- Added `get_root_of_group_node` function to identify the root of a group node.
- Updated `sort_up_to_vertex` to use `get_root_of_group_node` for handling group nodes.
- Modified `__filter_vertices` to pass `parent_node_map` to `sort_up_to_vertex`.

* Refactor: Update NodeStatus component to handle group nodes and improve build status handling

* [autofix.ci] apply automated fixes

* Update type hint for parent_node_map in sort_up_to_vertex function

---------

Co-authored-by: anovazzi1 <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants