-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Move methods from security managers to FabAirflowSecurityManagerOverride
#33044
Move methods from security managers to FabAirflowSecurityManagerOverride
#33044
Conversation
b90c0d0
to
04c83f7
Compare
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.
looks OK from what I can tell
04c83f7
to
319617a
Compare
319617a
to
0f031a8
Compare
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.
Can be tricky to review these types of large PRs, but from what I can tell it LGTM 👍
Can I have another review please? I am aware it is not the most interesting PR but this is needed. FYI: this is only moving code, there is no new code here, that should make the review easier :). @uranusjr @pierrejeambrun maybe 👼 |
I am sorry - I have just merged #33347 which has been important to be out for 2.7.0, and this one conflicts with it so if you please rebase witht the chnage of mine and ping me, I will review it quickly (also now when I am more familiar with recent changes you've done). Sorry - but 2.7. has been priority over the last few days |
Totally understandable 👌 No worries @potiuk. I just resolved the conflicts. If you can review it, that would be awesome 🥳 |
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 did not compare the code in detail and trust you just moved them.
The intent of this PR is to move FAB related methods from security managers (AirflowSecurityManager, BaseSecurityManager and SecurityManager) to
FabAirflowSecurityManagerOverride
. Since the effort is quite big, this PR is just a first step and more methods will be moved in separate PRs. This PR moves the most "obvious" methods to be moved. This will help to review the PR as well.Also, in order to avoid having one gigantic
FabAirflowSecurityManagerOverride
, I decided to split it in different modules whichFabAirflowSecurityManagerOverride
inherits from. So far I created two modules:DB
andoauth
, each one defining methods related to either the database or Oauth.There is no new code in this PR, the changes are only code being moved around.
^ 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.