-
Notifications
You must be signed in to change notification settings - Fork 877
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
Issue #3365 - adding response metadata into enhanced response objects #3413
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for very thorough unit testing!
Please add functional tests too and update BasicCrudTest
and AsyncBasicCrudTest
. It should be sufficient with updating or adding one test case per test file. I'd recommend updating if there's a decent test case to piggy back, because the test classes are already very long.
return result; | ||
} | ||
|
||
@NotThreadSafe | ||
public static final class Builder<T> { | ||
public DynamoDbResponseMetadata responseMetadata; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be private
as in DeleteItemEnhancedResponse
Nit: put it as the last instance variable for consistency
return result; | ||
} | ||
|
||
@NotThreadSafe | ||
public static final class Builder<T> { | ||
public DynamoDbResponseMetadata responseMetadata; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be private
as in DeleteItemEnhancedResponse
Nit: put it as the last instance variable for consistency
DynamoDbResponseMetadata dynamoDbResponseMetadata = | ||
DynamoDbResponseMetadata.create(DefaultAwsResponseMetadata.create(metadataMap)); | ||
|
||
DeleteItemEnhancedResponse<FakeItem> containsItemCollectionMetrics = DeleteItemEnhancedResponse.builder(FakeItem.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: update name of variable to reference ResponseMetadata
DynamoDbResponseMetadata dynamoDbResponseMetadata = | ||
DynamoDbResponseMetadata.create(DefaultAwsResponseMetadata.create(metadataMap)); | ||
|
||
PutItemEnhancedResponse<FakeItem> containsItemCollectionMetrics = PutItemEnhancedResponse.builder(FakeItem.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: update name of variable to reference ResponseMetadata
DynamoDbResponseMetadata dynamoDbResponseMetadata = | ||
DynamoDbResponseMetadata.create(DefaultAwsResponseMetadata.create(metadataMap)); | ||
|
||
UpdateItemEnhancedResponse<FakeItem> containsItemCollectionMetrics = UpdateItemEnhancedResponse.builder(FakeItem.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: update name of variable to reference ResponseMetadata
@cenedhryn Thank you for your time on review, I have pushed my changes with requested changes. |
Motivation and Context
Issue #3365
Modifications
Testing
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsscripts/new-change
script and following the instructions. Commit the new file created by the script in.changes/next-release
with your changes.License