Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReST API : get_dag should return more than a simplified view of the dag #22325

Closed
2 tasks done
dylanbstorey opened this issue Mar 16, 2022 · 3 comments · Fixed by #22637
Closed
2 tasks done

ReST API : get_dag should return more than a simplified view of the dag #22325

dylanbstorey opened this issue Mar 16, 2022 · 3 comments · Fixed by #22637
Labels
area:API Airflow's REST/HTTP API kind:feature Feature Requests

Comments

@dylanbstorey
Copy link
Contributor

Description

The current response payload from https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/get_dag is a useful but simple view of the state of a given DAG. However it is missing some additional attributes that I feel would be useful for indiduals/groups who are choosing to interact with Airflow primarily through the ReST interface.

Use case/motivation

As part of a testing workflow we upload DAGs to a running airflow instance and want to trigger an execution of the DAG after we know that the scheduler has updated it. We're currently automating this process through the ReST API, but the last_updated is not exposed.

This should be implemented from the dag_source endpoint.

https://github.com/apache/airflow/blob/main/airflow/api_connexion/endpoints/dag_source_endpoint.py

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@dylanbstorey dylanbstorey added the kind:feature Feature Requests label Mar 16, 2022
@boring-cyborg
Copy link

boring-cyborg bot commented Mar 16, 2022

Thanks for opening your first issue here! Be sure to follow the issue template!

@bbovenzi bbovenzi added the area:API Airflow's REST/HTTP API label Mar 17, 2022
@bbovenzi
Copy link
Contributor

Good idea! I wonder if it should be on get dag or get dag details.

1 similar comment
@bbovenzi
Copy link
Contributor

Good idea! I wonder if it should be on get dag or get dag details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:API Airflow's REST/HTTP API kind:feature Feature Requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants