Skip to content

debt: upgrade sqlalchemy to 1.4.36 #5945

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

Closed
wants to merge 25 commits into from
Closed

debt: upgrade sqlalchemy to 1.4.36 #5945

wants to merge 25 commits into from

Conversation

wssheldon
Copy link
Contributor

The issue in the comment has been resolved and being on 1.3 significantly limits what dependencies we can use related to SQLAlchemy.

@wssheldon wssheldon added dependencies Pull requests that update a dependency file techdebt labels Apr 30, 2025
@wssheldon wssheldon self-assigned this Apr 30, 2025
@wssheldon wssheldon changed the title deps(debt): upgrade sqlalchemy to 1.4.36 debt: upgrade sqlalchemy to 1.4.36 Apr 30, 2025
@@ -247,7 +264,13 @@ def refetch_db_session(organization_slug: str) -> Session:
@contextmanager
def get_session() -> Session:
"""Context manager to ensure the session is closed after use."""
session = SessionLocal()
schema_engine = engine.execution_options(
Copy link
Contributor

Choose a reason for hiding this comment

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

We should encapsulate this logic in a function that takes an org slug as a param, so we don't need to duplicate the code in get_organization_session()

@mvilanova mvilanova closed this May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file techdebt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants