Skip to content

Deleted DAGs not removed from ab_view_menu table and show up in permissions (Airflow 2.7.3) #50905

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

Open
sandeyshc opened this issue May 21, 2025 · 1 comment
Labels
area:MetaDB Meta Database related issues. area:UI Related to UI/UX. For Frontend Developers. kind:bug This is a clearly a bug

Comments

@sandeyshc
Copy link

Apache Airflow version:
Other Airflow 2 version (please specify below)

If "Other Airflow 2 version" selected, which one?
2.7.3

What happened?
When a DAG is deleted, its entry is not removed from the ab_view_menu table in the Airflow metadata database. As a result, even deleted DAG IDs continue to appear in the Airflow UI when assigning permissions to roles. This causes confusion and can lead to accidental permission assignments to non-existent DAGs.

What you think should happen instead?
When a DAG is deleted, the corresponding entry for that dag_id should also be removed from the ab_view_menu table so that only active DAGs are available for permission assignment in the Airflow UI.

How to reproduce

  1. Delete a DAG from your Airflow instance.
  2. Check the ab_view_menu table in the metadata database; the old DAG ID remains.
  3. Go to the Airflow UI and attempt to assign permissions to a role; deleted DAG IDs are still listed.

Operating System
Please specify your operating system details (e.g., output of cat /etc/os-release).
linux

Versions of Apache Airflow Providers
Please specify provider versions if relevant, e.g. pip freeze | grep apache-airflow-providers.

Deployment
Please select your deployment type (e.g., Docker-Compose, Helm Chart, etc.).
helm deployment

Deployment details
Add any extra details about your deployment (e.g., version of Docker, Kubernetes, etc.).

Anything else?
Issue occurs consistently

Copy link

boring-cyborg bot commented May 21, 2025

Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

@dosubot dosubot bot added area:MetaDB Meta Database related issues. area:UI Related to UI/UX. For Frontend Developers. kind:bug This is a clearly a bug labels May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:MetaDB Meta Database related issues. area:UI Related to UI/UX. For Frontend Developers. kind:bug This is a clearly a bug
Projects
None yet
Development

No branches or pull requests

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy