You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ar...@apache.org on 2026/07/23 13:29:29 UTC

(tooling-trusted-releases) 01/04: #1445 - fix model ordering in dist watcher

This is an automated email from the ASF dual-hosted git repository.

alitheg pushed a commit to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git

commit cef94e61b697bddd4c5fb53e9d18b9adb8367134
Author: Alastair McFarlane <ar...@apache.org>
AuthorDate: Thu Jul 23 10:37:42 2026 +0100

    #1445 - fix model ordering in dist watcher
---
 atr/storage/writers/release.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/atr/storage/writers/release.py b/atr/storage/writers/release.py
index 8e19a426..4e57b89c 100644
--- a/atr/storage/writers/release.py
+++ b/atr/storage/writers/release.py
@@ -1478,6 +1478,10 @@ class FoundationAdmin(FoundationCommitter):
                 version=str(version),
             )
         )
+        # Nothing relates LifecycleEvent to Release, so there's no
+        # dependency to order these inserts by. The release row has to save
+        # before the event's foreign key is checked
+        await self.__data.flush()
         # effective is the commit date we observed, but published stays at the
         # default now - that's when we recorded it, not a backdated claim
         self.__data.add(


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org