-
-
Notifications
You must be signed in to change notification settings - Fork 536
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 an aws chalice integration #923
add an aws chalice integration #923
Conversation
Thanks for adding the Here's a preview of the changelog: This release adds support for AWS Chalice. A framework for deploying serverless applications using AWS. A view for aws chalice has been added to the strawberry codebase. Here's the preview release card for twitter: Here's the tweet text:
|
Co-authored-by: ignormies <[email protected]>
Co-authored-by: ignormies <[email protected]>
update to main
Co-authored-by: ignormies <[email protected]>
Co-authored-by: ignormies <[email protected]>
8a29719
to
2edd4d3
Compare
Updated release notes and added chalice as a dev dependency Added catching the json_body value error and removed unused type error TypeError must be caught here as they payload might not be json Removed the separate get and post methods Added the chalice integration to the docs Update docs/integrations/chalice.md Added the suggestion to remove $ from the shell commands to be consistent Co-authored-by: ignormies <[email protected]> Update docs/integrations/chalice.md Co-authored-by: ignormies <[email protected]> Update strawberry/chalice/views.py Co-authored-by: ignormies <[email protected]> Update docs/integrations/chalice.md Co-authored-by: ignormies <[email protected]> Update docs/integrations/chalice.md Co-authored-by: ignormies <[email protected]> Update docs/integrations/chalice.md Co-authored-by: ignormies <[email protected]> Added a response type to the documentation
2edd4d3
to
5c360a5
Compare
This may require a few changes if #1066 is merged first |
As a result of the unit tests have handled the BadRequestError returned by chalice and mapped that to a graphql style error response with status code 200.
for more information, see https://pre-commit.ci
Removed the untested line from views and added a default argument instead
I'll merge this after I fix the mypy issue :D |
3ce08d1
to
492ba72
Compare
492ba72
to
5cb5f78
Compare
Apparently mypy has some issues when using classes inside functions, as we do in our tests, issue here: python/mypy#6422
Thanks for contributing to Strawberry! 🎉 You've been invited to join You can also request a free sticker by filling this form: https://forms.gle/dmnfQUPoY5gZbVT67 And don't forget to join our discord server: https://strawberry.rocks/discord 🔥 |
This adds an aws chalice integration with unit tests.
A server can be launched from the tests directory by making a chalice config and then running chalice local. The unit tests capture the usage of chalice.
Closes #845