From bc71b8fdf4db030d063c900df61d72b5e0a9b020 Mon Sep 17 00:00:00 2001 From: SajidAlamQB <90610031+SajidAlamQB@users.noreply.github.com> Date: Wed, 23 Aug 2023 20:33:17 +0100 Subject: [PATCH] changes based on review Signed-off-by: SajidAlamQB <90610031+SajidAlamQB@users.noreply.github.com> --- RELEASE.md | 2 ++ kedro/io/data_catalog.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE.md b/RELEASE.md index bd338addd5..8fb96f4d76 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -41,6 +41,8 @@ | `AbstractDataset` | `AbstractDataSet` | `kedro.io.core` | | `AbstractVersionedDataset` | `AbstractVersionedDataSet` | `kedro.io.core` | +* `layer` attribute at the top level is deprecated and will be removed in Kedro 0.19.0. Please move `layer` inside the `metadata` -> `kedro-viz` attributes. + # Release 0.18.12 ## Major features and improvements diff --git a/kedro/io/data_catalog.py b/kedro/io/data_catalog.py index 9755575b49..50689b11e2 100644 --- a/kedro/io/data_catalog.py +++ b/kedro/io/data_catalog.py @@ -299,7 +299,8 @@ class to be loaded is specified with the key ``type`` and their warnings.warn( "Defining the 'layer' attribute at the top level is deprecated " - "and will be removed in Kedro 0.19.0. Please move 'layer' inside the 'metadata' attribute.", + "and will be removed in Kedro 0.19.0. Please move 'layer' inside the 'metadata' -> " + "'kedro-viz' attributes.", FutureWarning, ) ds_layer = ds_config.pop("layer", None)