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

Add more fields to REST API get DAG(dags/dag_id) endpoint #22637

Merged
merged 1 commit into from Mar 31, 2022

Conversation

ephraimbuddy
Copy link
Contributor

The DagModel columns have increased since this endpoint was created. This PR improves the endpoint by including all the missing fields of the DagModel on the endpoint.

This update also touched on DAGDetails schema because it inherits from DAGSchema. In a future PR, when more details would be added to the DAGDetails endpoint, we could separate it from the DAGSchema. They are related but not really the same. One is a database object while the other is not

closes: #22325

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Mar 30, 2022
@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Mar 31, 2022
@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

The DagModel columns have increased since this endpoint was created. This PR improves the
endpoint by including all the missing fields of the DagModel on the endpoint.

This update also touched on DAGDetails schema because it inherits from DAGSchema.
In a future PR, when more details would be added to the DAGDetails endpoint, we could
separate it from the DAGSchema. They are related but not really the same. One is a
database object while the other is not
@ephraimbuddy ephraimbuddy added this to the Airflow 2.3.0 milestone Mar 31, 2022
@ephraimbuddy ephraimbuddy merged commit 9798c8c into apache:main Mar 31, 2022
@ephraimbuddy ephraimbuddy deleted the add-more-fields-to-dag branch March 31, 2022 10:40
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label Apr 8, 2022
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 full tests needed We need to run full set of tests for this PR to merge type:improvement Changelog: Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReST API : get_dag should return more than a simplified view of the dag
3 participants