-
Notifications
You must be signed in to change notification settings - Fork 926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DataCatalog
deprecation warning
#4510
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Elena Khaustova <[email protected]>
Signed-off-by: Elena Khaustova <[email protected]>
Signed-off-by: Elena Khaustova <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
It shows up twice now when you do kedro run
but I suppose it's because of the deepcopy shallow copy?
That's because we recreate catalog object to inject patterns for the old catalog: Line 114 in 9c70bae
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking: If a user is using 0.19.11 already, what would be the best way to make the code forward compatible?
Something like this?
try:
import KedroDataCatalog as DataCatalog
except ImportError:
import DataCatalog
- If old Kedro, then old
DataCatalog
- If 0.19.x Kedro, then
KedroDataCatalog
- If Kedro >=1.x, then new
DataCatalog
However, is KedroDataCatalog
meant to be a 100 % compatible drop-in replacement?
I understand that this is not as terrible as the DataSet
migration, but still worth thinking how the settings.py
etc should look like for folks that have an explicit DATA_CATALOG_CLASS
set and so on
They are compatible now but that won't be the case after replacement, because we will remove all the temporal API kept for compatibility. Even if we suggest something now for importing to be forward-compatible it will not help much because of the API changes. |
"`DataCatalog` has been deprecated and will be replaced by an improved alternative, `KedroDataCatalog`, in Kedro 1.0.0." | ||
"After this change, the `DataCatalog` name will persist, but its functionality will align with `KedroDataCatalog`. " | ||
"For more details, refer to the documentation: https://docs.kedro.org/en/stable/data/index.html#kedrodatacatalog-experimental-feature", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"`DataCatalog` has been deprecated and will be replaced by an improved alternative, `KedroDataCatalog`, in Kedro 1.0.0." | |
"After this change, the `DataCatalog` name will persist, but its functionality will align with `KedroDataCatalog`. " | |
"For more details, refer to the documentation: https://docs.kedro.org/en/stable/data/index.html#kedrodatacatalog-experimental-feature", | |
"`DataCatalog` has been deprecated and will be replaced by `KedroDataCatalog` in Kedro 1.0.0." | |
"After this change, the `DataCatalog` name will persist, but its functionality will align with `KedroDataCatalog`. " | |
"For more details, refer to the documentation: https://docs.kedro.org/en/stable/data/index.html#kedrodatacatalog-experimental-feature", |
While I agree it's an improvement it's up to the user to decide if it is 😉 this way the message is shorter as well.
Got it. Then maybe what we can do is, in Kedro 1.0.x, keep the
That way, code that's written to work with WDYT? |
Description
Solves #4469
Development notes
Developer Certificate of Origin
We need all contributions to comply with the Developer Certificate of Origin (DCO). All commits must be signed off by including a
Signed-off-by
line in the commit message. See our wiki for guidance.If your PR is blocked due to unsigned commits, then you must follow the instructions under "Rebase the branch" on the GitHub Checks page for your PR. This will retroactively add the sign-off to all unsigned commits and allow the DCO check to pass.
Checklist
RELEASE.md
file