Enviy opened a new issue, #50555:
URL: https://github.com/apache/airflow/issues/50555
### Apache Airflow version
3.0.1
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
I'm using the API v2 endpoint /dags. I'm attempting to collect all DAGs that
have a specific tag, in this case it's the "loader" tag. What was returned was
all of the existing DAGs regardless of what tag they have. This behavior was
the same when setting tags_match_mode to either "any" or "all".
`dagsResp = requests.get(
url=f'{url}/api/v2/dags',
json={"tags": ["loader"], "tags_match_mode": "all"},
headers={"Authorization": f"Bearer {token}"}
)`
### What you think should happen instead?
I expected that setting the field tags_match_mode to "all" would result in
only DAGs that have all of the provided values in the "tags" field being
returned.
OR that setting the field tags_match_mode to "any" would result in only DAGs
that have any of the tags provided in the "tags" field to be returned.
### How to reproduce
I believe this can be reproduced by deploying Airflow 3.0.1 via helm chart
(v1.16.0).
1. Create multiple DAGs (2-3 to show this behavior).
2. Assign one of the DAGs a tag value of "loader" (or any value to later
filter for)
3. Use the API v2 /dags endpoint to filter for all DAGs that have the tag
value "loader" (or the tag value you assigned)
After which you should see the returned DAGs do not all have the tag value
that was filtered for.
### Operating System
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" VERSION_ID="12"
### Versions of Apache Airflow Providers
apache-airflow-providers-amazon==9.7.0
apache-airflow-providers-apache-spark==5.2.1
apache-airflow-providers-celery==3.10.6
apache-airflow-providers-cncf-kubernetes==10.4.3
apache-airflow-providers-common-compat==1.6.1
apache-airflow-providers-common-io==1.5.4
apache-airflow-providers-common-messaging==1.0.1
apache-airflow-providers-common-sql==1.27.0
apache-airflow-providers-docker==4.3.1
apache-airflow-providers-elasticsearch==6.2.2
apache-airflow-providers-fab==2.0.2
apache-airflow-providers-ftp==3.12.3
apache-airflow-providers-git==0.0.2
apache-airflow-providers-google==15.1.0
apache-airflow-providers-grpc==3.7.3
apache-airflow-providers-hashicorp==4.1.1
apache-airflow-providers-http==5.2.2
apache-airflow-providers-microsoft-azure==12.3.1
apache-airflow-providers-mysql==6.2.2
apache-airflow-providers-odbc==4.9.2
apache-airflow-providers-openlineage==2.2.0
apache-airflow-providers-postgres==6.1.3
apache-airflow-providers-redis==4.0.2
apache-airflow-providers-sendgrid==4.0.1
apache-airflow-providers-sftp==5.2.1
apache-airflow-providers-slack==9.0.5
apache-airflow-providers-smtp==2.0.3
apache-airflow-providers-snowflake==6.3.0
apache-airflow-providers-ssh==4.0.1
apache-airflow-providers-standard==1.1.0
apache-airflow-providers-trino==6.1.2
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
I've deployed Airflow 3.0.1 with helm chart version 1.16.0 using Ansible to
a Kubernetes cluster.
### Anything else?
_No response_
### 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]