From c22dfd8bde2a1bd7a27d96984790083cea12a696 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 14 May 2024 10:31:42 +0200 Subject: [PATCH] Drop flush that could lead to HDA/HDCA without history --- lib/galaxy/tools/parameters/basic.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/galaxy/tools/parameters/basic.py b/lib/galaxy/tools/parameters/basic.py index de2f5a26ea7d..d3ec6bcfd6f3 100644 --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -2728,7 +2728,6 @@ def raw_to_galaxy(app: "MinimalApp", history: "History", as_dict_value: Dict[str app.model.session.add(primary_data) history.stage_addition(primary_data) history.add_pending_items() - app.model.session.flush() return primary_data else: name = as_dict_value.get("name") @@ -2759,7 +2758,6 @@ def write_elements_to_collection(has_elements, collection_builder): collection_builder.populate() history.stage_addition(hdca) history.add_pending_items() - app.model.session.flush() return hdca