Skip to content
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

Merged
merged 3 commits into from
Jan 10, 2025
Merged

up #1793

merged 3 commits into from
Jan 10, 2025

Conversation

emrgnt-cmplxty
Copy link
Contributor

@emrgnt-cmplxty emrgnt-cmplxty commented Jan 10, 2025

Important

This pull request adds OAuth callback handling for Google and GitHub, changes media type for streaming responses, and enhances logging in crypto providers.

  • OAuth Callbacks:
    • Added oauthGoogleCallback and oauthGithubCallback methods in users.ts to handle OAuth callbacks for Google and GitHub.
    • Added corresponding methods in users.py to handle OAuth callback routes.
  • Media Type Change:
    • Changed media_type from application/json to text/event-stream in retrieval_router.py for streaming responses.
  • Logging Enhancements:
    • Added logging for initialization in BcryptCryptoProvider and NaClCryptoProvider.
  • Miscellaneous:
    • Updated version in package.json from 0.4.12 to 0.4.13.
    • Adjusted nginx.conf to improve proxy buffering and caching settings.

This description was created by Ellipsis for e2bb519. It will automatically update as commits are pushed.

@emrgnt-cmplxty emrgnt-cmplxty marked this pull request as ready for review January 10, 2025 00:20
@emrgnt-cmplxty emrgnt-cmplxty merged commit badb168 into main Jan 10, 2025
4 checks passed
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 in 10 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)
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant