Skip to content

fix: replace implicit SQLAlchemy select coercions in visitors#160

Open
lightning-sagar wants to merge 2 commits into
istSOS:mainfrom
lightning-sagar:fix/sqlalchemy-sa-deprecation-warnings-39
Open

fix: replace implicit SQLAlchemy select coercions in visitors#160
lightning-sagar wants to merge 2 commits into
istSOS:mainfrom
lightning-sagar:fix/sqlalchemy-sa-deprecation-warnings-39

Conversation

@lightning-sagar
Copy link
Copy Markdown

@lightning-sagar lightning-sagar commented Apr 21, 2026

Summary
This PR fixes the SQLAlchemy SADeprecationWarning messages raised during python -m app.sta2rest.test by replacing implicit Select coercions with explicit subqueries in api/app/sta2rest/visitors.py


Why
The tests still passed, but SQLAlchemy was warning about the deprecation of the current query building with APIs that may be removed in future versions of SQLAlchemy. This change keeps the current behavior and makes query building compatible with newer SQLAlchemy expectations.


Related
closes #39

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.

SQLAlchemy SADeprecationWarnings during tests

1 participant