jason810496 commented on code in PR #52437:
URL: https://github.com/apache/airflow/pull/52437#discussion_r2173786548
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_run.py:
##########
@@ -334,6 +334,7 @@ def get_dag_runs(
readable_dag_runs_filter: ReadableDagRunsFilterDep,
session: SessionDep,
dag_bag: DagBagDep,
+ run_id: str | None = None,
Review Comment:
nit:
```suggestion
run_id: Annotated[FilterParam[str | None],
Depends(filter_param_factory(DagRun.run_id, str | None))],
```
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_run.py:
##########
@@ -349,6 +350,9 @@ def get_dag_runs(
query = query.filter(DagRun.dag_id ==
dag_id).options(joinedload(DagRun.dag_model))
+ if run_id:
+ query = query.filter(DagRun.run_id == run_id)
+
Review Comment:
```suggestion
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]