-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add RequestParameters Support #953
Conversation
Add sample test events
…e PreTraffic hook (#605)
I'm not really sure what needs to be done to update documentation. I couldn't see in the repo how the documentation gets generated in order to update it. |
@praneetap @jlhood @keetonian It appears that the latest version of |
The build is failing due to this issue with cfn-lint v0.22.0 which is also impacting the |
@keetonian @praneetap @jlhood Looks like the build issue has been fixed. Any chance of getting the last review? |
@brettstack I believe I've addressed your comments. Would you please have a look? |
Too many updates since the review, will re-review again.
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.
Apologies for the delayed response on this. I'm really excited about this feature! Thanks so much! I have some minor comments and one question around query
vs querystring
. I see in the conversation you said you've deployed these templates to CloudFormation and they worked as expected so just want to confirm you deployed a template with this specific case (query string param).
…t-parameters # Conflicts: # samtranslator/swagger/swagger.py
@jlhood @praneetap I've made updates based on more review comments. Please have look. |
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.
Caught a couple minor cleanups, but I'll go ahead and take care of them before merging. This is a super solid PR. Really appreciate all your great work on this!
@keetonian @praneetap @jlhood Thank you for approving my PR and merging. I noticed that it is staged for release in v1.15.0. We are currently on v1.13.2, which suggests that it will be a while until this is released since we still have to go through v1.14.x. Is there any way to get this released faster? I know this is considered a new feature, however in my case the lack of the ability to cache parameters is more like a bug. That is why I submitted this PR. For example, I have a function with the following path: GET request to This seems like basic functionality that is required if caching is enabled, otherwise the API will return incorrect resources from the cache. I had a similar example with the Authorization header where regardless of the token in the Authorization header if a resource was in the cache, a user could access it. Thanks again and please advise. |
@beck3905 This change missed the cutoff for the v1.14.0 release so it got tagged for v1.15.0. Unfortunately, we are not able to share specific dates for releases, but v1.15.0 will be the next release we cut after v1.14.0, which is currently in progress. Patch releases like v1.13.1 and v1.13.2 were due to bugs found during the release where we needed to cherry-pick a specific bugfix related to the v1.13.0 release. We're working on making our release process more transparent to external customers, but we're not quite where we want to be yet. For now, you can see when we cut release branches, which can give you some indication of when we begin working on a specific release. |
Adding
And in API GW console, under URL Query String Parameters, it shows this warning:
This makes us to need to updated RequestParameters in template (in order to have updated Swagger specs) and to update Lambda business logic (to perform validation). So it's extra work and can lead to inconsistency. |
Issue #, if available:
#931
Description of changes:
Added support for
RequestParameters
in theApi
event source propertiesDescription of how you validated changes:
unit tests
end to end tests
ran transform locally and ran created a stack from the transformed template
Checklist:
make pr
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.