Skip to content

docs(idempotency): add callout about undefined early return #3055

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

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

dreamorosi
Copy link
Contributor

Summary

Changes

Please provide a summary of what's being changed

This PR adds a callout and link to the Middy.js repo in the docs related to the Idempotency makeHandlerIdempotent Middy.js middleware to specify that the AWS Lambda function handler must return a value different than undefined for the middleware to work correctly.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #2987


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi dreamorosi self-assigned this Sep 12, 2024
@dreamorosi dreamorosi requested a review from a team September 12, 2024 16:49
@dreamorosi dreamorosi requested a review from a team as a code owner September 12, 2024 16:49
@boring-cyborg boring-cyborg bot added documentation Improvements or additions to documentation idempotency This item relates to the Idempotency Utility labels Sep 12, 2024
@pull-request-size pull-request-size bot added the size/S PR between 10-29 LOC label Sep 12, 2024
@boring-cyborg boring-cyborg bot added the tracer This item relates to the Tracer Utility label Sep 12, 2024
@pull-request-size pull-request-size bot added size/M PR between 30-99 LOC and removed size/S PR between 10-29 LOC labels Sep 12, 2024
@dreamorosi dreamorosi force-pushed the docs/idempotency_early-return branch from e873720 to 5a4571e Compare September 12, 2024 17:00
@pull-request-size pull-request-size bot added size/S PR between 10-29 LOC and removed size/M PR between 30-99 LOC labels Sep 12, 2024
Copy link
Contributor

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

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

Hey @dreamorosi! I'm approving this PR, feel free to accept or not my suggestions.

Copy link

@dreamorosi dreamorosi merged commit c827dd5 into main Sep 12, 2024
11 checks passed
@dreamorosi dreamorosi deleted the docs/idempotency_early-return branch September 12, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation idempotency This item relates to the Idempotency Utility size/S PR between 10-29 LOC tracer This item relates to the Tracer Utility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Idempotency middleware doesn't work for functions without return value
2 participants