-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
feat: split request params #952
base: main
Are you sure you want to change the base?
Conversation
@VishnuSanal is attempting to deploy a commit to the sparckles Team on Vercel. A member of the Team first needs to authorize it. |
for more information, see https://pre-commit.ci
This reverts commit 7429479
This reverts commit 15728ed.
@sansyrox, the tests pass here. can you PTAL at the interface + an initial review, if you will. :) |
CodSpeed Performance ReportMerging #952 will not alter performanceComparing Summary
Benchmarks breakdown
|
Hey @VishnuSanal 👋 I really like the current implementation. Great job ✨ But I have a few follow ups. I will share them in a few hours |
|
@sansyrox this is the swagger page for the following robyn app.
|
@sansyrox PTAL :) |
@@ -89,7 +89,7 @@ class Url: | |||
class Identity: | |||
claims: dict[str, str] | |||
|
|||
class QueryParams: | |||
class RustQueryParams: |
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 should be just QueryParams. No?
@@ -8,7 +8,7 @@ def test_request_object(): | |||
path="/user", | |||
) | |||
request = Request( | |||
query_params=QueryParams(), | |||
query_params=RustQueryParams(), |
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.
No, this should be QueryParams. No part of the client facing code should require us to initialise RustQueryParams
robyn/types.py
Outdated
""" | ||
A type alias for openapi response bodies | ||
""" | ||
|
||
pass | ||
|
||
|
||
class Body: | ||
""" | ||
A type alias for openapi request bodies | ||
""" | ||
|
||
pass | ||
|
||
|
||
class QueryParams: | ||
""" | ||
A type alias for query params type annotations | ||
""" | ||
|
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.
the docstrings still need work
class QueryParams: | ||
""" | ||
A type alias for query params type annotations | ||
""" | ||
|
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.
also you should implement the method definitions here. Associated with rust query params.
Hey @VishnuSanal , some more work is needed here. Also , could you have a look at the conflicts? |
Description
This PR fixes #850
Summary
This PR does split request params
PR Checklist
Please ensure that:
Pre-Commit Instructions: