bbovenzi commented on code in PR #27805:
URL: https://github.com/apache/airflow/pull/27805#discussion_r1035307136
##########
airflow/www/views.py:
##########
@@ -1895,6 +1895,20 @@ def trigger(self, session=None):
flash(f"Cannot create dagruns because the dag {dag_id} has import
errors", "error")
return redirect(origin)
+ recent_confs = (
+ session.query(DagRun.conf)
+ .filter(
+ DagRun.dag_id == dag_id,
+ DagRun.run_type == DagRunType.MANUAL,
+ DagRun.conf.isnot(None),
+ )
+ .order_by(DagRun.execution_date.desc())
+ .limit(5)
+ .all()
Review Comment:
Can we change this to the first 5 unique configs?
If we can now select old configs, a lot of the options would just be the
same.
--
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]