-
Notifications
You must be signed in to change notification settings - Fork 4
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
Upgrade AWS SDK DynamoDB from v2 > v3 #2062
base: develop
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
780efb8
to
c8bf535
Compare
b0adb0e
to
b806cb0
Compare
601bfd0
to
ba82ad1
Compare
Quality Gate passedIssues Measures |
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.
I've reviewed some of this, and I'm noticing common issues, such as use of let
rather than const
, multiple expect
statements in tests and enforcement of a particular implementation via tests, rather than testing an expected result after particular inputs. Please could you check through yourself for further instances of these (I've highlighted the first few). Also, you're touching areas of the codebase that haven't been looked at since it was first written, and I'd say this is an opportunity to rewrite the over-complicated tests into the style we use now. Have a look through yourself and then we can go through it together?
const firstCall = ddbMock.call(0).args[0].input | ||
expect(firstCall.RequestItems.NameOfTableToUpdate).toHaveLength(3) | ||
const secondCall = ddbMock.call(1).args[0].input | ||
expect(secondCall.RequestItems.NameOfTableToUpdate).toHaveLength(2) |
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.
I'd say that the existing tests need to be completely rewritten; they're pretty complex and again, enforce a particular implementation. This is possibly better talked through, so give me a shout when you want to look at this.
0f748cc
to
8ccc00f
Compare
rPlease enter the commit message for your changes. Lines starting
a81a092
to
e5ca3fa
Compare
Quality Gate passedIssues Measures |
https://eaflood.atlassian.net/browse/IWTF-3449
This ticket is part of upgrading rod-licensing from using the AWS SDK v2 to v3.
This ticket specifically covers upgrading the parts of our codebase that use the AWS SDK to use DynamoDB
(NOT SecretsManager, S3 or SQS yet)
We expect this to be the largest and most complex bit of the SDK upgrade.