This is an automated email from the ASF dual-hosted git repository.
uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 8dcafdfcdd TriggerDagRunOperator.operator_extra_links is attr (#24676)
8dcafdfcdd is described below
commit 8dcafdfcdddc77fdfd2401757dcbc15bfec76d6b
Author: Tzu-ping Chung <[email protected]>
AuthorDate: Tue Jun 28 10:59:00 2022 +0800
TriggerDagRunOperator.operator_extra_links is attr (#24676)
There's absolutely no reason this needs to be a property. And it cannot
be since we need to access this at the class level.
---
airflow/operators/trigger_dagrun.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/airflow/operators/trigger_dagrun.py
b/airflow/operators/trigger_dagrun.py
index 4578fd2df8..8045b5796a 100644
--- a/airflow/operators/trigger_dagrun.py
+++ b/airflow/operators/trigger_dagrun.py
@@ -87,11 +87,7 @@ class TriggerDagRunOperator(BaseOperator):
template_fields: Sequence[str] = ("trigger_dag_id", "trigger_run_id",
"execution_date", "conf")
template_fields_renderers = {"conf": "py"}
ui_color = "#ffefeb"
-
- @property
- def operator_extra_links(self):
- """Return operator extra links"""
- return [TriggerDagRunLink()]
+ operator_extra_links = [TriggerDagRunLink()]
def __init__(
self,