pierrejeambrun commented on code in PR #56089:
URL: https://github.com/apache/airflow/pull/56089#discussion_r2391897004


##########
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/dags.py:
##########
@@ -104,7 +104,12 @@ def get_dags(
             SortParam(
                 ["dag_id", "dag_display_name", "next_dagrun", "state", 
"start_date"],
                 DagModel,
-                {"last_run_state": DagRun.state, "last_run_start_date": 
DagRun.start_date},
+                {
+                    "last_run_state": DagRun.state,
+                    "start_date": func.coalesce(DagRun.run_after, 
DagRun.start_date),

Review Comment:
   No. `start_date` ordering keyword should sort by `start_date`.
   
   You can update the UI to use the `last_run_after` or add a query param 
default to `last_run_run_after` in the `dynamic_depends` call.



-- 
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]

Reply via email to