-
Notifications
You must be signed in to change notification settings - Fork 332
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
up #1793
up #1793
Conversation
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.
❌ Changes requested. Reviewed everything up to e2bb519 in 2 minutes and 2 seconds
More details
- Looked at
718
lines of code in10
files - Skipped
0
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. py/core/main/api/v3/retrieval_router.py:449
- Draft comment:
Ensure that the client-side is prepared to handle 'text/event-stream' as the media type for StreamingResponse. This change is also made on line 676. - Reason this comment was not posted:
Confidence changes required:50%
The PR introduces a change in the media type for StreamingResponse from 'application/json' to 'text/event-stream'. This change is made in two places in the file 'retrieval_router.py'. This change is appropriate for server-sent events, which is likely the intent here. However, the comment should be added to confirm the intent and ensure that the client-side is prepared to handle this media type.
2. js/sdk/src/v3/clients/users.ts:545
- Draft comment:
Ensure that the server-side is expecting 'code' and 'state' as parameters in the body for POST requests in OAuth callbacks. This change is also made on line 555. - Reason this comment was not posted:
Confidence changes required:50%
The PR modifies the 'oauthGithubCallback' and 'oauthGoogleCallback' methods to use 'POST' requests with parameters in the body. This is a common pattern for OAuth callbacks, but it's important to ensure that the server-side is expecting these parameters in the body and not as query parameters.
3. py/nginx.conf:44
- Draft comment:
Verify if setting 'Connection' header to an empty string is the intended behavior. This might affect connection upgrades. - Reason this comment was not posted:
Confidence changes required:50%
The PR changes the 'Connection' header to an empty string in the nginx configuration. This might be intended to prevent connection upgrades, but it should be verified if this is the desired behavior.
4. py/nginx.conf:55
- Draft comment:
Confirm if disabling 'proxy_buffering' and 'proxy_cache' is the desired behavior for all routes. This affects real-time data streaming. - Reason this comment was not posted:
Confidence changes required:50%
The PR changes the 'proxy_buffering' and 'proxy_cache' settings to 'off' in the nginx configuration. This is likely intended to disable buffering and caching for real-time data streaming, but it should be confirmed if this is the desired behavior for all routes.
Workflow ID: wflow_2T87NybjtCb7riSm
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
@@ -1839,6 +1838,7 @@ async def google_callback( | |||
oauth_id=google_id, | |||
email=email, | |||
) | |||
print("token_response = ", token_response) |
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.
Remove the print statement or replace it with proper logging for production code.
Important
This pull request adds OAuth callback handling for Google and GitHub, changes media type for streaming responses, and enhances logging in crypto providers.
oauthGoogleCallback
andoauthGithubCallback
methods inusers.ts
to handle OAuth callbacks for Google and GitHub.users.py
to handle OAuth callback routes.media_type
fromapplication/json
totext/event-stream
inretrieval_router.py
for streaming responses.BcryptCryptoProvider
andNaClCryptoProvider
.version
inpackage.json
from0.4.12
to0.4.13
.nginx.conf
to improve proxy buffering and caching settings.This description was created by for e2bb519. It will automatically update as commits are pushed.