uranusjr commented on code in PR #25633:
URL: https://github.com/apache/airflow/pull/25633#discussion_r946331067
##########
airflow/www/views.py:
##########
@@ -3622,8 +3622,10 @@ def grid_data(self):
if run_state:
query = query.filter(DagRun.state == run_state)
- dag_runs =
query.order_by(DagRun.execution_date.desc()).limit(num_runs).all()
+ ordering = (DagRun.__table__.columns[name].desc() for name in
dag.timetable.run_ordering)
Review Comment:
Ah, yes, we should. I’ll add a field in the response JSON and leave the UI
part to you.
--
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]