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

Updating python libraries #110

Merged
merged 15 commits into from
Apr 14, 2024
Merged

Updating python libraries #110

merged 15 commits into from
Apr 14, 2024

Conversation

bitbyt3r
Copy link
Member

@bitbyt3r bitbyt3r commented Nov 5, 2022

This PR updates all python libraries to their latest versions.

@bitbyt3r bitbyt3r marked this pull request as ready for review August 5, 2023 05:13
@bitbyt3r bitbyt3r requested a review from kitsuta August 5, 2023 05:13
Copy link
Member

@kitsuta kitsuta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

import redis
from redis import Sentinel

class RedisSession(Session):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... should I use this when I integrate redis with Uber to store global session vars?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can probably just use the redis library directly. In this case I ended up just inlining the cherrys package (Which previously we installed) since it's all of ~100 lines and we needed some changes.

Copy link
Member

@kitsuta kitsuta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a couple questions but this looks good to me!

@@ -176,7 +176,7 @@ def _ws_url(host, rpc_opts):
Given a hostname and set of config options returned by _rpc_opts, return the
standard URL websocket endpoint for a Sideboard remote service.
"""
return '{protocol}://{host}/wsrpc'.format(host=host, protocol='wss' if rpc_opts['ca'] else 'ws')
return '{protocol}://{host}/ws'.format(host=host, protocol='wss' if rpc_opts['ca'] else 'ws')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this break any third-party apps?

raise cherrypy.HTTPError(401, 'not logged in')


@render_with_templates(config['template_dir'])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this all being ripped out or just moved?

@bitbyt3r bitbyt3r changed the base branch from master to main April 14, 2024 17:16
@bitbyt3r bitbyt3r merged commit 5701f91 into main Apr 14, 2024
1 check passed
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.

2 participants