You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue tracks update progress, tasks, and information w.r.t. updating SQLAlchemy. The TODO section has a checklist for specific items that are completed or need to be done.
It looks like there's just one in fits_storage.db.__init__.py that's saved. This doesn't cause any issues in the code tests with the future=True flag added to create_engine there.
More general search by eye (find fits* -type f -name "*.py" | xargs grep -ni -E "engine\W")
Add check for sqlalchemy version to automated script.
TODO Key
(🤖) - step automated for updates to the codebase
(🔧) - could be automated
(✍️) - in progress
(💥) - major problem
Notes
Both and environment variable SQLALCHEMY_WARN_20and the -W always::DeprecationWarning test3.py flag must be used to actually coax out the RemovedIn20Warnings. Unfortunately, the errors will not always correctly report unless both of these are set.
The text was updated successfully, but these errors were encountered:
Info
This issue tracks update progress, tasks, and information w.r.t. updating SQLAlchemy. The TODO section has a checklist for specific items that are completed or need to be done.
Branch:
sqlalchemy_update
TODO
code_tests
RemovedIn20Warnings
sqlalchemy.ext.declarative.declarative_base -> sqlalchemy.orm.declarative_base
(imports, mostly)get
from session queries is unsupported:session.query(TABLE).get(KEY) -> session.get(TABLE, KEY)
, for examplesqlalchemy.orm.relation
->sqlalchemy.orm.relationship
future=True
to instances ofEngine
engine
instantiation.fits_storage.db.__init__.py
that's saved. This doesn't cause any issues in the code tests with thefuture=True
flag added tocreate_engine
there.find fits* -type f -name "*.py" | xargs grep -ni -E "engine\W"
)future
flag on SessionSession
withoutfuture=True
sessionmaker(..., future=True, ...)
.Session
instances and how they are invoked.FitsStorage2
.__allow_unmapped__
to explicitly typed ORM modelsMisc. TODO
TODO Key
(🤖) - step automated for updates to the codebase
(🔧) - could be automated
(✍️) - in progress
(💥) - major problem
Notes
SQLALCHEMY_WARN_20
and the-W always::DeprecationWarning test3.py
flag must be used to actually coax out theRemovedIn20Warnings
. Unfortunately, the errors will not always correctly report unless both of these are set.The text was updated successfully, but these errors were encountered: