turbaszek commented on a change in pull request #10304:
URL: https://github.com/apache/airflow/pull/10304#discussion_r477223830



##########
File path: airflow/providers/google/cloud/hooks/dataprep.py
##########
@@ -71,19 +62,20 @@ def get_jobs_for_job_group(self, job_id: int) -> Dict[str, 
Any]:
         :type job_id: int
         """
 
-        url: str = f"{self._url}/{job_id}/jobs"
+        endpoint_path = f"/v4/jobGroups/{job_id}/jobs"
+        url: str = f"{self._base_url}{endpoint_path}"

Review comment:
       ```suggestion
           endpoint_path = f"v4/jobGroups/{job_id}/jobs"
           url: str = os.path.join(self._base_url, endpoint_path)
   ```
   In this way we will handle `_base_url` with and without ending `/`




----------------------------------------------------------------
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]


Reply via email to