[ 
https://issues.apache.org/jira/browse/BEAM-10601?focusedWorklogId=465143&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-465143
 ]

ASF GitHub Bot logged work on BEAM-10601:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 31/Jul/20 19:25
            Start Date: 31/Jul/20 19:25
    Worklog Time Spent: 10m 
      Work Description: pabloem commented on a change in pull request #12331:
URL: https://github.com/apache/beam/pull/12331#discussion_r463788480



##########
File path: sdks/python/apache_beam/io/gcp/dicomio.py
##########
@@ -167,33 +167,40 @@ class DicomSearch(PTransform):
     }
 
   """
-  def __init__(self, buffer_size=8, max_workers=5, credential=None):
+  def __init__(
+      self, buffer_size=8, max_workers=5, client=None, credential=None):
     """Initializes DicomSearch.
     Args:
       credential: # type: Google credential object, if it is specified, the
       Http client will use it to create sessions instead of the default.
     """
     self.buffer_size = buffer_size
     self.max_workers = max_workers
+    if not client:
+      self.client = DicomApiHttpClient()
+    else:
+      self.client = client

Review comment:
       it's not that important, but you can do `self.client = client or 
DicomApiHttpClient()`
   
   Feel free to add it if you have the time.

##########
File path: sdks/python/setup.py
##########
@@ -128,6 +128,7 @@ def get_version():
   cythonize = lambda *args, **kwargs: []
 
 REQUIRED_PACKAGES = [
+    'google-auth>=1.18.0,<=1.20.0',

Review comment:
       ah that's right. You need to skip the test when GCP dependencies are 
missing. Check how we do it for gcs filesystem:
   
   
https://github.com/apache/beam/blob/master/sdks/python/apache_beam/io/gcp/gcsfilesystem_test.py#L39-L47




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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 465143)
    Time Spent: 2.5h  (was: 2h 20m)

> DICOM API Beam IO connector
> ---------------------------
>
>                 Key: BEAM-10601
>                 URL: https://issues.apache.org/jira/browse/BEAM-10601
>             Project: Beam
>          Issue Type: New Feature
>          Components: io-py-gcp
>            Reporter: Jiahao Wu
>            Assignee: Jiahao Wu
>            Priority: P2
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> Create a new Apache Beam I/O connector that helps customers facilitate the 
> reading and writing data to the DICOM Healthcare API, it has three components:
>  # An Ptransform that takes QIDO request and output result metadata as 
> pcollection.
>  # An I/O sink that takes DICOM files and writes them to DICOM store via API.
>  # An Ptransform that convert pubsub message to Qido search request.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to