-
Notifications
You must be signed in to change notification settings - Fork 856
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
DynamoDbEnhancedClient: @DynamoDBAutoGeneratedTimestamp support #1920
Comments
Hello, Curious what your timeline is on this? Thank you, |
Hello, I created an implementation for this, feel free to modify and integrate into your SDK. Works the same as the v 1.11 DynamoDB Mapper implementation. https://github.com/gakinson/dyanamodb-enhanced-DynamoDbAutoGeneratedTimestamp-annotation Thank you, |
Just wanted to add a note on my previous implementation, the Strategy ALWAYS does not work because I was unable to set an update expression on the WriteModification since it only supports the updated item and CONDITIONAL expressions. Do you plan on supporting update expressions on the WriteModification class? |
Hi @gakinson , can you explain why you needed to be able to modify the update expression instead of just providing an updated item map with the timestamp set in it? UpdateItem for example will take the updated item and build an update expression from it. |
Hello @bmaizels , I might be wrong about it, but for the strategy CREATE you need to only set the timestamp on the creation of an object which would require an update expression such as "SET CreationTimestamp = if_not_exists(CreationTimestamp, :t)" to only place the value if it does not exist. If you were to just return the updated item then you would overwrite the original timestamp. |
@gakinson, Oh right, yes, we need to support if_not_exists , I remember now. Thanks for the reminder! I've refreshed this in our backlog, stay tuned. |
@gakinson Just to confirm, it's actually CREATE that is broken because that depends on 'if_not_exists', whereas ALWAYS is supposed to overwrite it every time there is an update and should be achievable using the current extension framework? |
@bmaizels Yes, the CREATE is broken, but the ALWAYS works fine since it is always a replace. For CREATE, we need to support if_not_exists which falls into an update expression instead of what is currently supported which are conditional expressions. |
any news on this? |
keep monitoring official support. |
We haven't delivered this annotation yet but I wanted to point out that 'if_not_exists' behavior is now supported as per #2076 |
What is the timeline on delivering this annotation? I think this is a pretty widely used feature. |
Please let us know about the timleline for this. Thanks. |
+1 |
Sorry, I can confirm that this is in our backlog, but we aren't able to commit to a timeline for when it will be released. |
Only sign requests that have HTTPS endpoints
|
From #35:
V1 can automatically generate timestamps for newly created or updated records with the @DynamoDBAutoGeneratedTimestamp annotation. This could be added as an extension to V2.
The text was updated successfully, but these errors were encountered: