-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Create FAB provider and move FAB auth manager in it #35926
Conversation
This reverts commit 5a1bb6d.
🤞 |
Wooohoooo. Compat tests passed :) |
The build prod image fails again with the latest changes |
When doing the merge, I removed this line, it must be because of that |
Nope. It was #36168 - rebase and it should be gone (and my PR also added different behaviour when constraint generation will fail - it will fail at constraint generation time instead of when they should be used. |
CLI is green! (thanks @potiuk for the help!) |
Woohoooo! |
I think this move should have been part of 2.8.0. Another option would be to release it as part of 2.8.1 because if there's any bug on FAB that needs fixing in 2.8, we won't be able to do it because of this move. |
Well, yes and no. I think it will be very easy to apply cherry-picks from main in those cases as this was generally just moving the code - because we do not touch this code unless there is migration to newer FAB. |
I am happy to do those cherry-picks, if it makes things easier :) |
Can this PR be cherry picked to 2.8 branch? |
We shouldn't add more PRs to 2.8 branch. It's late now. |
We can also revert this one and keep a PR open and merge it when we get closer to 2.9.0 - that's also an option @vincbeck ? |
We can just fix the bug in 2.8 branch and then cherry-pick/apply this change to |
FYi @vincbeck @ferruzzi This broke the It should have been added to airflow/configuration.py#L325-L394 to automatically upgrade the config in place and issue a warning to users. (Or if it wasn't this pr, one of the follow on ones, this was just the first one I done related to the split out) |
I guess the PR you mention is #36232. I was not aware of |
Oops, #40317 is already addressing the problem |
As a result of the lazy consensus, this PR creates a new provider: fab. This new provider contains (and should always only contain?) the FAB manager that is in core Airflow for now.
It basically moves files from
airflow.auth.managers.fab
toairflow.providers.fab.auth_manager
.What this PR does NOT include and will be done in following PRs:
flask-login
as dependency in core Airflow (only some tests in core Airflow are using it now, should be pretty easy to remove)^ 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.