Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

debt: upgrade sqlalchemy to 1.4.36#5945

Closed
ghost wants to merge 25 commits into
mainfrom
deps/sqlalch
Closed

debt: upgrade sqlalchemy to 1.4.36#5945
ghost wants to merge 25 commits into
mainfrom
deps/sqlalch

Conversation

@ghost

@ghost ghost commented Apr 30, 2025

Copy link
Copy Markdown

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

@ghost ghost added dependencies Pull requests that update a dependency file techdebt labels Apr 30, 2025
@ghost ghost requested review from aaronherman, kevgliss and mvilanova April 30, 2025 17:11
@ghost ghost self-assigned this Apr 30, 2025
@ghost ghost changed the title deps(debt): upgrade sqlalchemy to 1.4.36 debt: upgrade sqlalchemy to 1.4.36 Apr 30, 2025
def get_session() -> Session:
"""Context manager to ensure the session is closed after use."""
session = SessionLocal()
schema_engine = engine.execution_options(

Copy link
Copy Markdown
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()

Comment thread src/dispatch/database/service.py
@mvilanova mvilanova closed this May 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file techdebt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant