Skip to content

Conversation

@aajtodd
Copy link
Contributor

@aajtodd aajtodd commented Aug 28, 2023

Issue #

upstream: smithy-lang/smithy-kotlin#939

Description of changes

Track upstream changes to HttpDeserialize being refactored to take HttpCall as an argument rather than HttpResponse

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@aajtodd aajtodd requested a review from a team as a code owner August 28, 2023 17:56
Copy link
Member

@lauzadis lauzadis left a comment

Choose a reason for hiding this comment

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

Looks good! The batch check failed because ChangeResourceRecordSetsUnmarshallingTest also needs a refactor similar to the GetBucketLocationOperationDeserializerTest you did.

.write("val wrappedResponse = response.#T(payload)", RuntimeTypes.AwsProtocolCore.withPayload)
writer.write("val payload = call.response.body.#T()", RuntimeTypes.Http.readAll)
.write("val wrappedResponse = call.response.#T(payload)", RuntimeTypes.AwsProtocolCore.withPayload)
.write("val wrappedCall = call.copy(response=wrappedResponse)")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Spaces around the = operator.

.write("val wrappedResponse = response.#T(payload)", RuntimeTypes.AwsProtocolCore.withPayload)
writer.write("val payload = call.response.body.#T()", RuntimeTypes.Http.readAll)
.write("val wrappedResponse = call.response.#T(payload)", RuntimeTypes.AwsProtocolCore.withPayload)
.write("val wrappedCall = call.copy(response=wrappedResponse)")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Spaces around the = operator.

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
18.4% 18.4% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@aajtodd aajtodd merged commit 223d38b into main Aug 29, 2023
@aajtodd aajtodd deleted the refactor-engine-ctx branch August 29, 2023 16:11
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