ashb commented on a change in pull request #12472:
URL: https://github.com/apache/airflow/pull/12472#discussion_r528739613
##########
File path: airflow/serialization/serialized_objects.py
##########
@@ -53,14 +55,23 @@
log = logging.getLogger(__name__)
FAILED = 'serialization_failed'
-BUILTIN_OPERATOR_EXTRA_LINKS: List[str] = [
- "airflow.providers.google.cloud.operators.bigquery.BigQueryConsoleLink",
-
"airflow.providers.google.cloud.operators.bigquery.BigQueryConsoleIndexableLink",
- "airflow.providers.google.cloud.operators.mlengine.AIPlatformConsoleLink",
- "airflow.providers.qubole.operators.qubole.QDSLink",
+BUILTIN_OPERATOR_EXTRA_LINKS: Set[str] = {
"airflow.operators.dagrun_operator.TriggerDagRunLink",
"airflow.sensors.external_task_sensor.ExternalTaskSensorLink",
-]
+}
+
+cache = lru_cache(maxsize=None)
+
+
+@cache
+def get_builtin_operator_extra_links():
Review comment:
This function will no longer just return build in ones:
```suggestion
def get_registered_operator_extra_links():
```
##########
File path: airflow/serialization/serialized_objects.py
##########
@@ -53,14 +55,23 @@
log = logging.getLogger(__name__)
FAILED = 'serialization_failed'
-BUILTIN_OPERATOR_EXTRA_LINKS: List[str] = [
- "airflow.providers.google.cloud.operators.bigquery.BigQueryConsoleLink",
-
"airflow.providers.google.cloud.operators.bigquery.BigQueryConsoleIndexableLink",
- "airflow.providers.google.cloud.operators.mlengine.AIPlatformConsoleLink",
- "airflow.providers.qubole.operators.qubole.QDSLink",
+BUILTIN_OPERATOR_EXTRA_LINKS: Set[str] = {
"airflow.operators.dagrun_operator.TriggerDagRunLink",
"airflow.sensors.external_task_sensor.ExternalTaskSensorLink",
-]
+}
+
+cache = lru_cache(maxsize=None)
+
+
+@cache
+def get_builtin_operator_extra_links():
Review comment:
This function will no longer just return build in ones:
```suggestion
def get_registered_operator_extra_links():
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]