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 fields to dagrun endpoint #23440

Merged
merged 2 commits into from
May 3, 2022
Merged

Conversation

tirkarthi
Copy link
Contributor

Add below fields to dagrun endpoint :

  • data_interval_start
  • data_interval_end
  • last_scheduling_decision
  • run_type

closes: #23415
related: #23415

* data_interval_start
* data_interval_end
* last_scheduling_decision
* run_type
@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label May 3, 2022
@@ -1046,6 +1094,10 @@ def test_should_response_200_for_matching_execution_date_logical_date(self):
"external_trigger": True,
"start_date": None,
"state": "queued",
"data_interval_end": "2020-11-10T08:25:56.939143+00:00",
"data_interval_start": "2020-11-10T08:25:56.939143+00:00",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use this opportunity to refactor these hardcoded dates? We could have logical_date and execution_date as constants and pass them instead of these dates?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ephraimbuddy, made this one and another test to use constants.

@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label May 3, 2022
@github-actions
Copy link

github-actions bot commented May 3, 2022

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@bbovenzi bbovenzi merged commit 6178491 into apache:main May 3, 2022
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label May 8, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.4.0 milestone May 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 okay to merge It's ok to merge this PR as it does not require more tests type:improvement Changelog: Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more fields to DAG Run API endpoints
3 participants