You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/04/07 15:23:40 UTC
[GitHub] [airflow] uranusjr commented on a diff in pull request #22834: Operator name separate from class
uranusjr commented on code in PR #22834:
URL: https://github.com/apache/airflow/pull/22834#discussion_r845266860
##########
airflow/decorators/python.py:
##########
@@ -55,6 +55,10 @@ def __init__(self, *, python_callable, op_args, op_kwargs, **kwargs) -> None:
**kwargs,
)
+ @property
+ def get_operator_ui_name(self):
+ return 'PythonOperator'
Review Comment:
I’m thinking maybe we should let this return `@task.python`; does that look better in the UI?
##########
airflow/decorators/python.py:
##########
@@ -55,6 +55,10 @@ def __init__(self, *, python_callable, op_args, op_kwargs, **kwargs) -> None:
**kwargs,
)
+ @property
+ def get_operator_ui_name(self):
+ return 'PythonOperator'
Review Comment:
I’m thinking maybe we should let this return `"@task.python"`; does that look better in the UI?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org