-
Notifications
You must be signed in to change notification settings - Fork 916
Fixed EnhancedClient UpdateItem operation to make it work on nested attributes as well #5380
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
Merged
Merged
Changes from 19 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
df37a55
Fixed EnhancedClient UpdateItem operation to make it work on nested a…
anirudh9391 1a2c32a
Merge branch 'master' into anirudkr/ddb-update
anirudh9391 8c39b17
Add Tests for multi-level nesting updates to work correctly
anirudh9391 f431d6f
Merge branch 'master' into anirudkr/ddb-update
anirudh9391 c6c2feb
Merge branch 'master' into anirudkr/ddb-update
anirudh9391 58d223a
Merge branch 'master' into anirudkr/ddb-update
anirudh9391 01584fe
Merge branch 'master' into anirudkr/ddb-update
anirudh9391 559b7b4
Fixed PR feedback
anirudh9391 b0b86be
Merge branch 'master' into anirudkr/ddb-update
anirudh9391 f677cfd
Updated Javadocs
anirudh9391 cf96d13
Addressed Pr feedback
anirudh9391 c06c200
Removed indendation changes
anirudh9391 3a65dee
Merge branch 'master' into anirudkr/ddb-update
anirudh9391 4080638
Merge branch 'master' into anirudkr/ddb-update
anirudh9391 5f6232d
Added tests for FlattenedMapper
anirudh9391 f2beece
Merge branch 'master' into anirudkr/ddb-update
anirudh9391 ca54c25
fixed indendation
anirudh9391 5e1fff1
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 ac7033a
Fix indendation and remove unintentional changes
anirudh9391 4793709
Configured MappingConfiguration object
anirudh9391 4909472
Added methods to AttributeMapping interface
anirudh9391 c599881
Fixed unintentional indendation changes
anirudh9391 8a222ce
Fixed unintentional indendation changes
anirudh9391 6e5e39a
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 7cedb09
Add changelogs
anirudh9391 950d308
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 7ea245d
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 459d040
Introduce a new method to transform input to be able to perform updat…
anirudh9391 f8500b3
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 1f56f0b
Remove unwanted changes
anirudh9391 dcc3edc
Indent
anirudh9391 374a917
Remove unwanted changes
anirudh9391 3c9b67c
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 b144d62
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 5c7cbc7
Added testing
anirudh9391 d361c3b
Added test to validate updating string to null
anirudh9391 f5e694c
Remove unintentional indentation changes
anirudh9391 149e90d
Fix checkstyle
anirudh9391 f35e858
Update test case to add empty nested attribute
anirudh9391 ae8c56b
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 84e82db
Added a test to verify that updates to non-scalar nested attributes w…
anirudh9391 7b5a488
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 7ce686c
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 46fd7c3
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 db3f2fc
Uncomment test assertions
anirudh9391 711b020
Ensure correct workings of updating to an emoty map
anirudh9391 9ba36aa
Fixed checkstyle
anirudh9391 227d00f
Addressed pr feedback
anirudh9391 abaa8de
Merge branch 'master' into anirudkr/ddb-updateitem-bug
anirudh9391 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...ftware/amazon/awssdk/enhanced/dynamodb/internal/DynamoDBEnhancedRequestConfiguration.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
package software.amazon.awssdk.enhanced.dynamodb.internal; | ||
anirudh9391 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
import software.amazon.awssdk.annotations.SdkPublicApi; | ||
import software.amazon.awssdk.enhanced.dynamodb.mapper.AttributeMapping; | ||
|
||
/** | ||
* Configuration Object to define behaviour of DynamoDB operations. | ||
*/ | ||
@SdkPublicApi | ||
public class DynamoDBEnhancedRequestConfiguration { | ||
anirudh9391 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
private final AttributeMapping attributeMapping; | ||
|
||
public DynamoDBEnhancedRequestConfiguration(AttributeMapping attributeMapping) { | ||
this.attributeMapping = attributeMapping; | ||
} | ||
anirudh9391 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
public AttributeMapping attributeMapping() { | ||
return attributeMapping; | ||
} | ||
|
||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...anced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/mapper/AttributeMapping.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
package software.amazon.awssdk.enhanced.dynamodb.mapper; | ||
|
||
public enum AttributeMapping { | ||
anirudh9391 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
SHALLOW, | ||
anirudh9391 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
NESTED | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.