From b2afef966dcc44e991f22a8fb68de4f1220bd674 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 9 Feb 2019 01:46:06 -0500 Subject: Don't run pending_to_persistent for non-new objects Fixed fairly simple but critical issue where the :meth:`.SessionEvents.pending_to_persistent` event would be invoked for objects not just when they move from pending to persistent, but when they were also already persistent and just being updated, thus causing the event to be invoked for all objects on every update. Fixes: #4489 Change-Id: Ibe147020aa62f7d605cb1029b7f3b776f42e6b43 --- doc/build/changelog/unreleased_12/4489.rst | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 doc/build/changelog/unreleased_12/4489.rst (limited to 'doc') diff --git a/doc/build/changelog/unreleased_12/4489.rst b/doc/build/changelog/unreleased_12/4489.rst new file mode 100644 index 000000000..6f50c4bdb --- /dev/null +++ b/doc/build/changelog/unreleased_12/4489.rst @@ -0,0 +1,9 @@ +.. change:: + :tags: bug, orm + :tickets: 4489 + + Fixed fairly simple but critical issue where the + :meth:`.SessionEvents.pending_to_persistent` event would be invoked for + objects not just when they move from pending to persistent, but when they + were also already persistent and just being updated, thus causing the event + to be invoked for all objects on every update. -- cgit v1.2.1