-
Notifications
You must be signed in to change notification settings - Fork 556
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
fix(lib-dynamodb): fix use of log filters in conjunction with DynamDBDocumentClient #4249
Conversation
@@ -41,7 +41,8 @@ describe("DynamoDBDocumentClientCommand", () => { | |||
expect(options).toEqual({ | |||
name: "DocumentMarshall", | |||
override: true, | |||
step: "initialize", | |||
relation: "before", | |||
toMiddleware: "serializerMiddleware", |
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.
this isn't strictly necessary since the serializer in in the serialize stage and this was in the initialize stage, but more explicit
@@ -50,7 +51,8 @@ describe("DynamoDBDocumentClientCommand", () => { | |||
expect(options).toEqual({ | |||
name: "DocumentUnmarshall", | |||
override: true, | |||
step: "deserialize", | |||
relation: "before", | |||
toMiddleware: "deserializerMiddleware", |
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.
safer to be explicit about this, but it was already in this order
c62c709
to
6576c1c
Compare
6576c1c
to
dd23c68
Compare
1f0d8ae
to
56e9494
Compare
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Issue
#3846
Description
DynamoDBDocument client changes input and output shapes. The logger middleware calls filter functions that expect the base shapes and results in errors.
in this PR:
This ensures filtering functions are called on the original input and output shapes unaffected by dynamodbdocument marshaling.
Testing
manual Put and Query command using the dynamodbdocument client.