You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by je...@apache.org on 2022/08/16 15:35:10 UTC
[airflow] 03/11: TriggerDagRunOperator.operator_extra_links is attr (#24676)
This is an automated email from the ASF dual-hosted git repository.
jedcunningham pushed a commit to tag v2.3.3+astro.2
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit eee8785505d30ad1db7c141bfb1ce8d8777bd3e2
Author: Tzu-ping Chung <ur...@gmail.com>
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.
(cherry picked from commit 8dcafdfcdddc77fdfd2401757dcbc15bfec76d6b)
---
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,