From a1db638f6ccd770ed893d95714cc7426ecdcc760 Mon Sep 17 00:00:00 2001 From: guerler Date: Tue, 20 Feb 2024 07:27:57 -0500 Subject: [PATCH] Remove legacy helper to adjust hidden/unhidden datasets --- lib/galaxy/webapps/galaxy/controllers/history.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/controllers/history.py b/lib/galaxy/webapps/galaxy/controllers/history.py index 1025b0f06588..e4746fb6cba0 100644 --- a/lib/galaxy/webapps/galaxy/controllers/history.py +++ b/lib/galaxy/webapps/galaxy/controllers/history.py @@ -204,21 +204,6 @@ def make_private(self, trans, history_id=None, all_histories=False, **kwd): "message": f"Success, requested permissions have been changed in {'all histories' if all_histories else history.name}." } - @web.expose - def adjust_hidden(self, trans, id=None, **kwd): - """THIS METHOD IS A TEMPORARY ADDITION. It'll allow us to fix the - regression in history-wide actions, and will be removed in the first - release after 17.01""" - action = kwd.get("user_action", None) - if action == "delete": - for hda in trans.history.datasets: - if not hda.visible: - hda.mark_deleted() - elif action == "unhide": - trans.history.unhide_datasets() - with transaction(trans.sa_session): - trans.sa_session.commit() - # ......................................................................... actions/orig. async @web.expose