-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
[Mothership PR] Remove internal_api_call
decorator
#44486
Conversation
internal_api_call
decorator
As part of this task, #44436 mentions as well "re-join back methods that were separated out from the main code - when methods start with _". Are you planning to do it in this PR? I'd advice to either do it as part of this PR or do the re-join before removing the decorator. Once the decorator is removed, it will be harder to look for methods that were used to be used for AIP-44 and needs to be re-joined |
Yes, that's why I just drafted it :)
It's my first time in the API area, so I'll try not to break too many things :) |
366d4d5
to
0a034e6
Compare
Cool :)
Yes you understood well what re-join means. When working on AIP-44, many methods were moved to private functions to make them "callable". You'll see many methods like:
The goal is to move back the implementation of
In this case, (please @potiuk correct me if I am wrong) I dont think we should re-join this method.
No worries! Thanks for doing it! We all have to start someday right? |
Thanks for the deatiled response, I'm on it! |
Yes. We can maybe even nicely refactor it to make more sense and rename such methods, place them in the "right" place etc. This should be case-by-case decision and that's why in #44436 I extracted all the method lists so that we can do it in pieces - maybe not one-by-one, but maybe file-by-file, so that we could review the change in a meaningful way. There are, for example, some cases where likely after re-joining we will be able to undo some of the changes made (for example there were few methods where we artifficially had to add commit() where otherwise it was not needed - because the logic was split into "client" and "server" in a sequence of transctions. By having smaller, focused commits "per-file" we can look at the historical changes to it and when we extracted it and decide what to do. Also splitting it "per-group" might be easily distributed between different people in this case. |
And yes. Cool you are looking at it @shahar1 -> i think a good idea will be by anyone who starts looking at removing the method from one of those files announce "I am taking this part" in #446436 in order to avoid duplication :) |
Then - this one can be rebased gradually until we get to "no change" :D |
internal_api_call
decoratorinternal_api_call
decorator
34151c7
to
f7c5e69
Compare
f7c5e69
to
9e4b038
Compare
related: #44436
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.