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

data pipeline mocks #318

Merged
merged 2 commits into from
Dec 9, 2016
Merged

Conversation

ehowe
Copy link
Contributor

@ehowe ehowe commented Nov 4, 2016

No description provided.

@lanej lanej self-assigned this Nov 4, 2016
@geemus
Copy link
Member

geemus commented Nov 9, 2016

Broadly looks good to me (I have no experience with pipeline stuff though).

@lanej I'll leave it to you? Thanks.

@lanej
Copy link
Member

lanej commented Nov 16, 2016

@ehowe ready ?

@ehowe
Copy link
Contributor Author

ehowe commented Nov 16, 2016

Yup, let's do it.

On Wed, Nov 16, 2016, 6:49 PM Josh Lane notifications@github.com wrote:

@ehowe https://github.com/ehowe ready ?


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#318 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAuM-PpowpKgRD4bq7V2n9KLOcOKovqWks5q-5afgaJpZM4Kpg0R
.

'pipelineObjects' => transform_objects(pipeline_objects),
}.merge(options)

response = request({
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: unnecessary assignment. couple of these lying around.

})

Fog::JSON.decode(response.body)
Copy link
Member

Choose a reason for hiding this comment

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

We are changing the return value for all of these requests to the raw response from the decoded body. While I think this is good direction, I would like @fog/fog-aws to comment on the relevance of the breaking change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Definitely brings it in line with the rest of the services. Without making that change, it makes it impossible to assert on things that return an empty body, but different status codes.

@lanej
Copy link
Member

lanej commented Nov 29, 2016

@geemus this PR changes the return value of the data pipeline requests. Would you consider that a breaking change constituting a major version bump ? Do we consider requests to be part of the public API ?

@connection.request(params)
response = @connection.request(params)

unless response.body.empty?
Copy link
Member

Choose a reason for hiding this comment

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

@lanej Won't this part mean that we still end up with decoded bodies? Or am I misunderstanding your question?

@@ -24,14 +24,35 @@ def create_pipeline(unique_id, name, description=nil, tags=nil)
:body => Fog::JSON.encode(params),
:headers => { 'X-Amz-Target' => 'DataPipeline.CreatePipeline' },
})

Fog::JSON.decode(response.body)
Copy link
Member

Choose a reason for hiding this comment

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

@geemus this is what I was referring to. These requests used to return decoded response bodies. Now they return the entire response object.

Copy link
Member

Choose a reason for hiding this comment

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

Ah. I'm open to either way. Not major-bumping is obviously easier. I think this stuff is relatively new, so that makes it feel a bit more flexible to change. But I agree it could break things. What is your inclination?

Copy link
Member

Choose a reason for hiding this comment

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

My inclination is release a major bump and be good semver people.

Copy link
Member

Choose a reason for hiding this comment

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

Works for me, I think. My only concern would be about how weird it might be (or not) for fog-core to be in a different major release level. They are distinct projects now, so probably fine, but just something to note.

@lanej lanej merged commit f622160 into fog:master Dec 9, 2016
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.

3 participants