airflow.providers.fab.auth_manager.cli_commands.permissions_command¶
Permissions cleanup command.
Attributes¶
Functions¶
|
Clean up DAG-specific permissions from Flask-AppBuilder tables. |
|
Clean up DAG permissions in Flask-AppBuilder tables. |
Module Contents¶
- airflow.providers.fab.auth_manager.cli_commands.permissions_command.cleanup_dag_permissions(dag_id, session=NEW_SESSION)[source]¶
Clean up DAG-specific permissions from Flask-AppBuilder tables.
When a DAG is deleted, we need to clean up the corresponding permissions to prevent orphaned entries in the ab_view_menu table.
This addresses issue #50905: Deleted DAGs not removed from ab_view_menu table and show up in permissions.
- Parameters:
dag_id (str) – Specific DAG ID to clean up.
session (sqlalchemy.orm.Session) – Database session.