Skip to content
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

Updating stream event properties "MaximumRetryAttempts" & "BisectBatchOnFunctionError" when value is falsy. #7682

Merged
merged 7 commits into from
May 7, 2020

Conversation

jagdeep-singh
Copy link
Contributor

This will fix below minor bug in event stream mapping.

Issues it will resolve

  1. In the event of stream if i want to specify maximumRetryAttempts to 0 then i can't due to falsy condition of 0 in code. And

  2. Once i set bisectBatchOnFunctionError to true and again if i want to make it false then i am not able to do that due to falsy condition of the code.

When this merge request will be approved then we will able to define mapping of stream event
maximumRetryAttempts and bisectBatchOnFunctionError to 0 and false respectively.

Is this ready for review?: Yes
Is it a breaking change?: NO

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jagdeep-singh great thanks for that fix!

I'll be happy to take it in, just please see my suggestions.

lib/plugins/aws/package/compile/events/stream/index.js Outdated Show resolved Hide resolved
lib/plugins/aws/package/compile/events/stream/index.js Outdated Show resolved Hide resolved
@jagdeep-singh jagdeep-singh requested a review from medikoo May 7, 2020 04:56
Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jagdeep-singh !

@medikoo medikoo merged commit 7e1dd66 into serverless:master May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants