Project

General

Profile

Actions

Support #7642

closed

Upgrade Flask-SQLAlchemy

Added by Jakub Judiny over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
04/13/2023
Due date:
% Done:

0%

Estimated time:
To be discussed:

Description

Flask-SQLAlchemy is currently pinned to <3.0.0, because 3.0.0 removed sessionmaker, which is used in mentat.services.sqlstorage.py. Flask-SQLAlchemy now requires active application context for sessions and engines, so the approach to sessions in sqlstorage.py would have to change.

Another possible solution of this problem is to completely replace Flask-SQLAlchemy with SQLAlchemy (see issue #7545).

SQLAlchemy is also pinned to <2.0.0 because of Flask-SQLAlchemy, so it should also be upgraded in this issue.


Related issues

Related to Mentat - Support #7632: Mentat dependencies upgradeClosedJakub Judiny02/28/2023

Actions
Related to Mentat - Task #7545: Review SQLAlchemy vs Flask-SQLAlchemy consolidation optionsDeferredJakub Judiny01/06/2022

Actions
Related to Mentat - Task #6205: Review encapsulation of SQLAlchemy and Psycopg2 DBALsClosedRajmund Hruška01/24/2020

Actions
Actions

Also available in: Atom PDF