kedro-org / kedro-viz

Visualise your Kedro data and machine-learning pipelines and track your experiments.
https://demo.kedro.org
Apache License 2.0
646 stars 106 forks source link

Inherit tags from nodes for modular pipelines #1878

Closed jitu5 closed 1 month ago

jitu5 commented 2 months ago

Description

Related to #1822

Incase of expandModularPipelines = false and the filtered nodes happened to be inside a modular pipeline, it should show the modular pipeline node (collapsed view) which seems to be missing on refresh. This PR aims to resolve this issue.

Development notes

https://github.com/kedro-org/kedro-viz/assets/38945204/a336b39c-1d04-471c-a921-89b8a48587ce

QA notes

Checklist

rashidakanchwala commented 2 months ago

Did a slightly different approach here https://github.com/kedro-org/kedro-viz/compare/main...inherit-tags .let me know what you think

ravi-kumar-pilla commented 2 months ago

Did a slightly different approach here main...inherit-tags .let me know what you think

I think this updates the tags at the same time we add inputs/outputs to the immediate parent. We are anyway updating the grandparents here - expanded_tree[parent_id].tags.update(modular_pipeline_node.tags). Looks good to me. Thank you