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

Undefined Value for `expandAllPipelines` Flag after Removal from `config.js` #1883

Closed SajidAlamQB closed 1 month ago

SajidAlamQB commented 2 months ago

Description

See slack thread: https://kedro-org.slack.com/archives/C04EHA3K7C2/p1714426656093459

Following, https://github.com/kedro-org/kedro-viz/pull/1858, the expandAllPipelines flag from config.js was removed which is causing an undefined value, as it is no longer has a default value. This flag was previously used to control the state of expanding all modular pipelines on the initial load of the application in the settings-modal.js.

The code within settings-modal.js uses the getFlagsState function to pull flag data, which included expandAllPipelines. The assumption was that removing it from config.js would suffice for this UI adjustment. However, this led to the flag being undefined elsewhere in the application.

We need to think about how the expandAllPipelines flag should be removed from just from the settings modal.

Suggestions:

Steps to Reproduce

Load the application and see that the flag's value is undefined.

Expected Result

expandAllPipelines should have a default value.

Actual Result

expandAllPipelines is undefined.