turbaszek commented on a change in pull request #10304:
URL: https://github.com/apache/airflow/pull/10304#discussion_r477609564
##########
File path: airflow/providers/google/cloud/hooks/dataprep.py
##########
@@ -40,7 +41,10 @@ class GoogleDataprepHook(BaseHook):
def __init__(self, dataprep_conn_id: str = "dataprep_conn_id") -> None:
super().__init__()
self.dataprep_conn_id = dataprep_conn_id
- self._url = "https://api.clouddataprep.com/v4/jobGroups"
+ conn = self.get_connection(self.dataprep_conn_id)
+ extra_dejson = conn.extra_dejson
+ self._token = extra_dejson.get("token")
Review comment:
```suggestion
self._token = extra_dejson.get("extra__dataprep__token")
```
According to documentation and Airflow best practices
----------------------------------------------------------------
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]