airflow icon indicating copy to clipboard operation
airflow copied to clipboard

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

Open reganbaum opened this issue 1 year ago • 2 comments

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?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

reganbaum avatar Aug 15 '24 10:08 reganbaum

I would be happy to help with this one again.

dondaum avatar Aug 16 '24 15:08 dondaum

Friendly reminder.

dondaum avatar Aug 26 '24 13:08 dondaum

Hi, Can I try this issue?

Yusin0903 avatar Sep 05 '24 15:09 Yusin0903

Feel free to collaborate on that one @dondaum @Yusin0903

potiuk avatar Sep 05 '24 17:09 potiuk

@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?

dondaum avatar Sep 06 '24 07:09 dondaum

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

Yusin0903 avatar Sep 06 '24 17:09 Yusin0903

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

Yusin0903 avatar Oct 07 '24 13:10 Yusin0903

@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.

dondaum avatar Oct 08 '24 07:10 dondaum

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

michaeljs-c avatar Oct 08 '24 20:10 michaeljs-c

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 avatar Oct 09 '24 07:10 dondaum

@potiuk can you please assign @michaeljs-c

dondaum avatar Oct 09 '24 14:10 dondaum