bobu-putheeckal opened a new pull request, #67404:
URL: https://github.com/apache/airflow/pull/67404

   Fixes #66827.
   
   The DAG list excludes stale DAGs by default, but the DAG tags endpoint 
queried distinct names directly from dag_tag. This joins through DagModel and 
filters out stale DAG rows so tags belonging only to removed DAGs no longer 
appear in the UI tag dropdown.
   
   Tests:
   - uv run --no-default-groups --with-editable ./airflow-core --with-editable 
./devel-common --with-editable ./providers/standard --with-editable 
./providers/git --with pytest --with pytest-mock --with httpx --with 
time-machine --with freezegun --with sqlalchemy-utils pytest 
airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dag_tags.py
   - uv run --no-default-groups --with ruff ruff check 
airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_tags.py 
airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dag_tags.py
   
   Note: Full default uv test environment was not used because 
apache-airflow[all] pulls JDBC/jpype1 and this machine has no Java runtime.


-- 
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]

Reply via email to