Skip to content

Not in use tags are still present in the search bar of the UI #66827

Closed

Description

@jessicaschueler

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

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. changed the title [-]Not in use tags are still present in the search feture of the UI[/-] [+]Not in use tags are still present in the search bar of the UI[/+] on May 12, 2026
  2. added
    area:UIRelated to UI/UX. For Frontend Developers.
    on May 12, 2026
  3. SkanderD1999 commented on May 12, 2026

    @SkanderD1999
    Contributor

    I was able to reproduce this on Apache Airflow 3.2.1 with the official Docker Compose setup on Windows 11.

    I created a test DAG called test_tag_cleanup with the tag temporary_test_tag. The DAG appeared correctly in the UI, and the tag was also available in the “Filter by tag” dropdown.

    After deleting the DAG file from the dags/ folder and refreshing the UI, the DAG was no longer displayed, but the tag was still present in the tag filter. When selecting this tag, the UI shows 0 DAGs found.

    Environment:

    • Airflow version: 3.2.1
    • Deployment: official Docker Compose
    • OS: Windows 11
    • Browser: Chrome

    I attached a screenshot showing the tag still available while no DAGs are associated with it.

    Image
  4. kimsuyeon0916 commented on May 13, 2026

    @kimsuyeon0916

    Hi! I'd like to help investigate this issue.

    I'll try to reproduce the behavior locally by:

    1. Creating a DAG with a tag
    2. Removing that DAG from the deployment
    3. Checking whether the unused tag still appears in the UI tag filter

    If I can reproduce it, I'll look into whether the stale tags should be filtered out from the UI/API response or cleaned up from the metadata database, and share my findings here.

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIRelated to UI/UX. For Frontend Developers.kind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions