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

Update generate upload token to support create additional revision #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jcfr
Copy link
Contributor

@jcfr jcfr commented Oct 27, 2015

Description associated with PR midasplatform/Midas#146 provides the expected details to understand this change.

Process optional parameters like it is done in method "perform_upload", this
will allow the introduction of more optional parameter.
…ional_revision"

This commit add supporte from parameter introduced in midasplatform/Midas#146
@jcfr
Copy link
Contributor Author

jcfr commented Oct 27, 2015

Cc: @jamiesnape @cpatrick @mgrauer

@cpatrick
Copy link
Contributor

lgtm, but I want @jamiesnape to verify.

optional_keys = ['checksum', 'create_additional_revision']
for key in optional_keys:
if key in kwargs:
parameters[key] = kwargs[key]
Copy link
Contributor

Choose a reason for hiding this comment

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

Unless I am mistaken, if checksum=None or create_additional_revision=None, the parameter should not be passed to the request.

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

Successfully merging this pull request may close these issues.

None yet

3 participants