Project

General

Profile

Actions

Task #129

open

update deprecated sqlAlchemy query method

Added by Sam Pearson 3 months ago. Updated 23 days ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
04/04/2026
Due date:
% Done:

0%

Estimated time:
Engineering Effort:
small
App Component:
Database
Feature:

Description

query(...).get(id) is legacy. Modern SQLAlchemy prefers session.get(model_class, id). Current code will function but is forward-incompatible.

The most clear examples are in the BaseRepository and UserOwnedRepository , but there are 64 total examples across the entire project.

Actions #1

Updated by Sam Pearson 3 months ago

This doesn't appear to be deprecated but rather "legacy", and I see people complaining online that it hasn't been officially deprecated; so it's probably not going to matter in the lifetime of this project.

Actions #2

Updated by Sam Pearson 23 days ago

  • Engineering Effort set to small
  • App Component set to Database

Probably an easy swap out but as mentioned, not really urgent.

Actions

Also available in: Atom PDF