apache / airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
https://airflow.apache.org/
Apache License 2.0
36.96k stars 14.26k forks source link

Make `dag_ids` parameter optional for `dagStats` REST API #41495

Closed reganbaum closed 3 weeks ago

reganbaum commented 2 months ago

Description

Today, the dagStats REST API requires a list of dag_ids as input.

Can we make this parameter optional, so that if no dag_ids are provided, it will return all the stats of all the dags? This is the current behavior of the dag_stats endpoint, so it'd be good to have parity with the REST API so that the UI could use this same REST API in the future.

Use case/motivation

Clients should be able to make a REST API call to get all the dag stats without requiring specific dag ids.

Related issues

https://github.com/apache/airflow/pull/41017 (see specific discussion in the PR here: https://github.com/apache/airflow/pull/41017#discussion_r1698824381)

Are you willing to submit a PR?

Code of Conduct

dondaum commented 2 months ago

I would be happy to help with this one again.

dondaum commented 2 months ago

Friendly reminder.

Yusin0903 commented 1 month ago

Hi, Can I try this issue?

potiuk commented 1 month ago

Feel free to collaborate on that one @dondaum @Yusin0903

dondaum commented 1 month ago

@Yusin0903 I've already contributed to a similar feature request. So from my side you can take care of this and I can help you if you need help. What do you think?

Yusin0903 commented 1 month ago

@dondaum ok, thank you! I will try it.

Yusin0903 commented 3 weeks ago

@dondaum Hi, because I am busy recently. I think I can not do it so well. Can u continue executing it?

dondaum commented 3 weeks ago

@dondaum Hi, because I am busy recently. I think I can not do it so well. Can u continue executing it?

Sure. I will take this one over.

michaeljs-c commented 3 weeks ago

Hi @dondaum I'm looking to make my first contribution. Could I take part in this one?

dondaum commented 3 weeks ago

Hi @dondaum I'm looking to make my first contribution. Could I take part in this one?

Sure. I think it is hard to split it up. So from my side you can take care of this and I can help you if you need help. What do you think?

dondaum commented 3 weeks ago

@potiuk can you please assign @michaeljs-c