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

Plumb request payer to complete multipart #103

Merged
merged 3 commits into from
Feb 14, 2018

Conversation

kyleknap
Copy link
Member

I noticed that this was not plumbed in when I was working on the --request-payer feature for the CLI.

Copy link
Member

@jamesls jamesls left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me. I'm noticing there's a lot of similarity between the multipart uploads and copies. It might be worth trying to refactor this code the next time we need to touch these files.

@@ -126,6 +126,24 @@ def invoke_progress_callbacks(callbacks, bytes_transferred):
callback(bytes_transferred=bytes_transferred)


def get_filtered_extra_args(extra_args, whitelisted_args):
Copy link
Member

Choose a reason for hiding this comment

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

Can you rename this to something more general? The name makes sense when it's an internal method on the various Task subclasses, but if it's going to be a utility function I think it should be named without any mention of "extra args".

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I was thinking about that too. I am going to rename it to get_filtered_dict.

@kyleknap
Copy link
Member Author

@jamesls I updated based on feedback. Let me know if you have any feedback on the update. Otherwise, I will probably merge this soon so we can start getting clean runs of the CLI --request-payer PR.

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

Successfully merging this pull request may close these issues.

None yet

3 participants