Open Calychas opened 4 weeks ago
@Calychas Thanks for trying this in pre-release already! Does clicking on any nodes lead to navigation? Or is it a specific type of nodes? Try clicking on a dataset, or a function node.
Can I also ask what's the path of that pipeline/node file stored?
Saying this because we have a rather simple logic to search for functions:
filePattern = '**/pipelines/**/*.py';
@noklam hey! Functions actually work -> it navigates me to the code.
It turns out I have only problems with datasets -> nothing happens (no navigation)
Can I also ask what's the path of that pipeline/node file stored? Could find a dataset node on which the navigation works. An example of one where it doesn't:
"{group_class}.payload_raw":
type: json.JSONDataset
filepath: data/01_raw/{group_class}/model_payload_{group_class}.json
metadata:
kedro-viz:
layer: raw
I think I managed to pinpoint the issue -> dataset factories
Specifying it this way fixes navigation:
na.payload_raw:
type: json.JSONDataset
filepath: data/01_raw/na/model_payload_na.json
metadata:
kedro-viz:
layer: raw
@Calychas Thanks for reporting! factory indeed is not working yet since it is not "explicitly" defined in catalog. I have idea how to add support for dataset factory.
I will update the issue to reflect this is a specific issue about Dataset Factory and make it a feature request, hope that is fine!
My current idea is keeping existing resolution logic, but add a new factory pattern logic.
Alternatively: The extension can eagerly resolve all the pattern (a tricky part here is the resolution logic depends on the pipeline, maybe we can assume default as a starting point). Then the rest is just mapping which dataset was generated from pattern, and re-direct the dataset definition to the pattern entry.
Description
Clicking on a dataset node in kedro-viz doesn't navigate to code.
Steps to Reproduce
In my case
Checklist
Cmd + P
andPython: Select Interpeter
Expected Result
Navigated to the code
Actual Result
Nothing happens and errors in logs:
Your Environment
pip show kedro
orkedro -V
): 0.19.8python -V
): Python 3.10.11