← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2027604] [NEW] [sqlalchemy-20] The Query.get() method is considered legacy as of the 1.x series of SQLAlchemy and becomes a legacy construct in 2.0

 

Public bug reported:

Captured stderr:
~~~~~~~~~~~~~~~~                                                                                                                                                                                                                      /opt/stack/neutron/neutron/plugins/ml2/driver_context.py:45: LegacyAPIWarning: The Query.get() method is considered legacy as of the 1.x series of SQLAlchemy and becomes a legacy construct in 2.0. The method is now availab
le as Session.get() (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
  db_obj = session.query(self._model_class).get(self._identity_key)

** Affects: neutron
     Importance: Medium
     Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez)
         Status: New

** Changed in: neutron
   Importance: Undecided => Medium

** Changed in: neutron
     Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2027604

Title:
  [sqlalchemy-20] The Query.get() method is considered legacy as of the
  1.x series of SQLAlchemy and becomes a legacy construct in 2.0

Status in neutron:
  New

Bug description:
  Captured stderr:
  ~~~~~~~~~~~~~~~~                                                                                                                                                                                                                      /opt/stack/neutron/neutron/plugins/ml2/driver_context.py:45: LegacyAPIWarning: The Query.get() method is considered legacy as of the 1.x series of SQLAlchemy and becomes a legacy construct in 2.0. The method is now availab
  le as Session.get() (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
    db_obj = session.query(self._model_class).get(self._identity_key)

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2027604/+subscriptions