Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New healthcare #2089

Merged
merged 31 commits into from
Apr 4, 2019
Merged

New healthcare #2089

merged 31 commits into from
Apr 4, 2019

Conversation

engelke
Copy link
Contributor

@engelke engelke commented Apr 4, 2019

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 4, 2019
@engelke engelke requested a review from gguuss April 4, 2019 19:05
Copy link
Contributor

@gguuss gguuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM, one nit and one potential issue.

I'm seeing a lint error:

nox > Session py36(sample='./healthcare/api-client/hl7v2') was successful.
nox > Running session lint(sample='./healthcare/api-client/dicom')
nox > Creating virtualenv using python in /tmp/lint-sample-healthcare-api-client-dicom
nox > pip install --upgrade flake8 flake8-import-order
nox > cd ./healthcare/api-client/dicom
nox > flake8 --show-source --builtin gettext --max-complexity 20 --import-order-style google --exclude .nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py --ignore=E121,E123,E126,E226,E24,E704,W503,W504,I100,I201,I202 --application-import-names dicomweb_test,resources,dicomweb,dicom_stores,dicom_stores_test .
./dicom_stores.py:436:9: E128 continuation line under-indented for visual indent
        help=get_dicom_store_iam_policy.__doc__)
        ^
./dicom_stores.py:438:9: E128 continuation line under-indented for visual indent
        help=set_dicom_store_iam_policy.__doc__)
        ^
nox > Command flake8 --show-source --builtin gettext --max-complexity 20 --import-order-style google --exclude .nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py --ignore=E121,E123,E126,E226,E24,E704,W503,W504,I100,I201,I202 --application-import-names dicomweb_test,resources,dicomweb,dicom_stores,dicom_stores_test . failed with exit code 1
nox > Session lint(sample='./healthcare/api-client/dicom') failed.

discovery_api, api_version, api_key)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. trailing whitespace

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just fixed the two lint errors. I'll remove the trailing whitespace ASAP.

@@ -25,22 +25,23 @@ def get_client(service_account_json, api_key):
"""Returns an authorized API client by discovering the Healthcare API and
creating a service object using the service account credentials JSON."""
api_scopes = ['https://www.googleapis.com/auth/cloud-platform']
api_version = 'v1alpha'
api_version = 'v1alpha2'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just FYI, I was seeing v1beta1 elsewhere, maybe a typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a typo, a serious one. I'll fix it after rerunning tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking again if this should be alpha or beta

command = parser.add_subparsers(dest='command')

command.add_parser('create-dicom-store', help=create_dicom_store.__doc__)
command.add_parser('delete-dicom-store', help=delete_dicom_store.__doc__)
command.add_parser('get-dicom-store', help=get_dicom_store.__doc__)
command.add_parser('list-dicom-stores', help=list_dicom_stores.__doc__)
command.add_parser('patch-dicom-store', help=patch_dicom_store.__doc__)

command.add_parser(
'get_iam_policy',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lint is not liking this line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll thought I'd handled the lint issues. I'll clean them all up in about an hour.

Copy link
Contributor

@gguuss gguuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe missing a few s/alpha/beta/ edits?

@@ -25,15 +25,15 @@ def get_client(service_account_json, api_key):
"""Returns an authorized API client by discovering the Healthcare API and
creating a service object using the service account credentials JSON."""
api_scopes = ['https://www.googleapis.com/auth/cloud-platform']
api_version = 'v1alpha'
api_version = 'v1alpha2'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be alpha or beta?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v1beta1

@@ -25,22 +25,23 @@ def get_client(service_account_json, api_key):
"""Returns an authorized API client by discovering the Healthcare API and
creating a service object using the service account credentials JSON."""
api_scopes = ['https://www.googleapis.com/auth/cloud-platform']
api_version = 'v1alpha'
api_version = 'v1alpha2'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking again if this should be alpha or beta

@gguuss gguuss self-requested a review April 4, 2019 21:31
@engelke engelke merged commit c4a0e6d into master Apr 4, 2019
@engelke engelke deleted the new_healthcare branch April 4, 2019 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants