-
Notifications
You must be signed in to change notification settings - Fork 930
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
Private methods _is_project
and _find_kedro_project
are made public
#4548
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: ravi_kumar_pilla <ravi_kumar_pilla@mckinsey.com>
_is_project
, _find_kedro_project
, _split_params
are made public
Signed-off-by: ravi_kumar_pilla <ravi_kumar_pilla@mckinsey.com>
Hi Team, I did not add any deprecations in this PR which will be merged to develop. I am not exactly sure how develop merges to main or vice-versa. From the docs, I found develop is for breaking changes, so this PR will break things for plugin developers. Should I raise another PR with a deprecation warning in these private methods as below and merge it to main before 1.0 ? warnings.warn(
"`_find_kedro_project()` has been deprecated and will be removed in Kedro 1.0.0. Please switch to using public method `find_kedro_project()`",
KedroDeprecationWarning,
) cc: @ankatiyar |
@ravi-kumar-pilla We haven't done a change like this often (or ever?), so we'll need to decide how we want to approach it here. In my opinion, since these were private methods and not supposed to be used by users, I would argue it's not necessary to go through a full deprecation process. I think explicitly adding the change in migration notes for |
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.
Overall code looks good!
- I'm still not a 100% about making
_split_params
public just because it's used bykedro-airflow
since we can just make the plugin parse the parameters with its own implementation. (Also side note, would anyone want to pass extra params to the session through airflow CLIkedro airflow create --params
-> DAG that passes it to the session instead of putting them in the configuration during deployment?) - Since it's private methods used by our own code, multiple times, the deprecation warnings will flood the terminal, I think we should add it in the release notes/migration guide and/or post in #plugins-integrations for the plugin developers
I also agree with Ankita on the _split_params func. @merelcht let us know how you feel. Also agree with both @ankatiyar and @merelcht and not having the Deprecation Warnings and just adding it to release notes. |
Thank you @ankatiyar , @merelcht and @rashidakanchwala for the comments. So based on the suggestions, we will only inform the users of this change via the migration and release notes. For the Further on this, I think Thank you |
…public-methods
…re/public-methods
The reason I said we can make |
For |
_is_project
, _find_kedro_project
, _split_params
are made public_is_project
and _find_kedro_project
are made public
Description
Resolves #4523
Development notes
_is_project
and_find_kedro_project
public.is_project
tois_kedro_project
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