-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Consolidate method names between Airflow Security Manager and FAB default #18726
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
Consolidate method names between Airflow Security Manager and FAB default #18726
Conversation
13b247f to
ae1ec97
Compare
ae1ec97 to
0c297fa
Compare
|
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
1 similar comment
|
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
0c297fa to
1f591a0
Compare
…ault (apache#18726) * Replace add_view_menu with create_resource. * Replace add_permission_view_menu with create_permission. * Replace find_permission_view_menu with get_permission. * Replace find_view_menu with get_resource. * Replace get_all_view_menu with get_all_resources. * Replace find_permission with get_action. * Replace del_permission_view_menu with delete_permission. * Replace del_view_menu with delete_resource. * Replace del_permission with delete_action. * Replace add_permission_role with add_permission_to_role. * Replace find_permissions_view_menu with get_resource_permissions. * Replace self.del_permission_role wth remove_permission_from_role. * Replace exist_permission_on_roles with permission_exists_in_one_or_more_roles. * Replace find_roles_permission_view_menus with filter_roles_by_perm_with_action. * Replace get_db_role_permissions with get_role_permissions_from_db. * Replace add_permission with create_action. * Remove unused exist_permission_on_view function. * Rename local variables. * Remove sqla model names from SecurityManager base class. * Update names in add_permissions_view. * Flake8. * Use updated perm names. * Use updated perm names for local vars. * Use black. * Reorder import statements. * Remove accidental renaming of BaseSecurityManager.roles.
This PR:
This follows the work completed in #16647, where I copied the base FAB security manager classes into the Airflow codebase. This is a step forward in merging the Airflow-specific security manager code with the default FAB security manager code.