Adds Global TTL Configuration for DynamoDB State Store
Description
Adds a way to globally configure the state TTL for dynamo (inspired by #1059).
The defined default TTL will only be used if the state request does not explicitly specify a TTL itself.
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:
- [x] Code compiles correctly
- [x] Created/updated tests
- [x] Extended the documentation
- [x] Created the dapr/docs PR: https://github.com/dapr/docs/pull/4911
Would be nice when the different statestores (Redis and Dynamo) behave in a similar way.
There will be a slight delay in reviewing the DynamoDB-related PRs. We need to address the missing/disabled tests first, which are being tracked in issue #4047. Thanks for your patience!
@sicoyle Ready for another review round
one last comment and then this LGTM - thank you!
Fixed. Also updated the docs PR with the same description
@ZeynelKoca pls see the build failures and ping when you're ready and I can retrigger 🙏
@sicoyle Fixed a stupid rebase mistake. Try again?
@sicoyle Can the pipeline run get an approval?
@sicoyle Fixed the formatting 🙏
@sicoyle I think a re-run is needed? Pipelines failed due to being unable to checkout the repo
@sicoyle I think a re-run is needed? Pipelines failed due to being unable to checkout the repo
rerunning, lets see. I know github has been having quite a few issues recently
@sicoyle I think a re-run is needed? Pipelines failed due to being unable to checkout the repo
rerunning, lets see. I know github has been having quite a few issues recently
Fixed another formatting issue 🙏
@sicoyle Can you trigger a pipeline run? I see that the corresponding docs PR has already been merged.
@sicoyle Thanks! The build failed again due to formatting issues (🙄) so I upgraded to the exact go version the pipeline was using. go fmt now properly added the missing new-line at the end of the dynamodb_test.go file. Another pipeline run should do it 🤞
The build failed again due to formatting issues (🙄)
LOL I feel this 😄 It's running. Will circle back later today and if all green we can send it 🚀
@sicoyle No formatting issues anymore 🎉
1 failing unit test though, which I updated based on the new TTL property behavior. All tests pass now locally