diff options
author | Julia Kreger <juliaashleykreger@gmail.com> | 2022-09-13 14:58:15 -0700 |
---|---|---|
committer | Julia Kreger <juliaashleykreger@gmail.com> | 2022-10-14 07:58:27 -0700 |
commit | c2df29e52f44e39c9fa3cc6ef0820749db1c8647 (patch) | |
tree | 7869d05cf829ed147e0a21f3b0643df75daeee82 /tox.ini | |
parent | 49e085583dec81c63d19f80a9ba067e38d8043ae (diff) | |
download | ironic-c2df29e52f44e39c9fa3cc6ef0820749db1c8647.tar.gz |
Phase 2 - SQLAlchemy 2.0 Compatability
* Changed common exception imports from SQLAlchemy for ORM
query types which are now originated from the main exception
definition set.
* Changed base join option usage to use objects instead of labels,
and defaulted all multi-row result sets to return data using
"selectinload" as opposed to operating with a join query to
avoid need to de-duplicate all result sets.
* Changed DeployTemplates to utilize objects instead of
field names for queries, and updated the associated join ORM
model's relationship record between DeployTemplate and
DeployTemplateSteps.
* Changed Ports, Chassis, Conductor, Volume Target/Connector
queries to lean towards use of select/update/delete queries as
opposed to ORM queries. Most of these changes revolved around
references of field names as opposed to model objects.
* This change also labels a few lines as "noqa", which is a result
of the style check rules getting triggered on statements as
needed for SQLAlchemy.
Change-Id: I651ec4b50c79be6aa8c798ee27957ed720a578d8
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -12,6 +12,7 @@ setenv = VIRTUAL_ENV={envdir} LANGUAGE=en_US LC_ALL=en_US.UTF-8 PYTHONUNBUFFERED=1 + SQLALCHEMY_WARN_20=true deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt |