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 events to emit model/session objects #1214

Closed

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Mar 11, 2015

This commit updates the events emitted in cli driver
to emit service/operation object alternatives. This change
allows handlers to be updated to not require service/operation
objects.

In many cases, some handlers took an operation object, but
did not actually use this, so these changes were minimal.

Note that this puts the CLI in an interim state. The plan is
to not merge this into the develop branch until clidriver is
switched over, but this will allow a common base for all
customization switchovers to be based on. This is why
this is a pull against the clidriver-no-clients branch for its
base, not develop.

cc @kyleknap @danielgtaylor

This commit updates the events emitted in cli driver
to emit service/operation object alternatives.  This change
allows handlers to be updated to not require service/operation
objects.

In many cases, some handlers took an `operation` object, but
did not actually use this, so these changes were minimal.

Note that this puts the CLI in an interim state.  The plan is
to not merge this into the develop branch until clidriver is
switched over, but this will allow a common base for all
customization switchovers to be based on.
@jamesls
Copy link
Member Author

jamesls commented Mar 11, 2015

This will fail until boto/botocore#487 is merged. It's been reviewed so I'll go ahead and merge and resubmit this build request.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 92.52% when pulling 8891aee on jamesls:clidriver-no-clients into ad11611 on aws:clidriver-no-clients.

We don't really need the help text for these tests
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 92.53% when pulling d4d8e1c on jamesls:clidriver-no-clients into ad11611 on aws:clidriver-no-clients.

@@ -201,6 +201,9 @@ def test_no_paginate_arg(self):
p = aws('s3api list-objects --bucket %s --no-paginate' % bucket_name)
self.assertEqual(p.rc, 0, p.stdout + p.stderr)

p = aws('s3api list-objects --bucket %s' % bucket_name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this just to make sure pagination works? Its under the no pagination test though.

@kyleknap
Copy link
Contributor

Looks good. I had just a few some small comments.

@danielgtaylor
Copy link
Contributor

LGTM

@jamesls
Copy link
Member Author

jamesls commented Mar 13, 2015

Closing in favor of #1220, which is more comprehensive and includes this PR.

@jamesls jamesls closed this Mar 13, 2015
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this pull request Feb 12, 2022
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.

4 participants