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

HSClient handling #253

Merged
merged 12 commits into from
Nov 22, 2019
Merged

HSClient handling #253

merged 12 commits into from
Nov 22, 2019

Conversation

paulineribeyre
Copy link
Contributor

dataguids.org uses the feat/hs branch - merge it into master so that we can pin dataguids.org

New Features

  • Handle HSClient to interact with the Commons Share Object API

@github-actions
Copy link

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

@paulineribeyre paulineribeyre changed the title Feat/hs merge HSClient handling Nov 21, 2019
@@ -120,22 +127,26 @@ def indexd_to_dos(record):

@blueprint.errorhandler(UserError)
def handle_user_error(err):
return flask.jsonify(error=str(err)), 400
ret = {"msg": str(err), "status_code": 400}

Choose a reason for hiding this comment

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

why do you need to return the status code also in the response data?

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 don't know why it was done this way, but a production website is using a branch with this change so i'd rather not change the contents of the response

Copy link

@itsJiaqi itsJiaqi left a comment

Choose a reason for hiding this comment

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

Left a question but nothing blocking - LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants