From cd9d132ee1f4afa9fd91adca83f54321ceb240f7 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Sat, 30 Sep 2023 08:28:03 +0200 Subject: [PATCH] Fix tag ownership check I think that in the tool evaluation context we don't actually need the cached_id performance tweak: we batch flushes now on map over creation ... which in fact breaks the assumption that we're setting the user id here. --- lib/galaxy/tools/actions/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/galaxy/tools/actions/__init__.py b/lib/galaxy/tools/actions/__init__.py index 249b34f2b484..391dbbc11434 100644 --- a/lib/galaxy/tools/actions/__init__.py +++ b/lib/galaxy/tools/actions/__init__.py @@ -850,6 +850,7 @@ def _new_job_for_session(self, trans, tool, history): job.session_id = model.cached_id(galaxy_session) if trans.user is not None: job.user_id = model.cached_id(trans.user) + job.user = trans.user if history: job.history_id = model.cached_id(history) job.tool_id = tool.id