Skip to content
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 pre-commit script to prevent creating FAB related migrations #35927

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

vincbeck
Copy link
Contributor

All tables related to user management (ab_permission, ab_view_menu, ab_role, ab_permission_view, ab_permission_view_role, ab_user, ab_user_role, ab_register_user) are used exclusively by the FAB auth manager. Since in #35926, FAB auth manager is getting moved to providers, we should no longer have migrations related to these tables in core Airflow. If these tables need a migration, we would need to implement a mechanism where providers could vendor-in migrations and then, add these migrations in the fab provider. Since we are not sure such migrations will be added, I dont think it is necessary to implement the mechanism now.

This PR prevent adding any additional migrations related to these fab tables.


^ 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.

@vincbeck
Copy link
Contributor Author

@potiuk I cc you, this the result of our chat on that topic

@vincbeck vincbeck added the AIP-56 Extensible user management label Nov 28, 2023
@potiuk
Copy link
Member

potiuk commented Nov 28, 2023

NICE

@potiuk potiuk merged commit 6393b35 into apache:main Nov 28, 2023
72 checks passed
@vincbeck vincbeck deleted the vincbeck/fab_migrations branch November 29, 2023 15:43
potiuk pushed a commit that referenced this pull request Dec 15, 2023
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AIP-56 Extensible user management area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants