Skip to content

Fix: add RUN, HITL_DETAIL, TASK_INSTANCE entities to /dags endpoint as it returns nested entities in response#64822

Draft
sjyangkevin wants to merge 1 commit intoapache:mainfrom
sjyangkevin:enhance-dags-endpoint-access
Draft

Fix: add RUN, HITL_DETAIL, TASK_INSTANCE entities to /dags endpoint as it returns nested entities in response#64822
sjyangkevin wants to merge 1 commit intoapache:mainfrom
sjyangkevin:enhance-dags-endpoint-access

Conversation

@sjyangkevin
Copy link
Copy Markdown
Contributor

@sjyangkevin sjyangkevin commented Apr 7, 2026

The /dags endpoint returns nested entities include RUN, and HITLDetail includes TaskInstanceResponse. Add related access entity to govern the endpoint.

class DAGWithLatestDagRunsResponse(DAGResponse):
    """DAG with latest dag runs response serializer."""

    asset_expression: dict | None
    latest_dag_runs: list[DAGRunLightResponse]
    pending_actions: list[HITLDetail]
    is_favorite: bool

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: [Claude Code - Sonnet 4.6] following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Apr 7, 2026
@sjyangkevin sjyangkevin force-pushed the enhance-dags-endpoint-access branch from ecb6e6e to 3208ff0 Compare April 7, 2026 12:59
Copy link
Copy Markdown
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

Looking good. We might need a significant newsfragment just to mention this. Just a disclaimer for people to double check their users permissions check or they might have unintended forbidden errors.

@sjyangkevin
Copy link
Copy Markdown
Contributor Author

Looking good. We might need a significant newsfragment just to mention this. Just a disclaimer for people to double check their users permissions check or they might have unintended forbidden errors.

Thanks! I will look into how to add a newsfragment for this change.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants