jessicaschueler opened a new issue, #66827: URL: https://github.com/apache/airflow/issues/66827
### Under which category would you file this issue? Airflow Core ### Apache Airflow version 3.1.8 ### What happened and how to reproduce it? The "Filter by tag" drop-down includes all tags, not just tags that are present on dags that are currently in the deployment. To reproduce create a dag with a tag, then remove that dag from the deployment. The tag will still appear in the drop-down. This can make it difficult to sift through tags that are out of date. ### What you think should happen instead? Tags associated with dags that no longer exist should be removed. The `dag_tags` table in the metadata database is very simplistic, and includes a list of every tag name and the associated dag. I think that we should introduce some way to either remove entries that are associated with deleted dags, or a way to filter what appears in the UI to only tags assocaited with current dags. ### Operating System mac 26.3.1 ### Deployment Astronomer ### Apache Airflow Provider(s) _No response_ ### Versions of Apache Airflow Providers _No response_ ### Official Helm Chart version Not Applicable ### Kubernetes Version _No response_ ### Helm Chart configuration _No response_ ### Docker Image customizations _No response_ ### Anything else? A now closed issue was created regarding this issue; [31184](https://github.com/apache/airflow/issues/31184) ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
