kedro-org / kedro-viz

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

Fix pipeline id which defaults to __default__ pipeline #1879

Closed ravi-kumar-pilla closed 4 months ago

ravi-kumar-pilla commented 5 months ago

Description

Kedro-Viz URL points to __default__ pid even if there is no pipeline with the id __default__. This breaks the UI and shows as below -

Image

Context

I have a kedro project which returns 1 pipeline as below -

generic_pipeline = gn.create_pipeline()

    return {
        "Generic": generic_pipeline
    }

The dropdown in the pipeline selector shows Generic but the URL pid points to __default__. This partially breaks Kedro-Viz

NOTE: This is working on Kedro-Viz < 9.0.0. This might be due to the stateful URL. However when I tried to re-produce this on latest Kedro-Viz, it started working. I would request anyone else (cc: @jitu5 ) to test this as I was unable to re-produce and I do not see any default pid on Frontend. Please feel free to close the ticket if everything looks good.

Steps to Reproduce

  1. Remove __default__ pipeline from demo_project
  2. Run kedro viz run
  3. You will see the message Oops, this URL isn't valid

Expected Result

Actual Result

You will see the message Oops, this URL isn't valid

Your Environment

Include as many relevant details as possible about the environment you experienced the bug in:

Checklist