]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add context for warnings emitted from configure_mappers(), autoflush()
authorjonathan vanasco <jonathan@2xlp.com>
Fri, 12 Nov 2021 17:45:54 +0000 (12:45 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 Jan 2023 03:03:06 +0000 (22:03 -0500)
commit03212e5aefb3d5c912d25274f447eb9c493f7268
treefdf6b7919dab70e979304f43b6fbde9b8ad6515b
parent55b243a3f22f267c829f9088fd4e801f0b621a31
add context for warnings emitted from configure_mappers(), autoflush()

Improved the notification of warnings that are emitted within the configure
mappers or flush process, which are often invoked as part of a different
operation, to add additional context to the message that indicates one of
these operations as the source of the warning within operations that may
not be obviously related.

Fixes: #7305
Change-Id: I79da7a6a5d4cf67d57615d0ffc2b8d8454011c84
doc/build/changelog/unreleased_20/7305.rst [new file with mode: 0644]
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/util/langhelpers.py
test/orm/test_utils.py
test/orm/test_versioning.py