-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect data node rendering for modular pipelines (#1439)
The viz flowchart is actually a representation of modular pipelines. The root modular pipeline is the first thing we see in the collapsed flowchart. It must include: All top-level modular pipelines (e.g., level1.node, not level2.level1.node). Any tasks, datasets, or parameters not part of a modular pipeline. Inputs and outputs to the top-level modular pipeline (also called external_inputs and external_outputs in the code). Lastly, all parameters, even if they belong to nested modular pipelines. The flowchart design ensures these parameters remain visible from the root modular pipeline, even when we expand the view. In the code, there was a variable named root_children_ids, which was causing issues as reported by users. It's a bit confusing what it does but removing it resulted in the parameters not being shown at the root level anymore. To address this, the variable root_children_ids has been renamed to root_parameters, and it has been modified to include all parameters that are part of a modular pipeline. After making this change, the code correctly satisfies the above four conditions, ensuring all relevant components are present in the root modular pipeline.
- Loading branch information
1 parent
f635564
commit 475a9c8
Showing
3 changed files
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters